[strongSwan] IP Fragmentation problems on some websites
Mark M
mark076h at yahoo.com
Sun Jul 22 02:19:08 CEST 2012
I just noticed in the FIOS router I can set the MTU on the "Broadband
Connection (Coax)" and not just the ethernet. So I set it to 1400 and
now everything works fine since my LAN and all the interfaces on
strongSwan can handle up to 1500 MTU and everything coming from the
internet will be 1414 bytes at the max. It looks like strongSwan is adding about 76 bytes for ESP bringing the ESP packets to 1490 bytes
which works since it is below the MTU of 1500. So if i set the MTU on my FIOS router outside interface to 1400 everything works fine.
I will look into setting the MSS via iptables as you suggested since I am unsure of other performance problems that having an MTU of 1400 on my
internet connection might bring.
Mark-
________________________________
From: Mark M <mark076h at yahoo.com>
To: Mark M <mark076h at yahoo.com>; "users at lists.strongswan.org" <users at lists.strongswan.org>
Sent: Saturday, July 21, 2012 8:18 PM
Subject: Re: [strongSwan] IP Fragmentation problems on some websites
I figured out what is going on i think. When strongSwan receives a 1514 byte packet or one that is the full MTU from the outside website it does not have
anymore room to encapsulate it into an ESP packet to be sent back to the client. I tried setting the MSS values and played around with he MTU
some more and it is still not working. Maybe I am setting the MSS wrong? on the strongSwan eth0 interface i did "ip route add 192.168.1.1 dev
eth0 advmss 1400" and it still does not work?
Is this the problem with the received packets needing room for the ESP overhead?
Mark-
________________________________
From: Mark M <mark076h at yahoo.com>
To: "users at lists.strongswan.org" <users at lists.strongswan.org>
Sent: Saturday, July 21, 2012 1:14 PM
Subject: [strongSwan] IP Fragmentation problems on some websites
Hi,
I got my strongSwan gateway up and running. It is sitting behind my FIOS router and acting as VPN gateway for roadwarrior/mobile clients. I thought everything was working great until i noticed that some websites do not load. The first one i found was yahoo.com. I fired up Wireshark and noticed when i receive packets back from yahoo.com my strongSwan gateway sends Fragmentation needed ICMP messages back.
Setting the MTU on my strongSwan gateway interfaces had no effect. I then set the MTU on my verizon FIOS router to 1400 and some pages would start to work ok, like yahoo.com would start to work but still others would not with the same fragmentation problem.
Instead of putting the MTU on my FISO router way down and possibly have other performance problems, is there an easy way to fix this?
Thanks for any help,
Mark-
_______________________________________________
Users mailing list
Users at lists.strongswan.org
https://lists.strongswan.org/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.strongswan.org/pipermail/users/attachments/20120721/bb4bba7c/attachment.html>
More information about the Users
mailing list