Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    MTU/MSSFIX

    Scheduled Pinned Locked Moved OpenVPN
    16 Posts 6 Posters 17.0k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      rustydusty1717
      last edited by

      Hello,

      Need some suggestions on these settings. My other sites I currently use:

      fragment 1200;mssfix

      This site is as follows:

      Colocate:
      vmware esxi 5.5
      pfsense 2.1 virtualized
      1 core X5650
      1GB memory
      100Mb symmetrical fiber

      Site:
      pfsense 2.1
      Alix 2C
      25Mb download
      2.5Mb upload

      Trying to pull down from the colocate to site, either I get timeouts to the pfsense at colocate or extremely high pings. Transfer rates are extremely slow as well.

      MTU-Test on both sides says MTU is 1500, so I have tried this:

      fragment 1500;mssfix

      With not much success. Also it varies upon documentation but some specify mssfix only needs to be on one side. I have tried using it on one or either without success. Tried using fragment 1200, 1300, 1400 and 1500. Also tried various mssfix parameters I found on the web.

      Any help greatly appreciated. I think I've narrowed it down to the mssfix setting as MTU test confirms it's 1500.

      1 Reply Last reply Reply Quote 0
      • H
        heper
        last edited by

        you sure it's not the alix hitting its cpu too hard with the crypto ?

        i have plenty openvpn tunnels and have never had to mess with mtu

        1 Reply Last reply Reply Quote 0
        • R
          rustydusty1717
          last edited by

          That's definitely a possibility.

          My other tunnels which are colocated out of the same data center had same issue.

          Doing fragment 1200;mssfix fixed them. I get consistent latency and full download speeds from thedate center to sites.

          The pfsense at this site is also doing dhcp and unbound dns.

          T 1 Reply Last reply Reply Quote 0
          • R
            rustydusty1717
            last edited by

            I should also mention I get timeouts during a continues ping to the off site pfsense while I do an rdp into a server that ia off site. Same thing when I open vsphere client

            1 Reply Last reply Reply Quote 0
            • R
              rustydusty1717
              last edited by

              Doing an RDP to a server that's at the colocation from the site. Same thing when I try to connect to the VMware host at colocation from site using vsphere client. Traffic on the VPN doesn't even hit 1Mb/s so it's by no means being bottlenecked. Load average on the pfsense on site never goes above 0.50 during this time as well. I can't think of anything except my fragment and mssfix settings are off.

              Pinging 172.16.0.1 with 32 bytes of data:
              Reply from 172.16.0.1: bytes=32 time=35ms TTL=63
              Reply from 172.16.0.1: bytes=32 time=34ms TTL=63
              Reply from 172.16.0.1: bytes=32 time=51ms TTL=63
              Reply from 172.16.0.1: bytes=32 time=2318ms TTL=63
              Request timed out.
              Request timed out.

              1 Reply Last reply Reply Quote 0
              • C
                cmb
                last edited by

                There's something more than touching MSS-related settings there, that won't have any impact at all with pings. That also wouldn't be the type of behavior from exhausting the capabilities of a given CPU. Are you using TCP or UDP? Should use UDP. Does the OpenVPN connection stay up or is it reconnecting? Check OpenVPN logs, and/or connection time shown under Status>OpenVPN.

                1 Reply Last reply Reply Quote 0
                • R
                  rustydusty1717
                  last edited by

                  Well I've got it much more stable without the disconnects.

                  Currently:

                  IPFastforwarding changed to 1
                  Server - fragment 1400
                  Client - fragment 1400;mssfix 1400

                  Only settings that have got me anywhere. I can pull files from colocate to site now at atleast 5Mb/s and ping times staying somewhat stable.

                  Also tried this:

                  ping -f -l 1472 172.16.0.1 - works
                  ping -f -l 1473 172.16.0.1 - fails

                  1 Reply Last reply Reply Quote 0
                  • P
                    phil.davis
                    last edited by

                    This has some information about what I found on my systems last year: https://forum.pfsense.org/index.php?topic=67080.0

                    The 1472 thing is because there is 28 bytes of OpenVPN plus ICMP packet overhead and that makes 1500 total, which fits through the tunnel. 1473+28=1501 and does not fit.
                    I have messed about trying to find a fix for that with no joy.
                    You can do:

                    ping -f -l 1473
                    Pinging 10.49.32.1 with 1473 bytes of data:
                    Packet needs to be fragmented but DF set.
                    Packet needs to be fragmented but DF set.
                    Packet needs to be fragmented but DF set.
                    Packet needs to be fragmented but DF set.
                    
                    Ping statistics for 10.49.32.1:
                        Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),
                    
                    

                    That explicitly sets the "do not fragment" bit, which gets you a proper message back about what happened.

                    That implies that OpenVPN knows to fragment that packet across the tunnel. It should do it, and the data should stgill get through. But maybe the receiver (I have tried to a Windows Server and to the pfSense LAN IP at the other end) does not cope with re-assembling ICMP packets?

                    As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
                    If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

                    1 Reply Last reply Reply Quote 0
                    • R
                      rustydusty1717
                      last edited by

                      Ultimately I'm looking for what parameters for MTU, fragment and mssfix I need on both client and server side to get this to work the best.

                      Client/Server are currently:

                      tun-mtu 1472;fragment 1400;mssfix

                      1 Reply Last reply Reply Quote 0
                      • R
                        rustydusty1717
                        last edited by

                        Anyone got any idea or any more info I can provide? It would be a Christmas miracle if this could be figured out

                        1 Reply Last reply Reply Quote 0
                        • C
                          cmb
                          last edited by

                          @rustydusty1717:

                          Anyone got any idea or any more info I can provide?

                          answer my last post's questions.

                          1 Reply Last reply Reply Quote 0
                          • R
                            rustydusty1717
                            last edited by

                            @cmb:

                            @rustydusty1717:

                            Anyone got any idea or any more info I can provide?

                            answer my last post's questions.

                            Apologies.

                            using UDP and the vpn is no longer dropping using these settings:

                            Server - tun-mtu 1472;fragment 1400;mssfix
                            Client - tun-mtu 1472;fragment 1400;mssfix

                            Still only getting about 5Mbps over SMB transfer. No limits, client side has 25Mb download speed connection, server is on a 50Mb upload speed connection. I should be getting much better transfer speeds. I can transfer documents over other sites that are colocated at the same data center at 12Mbps+

                            Only difference being that this client is using an Alix to run the pfsense. Load averages on it aren't high when doing transfers, though. My settings seem to be bottle necking it.

                            1 Reply Last reply Reply Quote 0
                            • DerelictD
                              Derelict LAYER 8 Netgate
                              last edited by

                              Don't look at load averages.  Look at CPU use percentage.

                              Chattanooga, Tennessee, USA
                              A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                              DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                              Do Not Chat For Help! NO_WAN_EGRESS(TM)

                              1 Reply Last reply Reply Quote 0
                              • R
                                rustydusty1717
                                last edited by

                                650-700KB/s - 10-50% CPU usage

                                1 Reply Last reply Reply Quote 0
                                • C
                                  cmb
                                  last edited by

                                  SMB performs horribly over higher latency connections. Compare to HTTP or some other means of transfer that isn't SMB (iperf, FTP, pretty much anything other than SMB).

                                  1 Reply Last reply Reply Quote 0
                                  • T
                                    Techneau @rustydusty1717
                                    last edited by

                                    @rustydusty1717 I know this is an old post but how do i perform these chances to the MTU/MSSFIX. There is no clear instructions on how to perform any of this.

                                    1 Reply Last reply Reply Quote 0
                                    • First post
                                      Last post
                                    Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.