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

SG-3100, OpenVPN and crypto settings

Scheduled Pinned Locked Moved Official Netgate® Hardware
sg-3100openvpncrypto
5 Posts 3 Posters 1.5k 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.
  • S
    sean.allen
    last edited by Nov 29, 2018, 8:02 PM

    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
    • R
      Rico LAYER 8 Rebel Alliance
      last edited by Nov 30, 2018, 8:16 AM

      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

      S G 2 Replies Last reply Nov 30, 2018, 5:07 PM Reply Quote 1
      • S
        sean.allen @Rico
        last edited by Nov 30, 2018, 5:07 PM

        @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 Nov 30, 2018, 10:49 PM

          @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
          • R
            Rico LAYER 8 Rebel Alliance
            last edited by Dec 1, 2018, 8:32 AM

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

            -Rico

            1 Reply Last reply Reply Quote 0
            5 out of 5
            • First post
              5/5
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
              This community forum collects and processes your personal information.
              consent.not_received