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

    Optimize OpenVPN connection

    Scheduled Pinned Locked Moved OpenVPN
    2 Posts 2 Posters 887 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.
    • J
      jeff3820
      last edited by jeff3820

      The Pfsense firewall is based on an Intel i3-7100U running at 2.4GHz and has 8GB of RAM and a SSD. No other packages are running and cpu is typically 0-2%. The firewall is on a 300/300 connection and works great. I was recently at a location that also has a 300/300 connection (verified using speedtest on multiple servers) and when I enabled the Openvpn connection I only achieved a 100/100 using multiple speedtests on different servers. Is this typical Openvpn performance? I am running an AES-128-GCM/SHA256 cipher and the crypto engine is set to BSD Cryptodev engine. In the Pfsense Advanced/Misc settings the cryptographic hardware is set to AES-NI and BSD Crypto Device. Anything else I can do to optimize performance? I tried adding sndbuf 524288 and rcvbuf 524288 to the Openvpn custom options but there was no change in performance so I removed them. Suggestions?

      1 Reply Last reply Reply Quote 0
      • PippinP
        Pippin
        last edited by Pippin

        @jeff3820 said in Optimize OpenVPN connection:

        set to BSD Cryptodev engine. In the Pfsense Advanced/Misc settings the cryptographic hardware is set to AES-NI and BSD Crypto Device

        Disable both.
        Try playing with different values for snd/rcvbuf.
        Also, can play with

        --txqueuelen n
        

        See manual 2.4:
        https://community.openvpn.net/openvpn/wiki/Openvpn24ManPage
        Above settings apply to server and client separately.

        I gloomily came to the ironic conclusion that if you take a highly intelligent person and give them the best possible, elite education, then you will most likely wind up with an academic who is completely impervious to reality.
        Halton Arp

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