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

    slow transfer speeds ove ipsec

    Scheduled Pinned Locked Moved IPsec
    39 Posts 5 Posters 1.6k 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.
    • H
      hescominsoon @NOCling
      last edited by

      @NOCling said in slow transfer speeds ove ipsec:

      Use AES-GCM and check "Asynchronous Cryptography" and "Make before Break" is activ in IPsec Advanced Settings.

      Setup "Enable Maximum MSS" and set it to 1328, you will find it under: System Advanced Firewall & NAT.
      I use "IP Fragment Reassemble" too.
      This 1328 is the best MSS for IPsec tunnel mode if you want to avoid padding data.

      And don't use SMB over high latency connections, it's very slow. Use rsync or other WAN optimized stuff instead. Even ftp performance better, if you run up to 10 paralle streams.

      i was unable to set it to anything but 1400 as it was greyed out. after making those changes i actually lsot half of my speed. so i will be undoing some of them to get me back to where i was previously...with this being two windows machines...i might try setting up a temporary ftp server on the remote side..but they wil be using smb so i have to make that work the best i can for now eventually.

      H 1 Reply Last reply Reply Quote 0
      • H
        hescominsoon @hescominsoon
        last edited by

        @hescominsoon so turned on everything suggest3ed here and even setup an ftp server on the remote...transferring the one large file is now down to 60 megabits..and will not go any faster. I am at a loss as to why i have now halved my transfer speeds from ftp instead of smb...

        planedropP 1 Reply Last reply Reply Quote 0
        • planedropP
          planedrop @hescominsoon
          last edited by

          @hescominsoon Can you list all of your IPsec settings in detail (other than IP addresses)?

          H 1 Reply Last reply Reply Quote 0
          • H
            hescominsoon @planedrop
            last edited by hescominsoon

            @planedrop i put everything back to defaults..deleted the big file and am using filezilla to transfer everything to an ftp server i setup on the destination temporarily. i have 10 transfers going at once and am touching 220 megabits now..which is nearly the bandwidth at the remote iirc(the source just got upgraded to 500 megabits)...i will tinkert some more but so far the only change i am running now is the gcm version of aes..literally everything else is at defaults

            planedropP H 2 Replies Last reply Reply Quote 0
            • planedropP
              planedrop @hescominsoon
              last edited by

              @hescominsoon No I mean your settings for the IPsec tunnel itself, there aren't "defaults" you have to configure things.

              For example, is your Phase 1 IKE V2? What authentication method? AES128-GCM but what is the Key Length and DH Group set to?

              I think the best way we can help is if we have a list of every setting that is configured on your tunnel for both phase 1 and phase 2. Then we can give better advice on what to adjust to improve performance.

              H 2 Replies Last reply Reply Quote 0
              • H
                hescominsoon @hescominsoon
                last edited by

                @hescominsoon now the 71 is using up to 56 percent cpu..i am ok with that at least i am seeing decent performance...:)

                1 Reply Last reply Reply Quote 0
                • H
                  hescominsoon @planedrop
                  last edited by hescominsoon

                  @planedrop said in slow transfer speeds ove ipsec:

                  @hescominsoon No I mean your settings for the IPsec tunnel itself, there aren't "defaults" you have to configure things.

                  For example, is your Phase 1 IKE V2? What authentication method? AES128-GCM but what is the Key Length and DH Group set to?

                  I think the best way we can help is if we have a list of every setting that is configured on your tunnel for both phase 1 and phase 2. Then we can give better advice on what to adjust to improve performance.

                  i am using and AES-NI CPU Crypto: Yes (active)
                  IPsec-MB Crypto: Yes (active) sha 256 dh group 14 aes-gcm 128 that's what is in phase 1 i am using psk for authentication the key kength is 128 as per aes-128....

                  1 Reply Last reply Reply Quote 0
                  • H
                    hescominsoon @planedrop
                    last edited by

                    @planedrop yes ike is v2 which is what the system setup by default...:)

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

                      so now with everything as the system did by default when i first setup the vpn(with the exception of switching to aes gcm 128 instead of regular aes-128) and using ftp with 10 simultaneous transfers i am seeing a maximum of 400 megabits...which works much better.

                      planedropP 1 Reply Last reply Reply Quote 0
                      • planedropP
                        planedrop @hescominsoon
                        last edited by

                        @hescominsoon glad it's working better. GCM is far more efficient and is the way to go if you care about speed.

                        As for key length, I was asking about that setting because the key length setting actually becomes the ICV when you use AES GCM (it just doesn't dynamically rename itself).

                        Also, if you care about security, I would recommend using DH21 instead, 14 is fine but 21 is a good amount more secure.

                        Glad you are seeing better performance though, that is almost certainly due to GCM being used.

                        H 1 Reply Last reply Reply Quote 0
                        • H
                          hescominsoon @planedrop
                          last edited by

                          @planedrop said in slow transfer speeds ove ipsec:

                          @hescominsoon glad it's working better. GCM is far more efficient and is the way to go if you care about speed.

                          As for key length, I was asking about that setting because the key length setting actually becomes the ICV when you use AES GCM (it just doesn't dynamically rename itself).

                          Also, if you care about security, I would recommend using DH21 instead, 14 is fine but 21 is a good amount more secure.

                          Glad you are seeing better performance though, that is almost certainly due to GCM being used.

                          i will switch it to 21 once this half terabyte transfer completes..i am way behind now trying to get the performance worth using...:)

                          planedropP 1 Reply Last reply Reply Quote 0
                          • planedropP
                            planedrop @hescominsoon
                            last edited by

                            @hescominsoon Totally get you yeah. 14 is still considered secure but may not be considered so for much longer, so I'd say no rush on it but yeah swap to 21 when you can. You shouldn't really see much of a performance degradation with it either, if any at all.

                            I'd recommend 21 for both Phase 1 and 2.

                            H 1 Reply Last reply Reply Quote 0
                            • H
                              hescominsoon @planedrop
                              last edited by

                              @planedrop said in slow transfer speeds ove ipsec:

                              @hescominsoon Totally get you yeah. 14 is still considered secure but may not be considered so for much longer, so I'd say no rush on it but yeah swap to 21 when you can. You shouldn't really see much of a performance degradation with it either, if any at all.

                              I'd recommend 21 for both Phase 1 and 2.

                              for giggles i paused the ftp transfers and switched back to regular aes...and performance is the same as with gcm set...make any sense?

                              M 1 Reply Last reply Reply Quote 0
                              • H
                                hescominsoon
                                last edited by

                                once the ransfers done i wil post a detailed list of the ipsec vpn config...

                                1 Reply Last reply Reply Quote 0
                                • M
                                  mcury @hescominsoon
                                  last edited by

                                  I usually follow these settings: https://docs.netgate.com/pfsense/en/latest/vpn/performance.html

                                  Sometimes I have to use AES-CBC instead, if the other side is a mikrotik for an example. No problems with performance..

                                  dead on arrival, nowhere to be found.

                                  H 1 Reply Last reply Reply Quote 0
                                  • H
                                    hescominsoon @mcury
                                    last edited by

                                    @mcury said in slow transfer speeds ove ipsec:

                                    I usually follow these settings: https://docs.netgate.com/pfsense/en/latest/vpn/performance.html

                                    Sometimes I have to use AES-CBC instead, if the other side is a mikrotik for an example. No problems with performance..

                                    i will check that out...i did make sure both phase 1 and phase 21 on both ends were set to aes-gcm 128...:)

                                    planedropP 1 Reply Last reply Reply Quote 0
                                    • planedropP
                                      planedrop @hescominsoon
                                      last edited by

                                      @hescominsoon When accelerated AES-GCM will always be faster, so I'm wondering if something else was wrong with the previous configuration. AES-CBC can still be quick, but it's not going to be as fast as GCM.

                                      H 2 Replies Last reply Reply Quote 0
                                      • H
                                        hescominsoon @planedrop
                                        last edited by

                                        @planedrop said in slow transfer speeds ove ipsec:

                                        @hescominsoon When accelerated AES-GCM will always be faster, so I'm wondering if something else was wrong with the previous configuration. AES-CBC can still be quick, but it's not going to be as fast as GCM.

                                        so i went through those items in the documentation and put those into place...we shall see how it helps...:)_

                                        1 Reply Last reply Reply Quote 0
                                        • H
                                          hescominsoon @planedrop
                                          last edited by

                                          @planedrop said in slow transfer speeds ove ipsec:

                                          @hescominsoon When accelerated AES-GCM will always be faster, so I'm wondering if something else was wrong with the previous configuration. AES-CBC can still be quick, but it's not going to be as fast as GCM.

                                          well now..those small changes have helped..now i am getting bursts to maxing out the connection...since it's a series of small transfers it's not there all the time but those have definitely helped. i will do a large file transfer over smb later..although i know it won't be nearly as fast...:)

                                          planedropP 1 Reply Last reply Reply Quote 1
                                          • planedropP
                                            planedrop @hescominsoon
                                            last edited by

                                            @hescominsoon Glad it's working better now. SMB will definitely be slower but should be far more usable.

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