Navigation

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

    SG-3100, OpenVPN and crypto settings

    Official Netgate® Hardware
    sg-3100 openvpn crypto
    3
    5
    819
    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.
    • S
      sean.allen last edited by

      Saw this old post with no activity about hardware crypto settings: SG-3100 what setting for cryptographic hardware?

      FWIW, I used BSD Crypto Device (cryptodev) in System->Advanced->Miscellaneous and Hardware Crypto in the OpenVPN client config and saw no big difference with it on or off.

      I tried a few different crypto settings on the OpenVPN client, using ones that cryptodev supposedly assists (e.g. AES-128-CBC). Nothing I do gets the client chatting over 100Mb on a gig line, which seems to pair up to the old Speed estimate for openvpn on the SG-3100 thread.

      Tossing it out to the hive - anyone more recently find some great configs that push the 3100 to higher OpenVPN throughput? I'm willing to try IPSec, but I'd really need a recipe for that...

      1 Reply Last reply Reply Quote 0
      • Rico
        Rico LAYER 8 Rebel Alliance last edited by

        The maximum I was able to squeeze out the SG-3100 with OpenVPN is 98MBit with AES-128-CBC.
        AES-256-GCM is like 83MBit.
        Playing around with the crypto Settings in System->Adv->MISC and/or the OpenVPN Instance made it even 1-3MBit slower. 😳

        -Rico

        2x Netgate XG-7100 | 11x Netgate SG-5100 | 6x Netgate SG-3100 | 2x Netgate SG-1100

        S G 2 Replies Last reply Reply Quote 1
        • S
          sean.allen @Rico last edited by

          @rico Well, at least they're consistent. That's right at my high mark as well. Bufferbloat was out of control, so turned CoDel on for the VPN interface and that smoothed out a bit - but didn't help reported speed number.

          Just ran two speed tests on it. Used a CLI tester that generally gives higher numbers than the others, seems it really pushes multiple paths to the max. This is with AES-128-CBC as well. SpeedTest++ does automatic line testing, it thinks mine is broadband and not fiber. When I run it without VPN, it sees fiber every time.

          Any clue why upload speed is so much slower on a symmetric link?

          Speedtest.net command line interface
          Info: https://github.com/taganaka/SpeedTest
          Author: Francesco Laurita <francesco.laurita@gmail.com>
          
          Finding fastest server... 7736 Servers online
          ............
          Ping: 3 ms.
          Jitter: 2 ms.
          Determine line type (2) ........................
          Broadband line type detected: profile selected broadband
          
          Testing download speed (32) .....................................................................................................................
          Download: 116.35 Mbit/s
          Testing upload speed (8) .......................................................
          Upload: 41.01 Mbit/s
          
          back-to-back run
          
          SpeedTest++ version 1.14
          Speedtest.net command line interface
          Info: https://github.com/taganaka/SpeedTest
          Author: Francesco Laurita <francesco.laurita@gmail.com>
          
          Finding fastest server... 7736 Servers online
          ............
          Ping: 4 ms.
          Jitter: 6 ms.
          Determine line type (2) ........................
          Broadband line type detected: profile selected broadband
          
          Testing download speed (32) ...................................................................................................................
          Download: 108.90 Mbit/s
          Testing upload speed (8) .......................................................
          Upload: 39.17 Mbit/s
          
          1 Reply Last reply Reply Quote 0
          • G
            gsmornot @Rico last edited by

            @rico said in SG-3100, OpenVPN and crypto settings:

            The maximum I was able to squeeze out the SG-3100 with OpenVPN is 98MBit with AES-128-CBC.
            AES-256-GCM is like 83MBit.
            Playing around with the crypto Settings in System->Adv->MISC and/or the OpenVPN Instance made it even 1-3MBit slower. 😳

            -Rico

            For security you want to use 256-CBC but are fine with 128-GCM. GCM will be more secure even with the lower bit setting.

            1 Reply Last reply Reply Quote 0
            • Rico
              Rico LAYER 8 Rebel Alliance last edited by

              Yes I know, AES-128-CBC was the maximum Speed for my SG-3100.

              -Rico

              2x Netgate XG-7100 | 11x Netgate SG-5100 | 6x Netgate SG-3100 | 2x Netgate SG-1100

              1 Reply Last reply Reply Quote 0
              • First post
                Last post