Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    Testing VPN performance...

    Scheduled Pinned Locked Moved General pfSense Questions
    5 Posts 3 Posters 349 Views 4 Watching
    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.
    • B
      beardmann
      last edited by

      Hi there,
      I am a totally newbee to pfsense. I am currently trying to setup a little test with two virtual pfsense installations, between which I would like to test VPN performance.
      The two test hosts are MiniForums boxes with 10G NICs... running Proxmox.
      I managed to install both test installations, and ran into issues because my WAN interfaces were just local DHCP addresses from my local network which happened to be 10.10.10.0/24 so I later found out that it was blocked by a default rule to block all "bogus" subnets... once I removed this rule, I was able to ping between the WAN interfaces...
      I then setup a standard IPSec tunnel with P1 and P2 etc. and got that working as well..
      Now to the testing... I installed iperf3 on both firewalls and enabled SSH into the firewalls so that I was able to give iperf3 additional options...
      The tests were not great... like with parallel set to 1 (default) I get like 400Mb between the two firewalls... and with 4 or more I can get a little over 1Gb, but that's where it stops...
      At first I could see that the CPU was high, so I added 12 cores to each VM, and I enabled AMD AES-NI which pfsense is able to see and I enabled it, but still not really a big change...
      I'm using the "standard" AES 256, SHA256 DHG14... in both P1 and P2... and VTI i P2...
      The virtual NICs are "paravirtuel" and shows up in pfsense at 10Gb links...
      I have of cause tested between the two proxmox systems where I am able to do close to wirespeed.
      So I am pretty sure that the IPSEC tunnel is slowing me down...
      But is this just "as expected" ? Or am I missing something?

      The main reason I am testing this, is that I have two sites with both 5Gb internet connections, and they are able to do the "speedtest" at close to 5Gb (up/down)... but even with two of the larger Mikrotik routers we are also stuck at low VPN speeds... it got a bit better when we switched from IPSec to wireguard, but on Mikrotik there isn't any CPU offload of wireguard crypto, and we can see that it seems to be using one core on it, because one it is pegged at 100% when we test...

      The two proxmox/minisforum boxes I am testing with are AMD Ryzen 9 9955HX 16-Core CPUs...

      I was wondering if anyone has actually tested IPSec / wireguard at speeds over 1Gb? And which equipment was used...

      (sorry for the way too long post..)
      /B

      1 Reply Last reply
      Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        Check the output at the CLI of top -HaSP whilst testing. See how the CPU cores are being used. Are any pegged at 100%?

        Are you running iperf3 on pfSense directly? That itself will use significant CPU cycles, its better to test between clients ob the two LAN subnets.

        B 1 Reply Last reply
        Reply Quote 0
        • B
          beardmann @stephenw10
          last edited by

          @stephenw10 Screenshot 2026-10-28 at 09.39.18.jpg

          I managed to bring it up to 1.5Gbps by using the correct crypto setting, and using the AES128-GCM...
          But still, pretty far from 5Gbps... I added 12 cores to each VM, and it doesn't seem to be CPU limited any longer...

          And yes I run ipsec3 from inside pfsense, but it doesn't seem to load the system more.

          Not sure what to tune next?

          GertjanG 1 Reply Last reply
          Reply Quote 0
          • GertjanG
            Gertjan @beardmann
            last edited by

            @beardmann said in Testing VPN performance...:

            Not sure what to tune next?

            As shown on the pfSense dashboard :

            61424d8e-b25b-4f90-9c35-30c37660b934-image.png

            Read de ding-dong story. A future pfSense release will include this fix.

            You use a VM. That's will introduce a speed penality. Context switching between the host, who accesses the real hardware NIC, and the VM, who can't access that NIC, will introduce slowdowns.

            No "help me" PM's please. Use the forum, the community will thank you.

            1 Reply Last reply
            Reply Quote 0
            • stephenw10S
              stephenw10 Netgate Administrator
              last edited by

              Mmm, the load looks nicely spread at least. What's shown in the process list though?

              Are you passing the CPU type through to the VM?

              You see the full 5Gbps between the pfSense WANs outside the tunnel?

              1 Reply Last reply
              Reply Quote 0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • First post
                Last post
              Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
              Privacy Policy · Cookie Policy