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

    IPsec site-to-site 80% slower than max speed

    IPsec
    5
    13
    19.3k
    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.
    • V
      Vorkbaard
      last edited by

      I haven't been able to solve the IPsec problem but went with OpenVPN. The problems we had with OpenVPN from a user's laptop to the corporate LAN didn't occur with a LAN-to-LAN connection.

      I documented the setup here.

      1 Reply Last reply Reply Quote 0
      • ?
        A Former User
        last edited by

        Thank you, very good documentation. I have configured the OpenVPN site to site and now I have no problems with slow networks.

        Many thanks

        1 Reply Last reply Reply Quote 0
        • X
          xhoy
          last edited by

          Interesting post.

          We have a similar setup.

          HQ 100/10(d/u)mbit
          RemoteSite 100/100 mbit.

          When i use something else then IPSEC i get (almost) 10 up and 100down (lest say 90% of max speed).

          When i  move some data over the IPSEC link i only get 160kbs (both ways) 0.16mbit! the pingtimes/latancy is 500ms instead of <20ms.

          So I though our hardware want able do deal with this so i setup a  second pfSense router.. with pfsense 2.1-RC something resent> Same problem.

          SO i think, maby somebody can confirm this, that the UPC cabel (cisco EPC3925 ) modem we have at our HQ is 'broken'.

          The other thing is in the past we did get at least 30mbit down (hardware wasn't fast enough to decrypt everything).

          Any suggestions or thoughts on how to test this?

          1 Reply Last reply Reply Quote 0
          • X
            xhoy
            last edited by

            I dont no, if our problem is related to the topic's starter, but since it sounds the same I thought some more data wouldn't hurt.

            when i start a transfer of a 100mb file over the ipsec the ping times spike up
            the 128. is the remote site, 95 is our 'local' gateway (we have a /29)

            When i transfer the same file to the same location with out using the IPsec connection (connecting direct)

            the network layout  looks like this:

            [CLIENTS] -> [pfsense_1] -> [Cisco EPC3925 ]  -> |internetz| -> [ftth (fiber to eth)] -> [pfsense_2]

            pfsense box has a 95.xxx.xxx.82 ip
            epc 3925 has 95.xxx.xxx.81 (so it is in bridge mode)

            both pfsense boxes are 2.0.1

            the load on both machines is "LOW" (below 30% cpu)

            test the same setup with a different pfsense_1 box, faster machine and pfsense 2.1-rc0 build 15 of august exactly the same behaviour!

            We run this pfsense tunnel for more then a year now, and at the beginin i know for a fact we did 30mbit (remote site to HQ), witch we cant do at the moment.

            It seems to me that there is something wrong with the EPC3925 but I havent got a clue what that is…or could be.. any suggestions?

            1 Reply Last reply Reply Quote 0
            • X
              xhoy
              last edited by

              This morning i did some more digging….

              I first power-off the EPC3925  for 2 minutes after a restart the problem was a bit better but still not good.
              After a factory rest it did work again...


              So… no clue why we had this problem or what the problem actually was...

              Case closed?

              BTW: the ipsec uplink was rocksolid!

              1 Reply Last reply Reply Quote 0
              • K
                kejianshi
                last edited by

                Factory reset or backup / wipe / restore is often a huge problem solver and it doesn't even take much time.

                1 Reply Last reply Reply Quote 0
                • V
                  Vorkbaard
                  last edited by

                  @kejianshi:

                  Factory reset or backup / wipe / restore is often a huge problem solver and it doesn't even take much time.

                  Unless you need to restore loads of existing settings. You could just restore an xml backup but that may reintroduce the original problem.

                  1 Reply Last reply Reply Quote 0
                  • K
                    kejianshi
                    last edited by

                    Yeah - When I say wipe, reinstall and restore, I'm talking the XML restore - Not a disk image restore.  That would defeat the purpose.

                    1 Reply Last reply Reply Quote 0
                    • J
                      jamesbond
                      last edited by

                      I also have a very similar problem with slow traffic over IPsec tunnel, I am pretty newish to networking  but want to know if this is normal behavior for a IPsec connection

                      Site A – Data center has 100/100mb in and out
                      Site B – Home, has virgin media fibre broadband 150mb line gives me around 10mb upload max.

                      I have setup a PfSese server 2.2.6 at data center, my home network has a Draytek 2860.

                      I have a windows 2012 server in DC and when copying a file using windows explorer from home using a windows 7 machine I get speeds of around 1.5MB when copying the file to DC

                      I have also tried using PfSese at home to see if the draytek router was the issue, made no difference in speeds.

                      I have also tested IPsec using draytek router to draytek router noticed very poor speeds when copying a files across using explorer.

                      I have tested copying files across using FTP getting similar speed to windows explorer

                      I have used iperf to test speeds beteen A-site and B-site and showing up as decent bandwidth. Perhaps I am not understanding something or some kind windows SMB limit etc ?

                      CLIENT

                      Connecting to host 172.16.1.10, port 5201
                      [  4] local 192.168.50.102 port 50364 connected to 172.16.1.10 port 5201
                      [ ID] Interval          Transfer    Bandwidth
                      [  4]  0.00-1.00  sec  1.38 MBytes  11.5 Mbits/sec
                      [  4]  1.00-2.00  sec  1.25 MBytes  10.5 Mbits/sec
                      [  4]  2.00-3.00  sec  1.38 MBytes  11.5 Mbits/sec
                      [  4]  3.00-4.00  sec  1.12 MBytes  9.44 Mbits/sec
                      [  4]  4.00-5.00  sec  1.00 MBytes  8.38 Mbits/sec
                      [  4]  5.00-6.00  sec  1.00 MBytes  8.39 Mbits/sec
                      [  4]  6.00-7.00  sec  1.00 MBytes  8.39 Mbits/sec
                      [  4]  7.00-8.00  sec  640 KBytes  5.24 Mbits/sec
                      [  4]  8.00-9.00  sec  1.00 MBytes  8.38 Mbits/sec
                      [  4]  9.00-10.00  sec  896 KBytes  7.34 Mbits/sec


                      [ ID] Interval          Transfer    Bandwidth
                      [  4]  0.00-10.00  sec  10.6 MBytes  8.91 Mbits/sec                  sender
                      [  4]  0.00-10.00  sec  10.5 MBytes  8.81 Mbits/sec                  receiver

                      iperf Done.

                      SERVER SIDE

                      Server listening on 5201
                      –---------------------------------------------------------
                      Accepted connection from 192.168.50.102, port 50363
                      [  5] local 172.16.1.10 port 5201 connected to 192.168.50.102 port 50364
                      [ ID] Interval          Transfer    Bandwidth
                      [  5]  0.00-1.00  sec  1.16 MBytes  9.71 Mbits/sec
                      [  5]  1.00-2.00  sec  1.38 MBytes  11.6 Mbits/sec
                      [  5]  2.00-3.00  sec  1.33 MBytes  11.1 Mbits/sec
                      [  5]  3.00-4.00  sec  1.13 MBytes  9.44 Mbits/sec
                      [  5]  4.00-5.00  sec  1.09 MBytes  9.13 Mbits/sec
                      [  5]  5.00-6.00  sec  954 KBytes  7.81 Mbits/sec
                      [  5]  6.00-7.00  sec  986 KBytes  8.07 Mbits/sec
                      [  5]  7.00-8.00  sec  653 KBytes  5.36 Mbits/sec
                      [  5]  8.00-9.00  sec  1020 KBytes  8.35 Mbits/sec
                      [  5]  9.00-10.00  sec  795 KBytes  6.51 Mbits/sec
                      [  5]  10.00-10.10  sec  130 KBytes  10.9 Mbits/sec


                      [ ID] Interval          Transfer    Bandwidth
                      [  5]  0.00-10.10  sec  0.00 Bytes  0.00 bits/sec                  sender
                      [  5]  0.00-10.10  sec  10.5 MBytes  8.73 Mbits/sec                  receiver
                      –---------------------------------------------------------
                      Server listening on 5201

                      1 Reply Last reply Reply Quote 0
                      • J
                        jamesbond
                        last edited by

                        @jamesbond:

                        I also have a very similar problem with slow traffic over IPsec tunnel, I am pretty newish to networking  but want to know if this is normal behavior for a IPsec connection

                        Site A – Data center has 100/100mb in and out
                        Site B – Home, has virgin media fibre broadband 150mb line gives me around 10mb upload max.

                        I have setup a PfSese server 2.2.6 at data center, my home network has a Draytek 2860.

                        I have a windows 2012 server in DC and when copying a file using windows explorer from home using a windows 7 machine I get speeds of around 1.5MB when copying the file to DC

                        I have also tried using PfSese at home to see if the draytek router was the issue, made no difference in speeds.

                        I have also tested IPsec using draytek router to draytek router noticed very poor speeds when copying a files across using explorer.

                        I have tested copying files across using FTP getting similar speed to windows explorer

                        I have used iperf to test speeds beteen A-site and B-site and showing up as decent bandwidth. Perhaps I am not understanding something or some kind windows SMB limit etc ?

                        CLIENT

                        Connecting to host 172.16.1.10, port 5201
                        [  4] local 192.168.50.102 port 50364 connected to 172.16.1.10 port 5201
                        [ ID] Interval          Transfer    Bandwidth
                        [  4]  0.00-1.00  sec  1.38 MBytes  11.5 Mbits/sec
                        [  4]  1.00-2.00  sec  1.25 MBytes  10.5 Mbits/sec
                        [  4]  2.00-3.00  sec  1.38 MBytes  11.5 Mbits/sec
                        [  4]  3.00-4.00  sec  1.12 MBytes  9.44 Mbits/sec
                        [  4]  4.00-5.00  sec  1.00 MBytes  8.38 Mbits/sec
                        [  4]  5.00-6.00  sec  1.00 MBytes  8.39 Mbits/sec
                        [  4]  6.00-7.00  sec  1.00 MBytes  8.39 Mbits/sec
                        [  4]  7.00-8.00  sec  640 KBytes  5.24 Mbits/sec
                        [  4]  8.00-9.00  sec  1.00 MBytes  8.38 Mbits/sec
                        [  4]  9.00-10.00  sec  896 KBytes  7.34 Mbits/sec


                        [ ID] Interval          Transfer    Bandwidth
                        [  4]  0.00-10.00  sec  10.6 MBytes  8.91 Mbits/sec                  sender
                        [  4]  0.00-10.00  sec  10.5 MBytes  8.81 Mbits/sec                  receiver

                        iperf Done.

                        SERVER SIDE

                        Server listening on 5201
                        –---------------------------------------------------------
                        Accepted connection from 192.168.50.102, port 50363
                        [  5] local 172.16.1.10 port 5201 connected to 192.168.50.102 port 50364
                        [ ID] Interval          Transfer    Bandwidth
                        [  5]  0.00-1.00  sec  1.16 MBytes  9.71 Mbits/sec
                        [  5]  1.00-2.00  sec  1.38 MBytes  11.6 Mbits/sec
                        [  5]  2.00-3.00  sec  1.33 MBytes  11.1 Mbits/sec
                        [  5]  3.00-4.00  sec  1.13 MBytes  9.44 Mbits/sec
                        [  5]  4.00-5.00  sec  1.09 MBytes  9.13 Mbits/sec
                        [  5]  5.00-6.00  sec  954 KBytes  7.81 Mbits/sec
                        [  5]  6.00-7.00  sec  986 KBytes  8.07 Mbits/sec
                        [  5]  7.00-8.00  sec  653 KBytes  5.36 Mbits/sec
                        [  5]  8.00-9.00  sec  1020 KBytes  8.35 Mbits/sec
                        [  5]  9.00-10.00  sec  795 KBytes  6.51 Mbits/sec
                        [  5]  10.00-10.10  sec  130 KBytes  10.9 Mbits/sec


                        [ ID] Interval          Transfer    Bandwidth
                        [  5]  0.00-10.10  sec  0.00 Bytes  0.00 bits/sec                  sender
                        [  5]  0.00-10.10  sec  10.5 MBytes  8.73 Mbits/sec                  receiver
                        –---------------------------------------------------------
                        Server listening on 5201

                        Actually i think I'm getting confused here, the file transfer i get using explorer is roughtly 1.5MB/s

                        1 MB/sec = 8Mbps,

                        so 1.5MB/s x 8 = 12Mbps, which kind of means there is no problem i just lacked basics foundations binary a network guys explained this to me which kind does add up.

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