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

    Do you have performance tips for Proxmox virtualized pfSense?

    Scheduled Pinned Locked Moved Virtualization
    18 Posts 4 Posters 5.1k 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.
    • NollipfSenseN
      NollipfSense @yobyot
      last edited by NollipfSense

      @yobyot said in Do you have performance tips for Proxmox virtualized pfSense?:

      Should I bother with physical switches so that the LAN and OPTx interfaces can run on physical PCI interfaces instead of Proxmox virtual bridges?

      It's all about your setup as to whether your requirement needs a switch or not. Experience shows having a smart switch opens more network control opportunities to a network administrator, especially expanding. I would recommend a smart switch that do layer3 and layer4. You can also use a virtual switch like vSwitch.

      To help your speed, consider double stack.

      pfSense+ 23.09 Lenovo Thinkcentre M93P SFF Quadcore i7 dual Raid-ZFS 128GB-SSD 32GB-RAM PCI-Intel i350-t4 NIC, -Intel QAT 8950.
      pfSense+ 23.09 VM-Proxmox, Dell Precision Xeon-W2155 Nvme 500GB-ZFS 128GB-RAM PCIe-Intel i350-t4, Intel QAT-8950, P-cloud.

      1 Reply Last reply Reply Quote 1
      • P
        Patch @yobyot
        last edited by Patch

        @yobyot said in Do you have performance tips for Proxmox virtualized pfSense?:

        2.5Gbps interfaces and the new one does.

        @yobyot said in Do you have performance tips for Proxmox virtualized pfSense?:

        VM and Proxmox showed 80% utilization.

        @yobyot said in Do you have performance tips for Proxmox virtualized pfSense?:

        Should I bother with physical switches so that the LAN and OPTx interfaces can run on physical PCI interfaces instead of Proxmox virtual bridges?

        You are the best on to assess the performance impact, by trying it.
        How may NICs does your new hardware have? Having separate physical NIC for separate high bandwidth logical interfaces may enable each to run on different sets of physical cores, increasing the efficiency of a multi-core CPU.
        How may cores does your physical CPU have & how may are you allocating to pfsense?

        Y 1 Reply Last reply Reply Quote 0
        • Y
          yobyot @Patch
          last edited by

          @Patch said in Do you have performance tips for Proxmox virtualized pfSense?:

          You are the best on to assess the performance impact, by trying it.
          How may NICs does your new hardware have? Having separate physical NIC for separate high bandwidth logical interfaces may enable each to run on different sets of physical cores, increasing the efficiency of a multi-core CPU.

          How may cores does your physical CPU have & how may are you allocating to pfsense?

          A very interesting suggestion! Thanks.

          My new-ish Protectli Vault is a VP4670 with a core i7 108010U -- it's fast enough to run pfSense plus a few Ubuntu VMs and an app-must-run-must-run-x64 Windows VM -- as long as you keep it cool enough to avoid thermal throttling. It's a 12-thread, six-core processor. pfSense is currently allocated 2 sockets and 4 cores. I have also converted the VM to the new Proxmox 8 x86-64-v2-AES type. pfSense says hardware crypo is enabled. See below.

          It also has six Intel I225-V 2.5Gbs ports.

          The end-design has one port connected to the ISP, another connected to a funky Netgear switch I am considering.

          The Netgear switch would will support two Ubiquiti POE+ APs, upstream connection to the ISP, a NAS running at 1Gbps and, possibly, two wired connections.

          The design (this is for a new condo) is focused on Wifi 6E to gain access to the 6Ghz band due to what I expect to be airwaves crowded with Costco-level Wifi routers from my neighbors. In my experience, apartment buildings are loaded up with Wifi APs that are used by non-technical people who want to economize, generating interference massive interference. It's the downside of unlicensed spectrum.

          Based on my experience running pfSense CE 2.7 today in Proxmox with a 1Gbps ISP service to one a PCI Passthrough port on the Vault, pfSense doesn't even "breath hard" ( as measured by things like the s-tui stress test on Proxmox) when I load up traffic on that link.

          But, once we move beyond the ISP limitation to 2.5Gbs, I don't want to lose that capability by using 1Gbps hardware -- and thus the question on how to make sure pfSense is as optimized as it could possibly be in a Proxmox VM.

          So, the question is, does it make "pfSense" (ha!) to dedicate the LAN port using PCI passthrough to pfSense (icgx) instead of creating a bridge and simply assigning the port to the bridge (vnetx).

          It seems like a no-brainer but the downside is that PCI passthrough devices are ineligible for Proxmox cluster migration. So, I'm trying to decide if that limitation is worth the price.

          pve.png

          NollipfSenseN P 2 Replies Last reply Reply Quote 0
          • NollipfSenseN
            NollipfSense @yobyot
            last edited by

            @yobyot said in Do you have performance tips for Proxmox virtualized pfSense?:

            So, the question is, does it make "pfSense" (ha!) to dedicate the LAN port using PCI passthrough to pfSense (icgx) instead of creating a bridge and simply assigning the port to the bridge (vnetx).

            May I suggest this guide: https://docs.netgate.com/pfsense/en/latest/recipes/virtualize-proxmox-ve.html

            If you follow the above, you'll see that both WAN and LAN are required to pass-through. It's best to have a separate interface for Proxmox. So, in essence, the requirements is three Ethernet ports, two of which pass-through to the pfSense VM.

            pfSense+ 23.09 Lenovo Thinkcentre M93P SFF Quadcore i7 dual Raid-ZFS 128GB-SSD 32GB-RAM PCI-Intel i350-t4 NIC, -Intel QAT 8950.
            pfSense+ 23.09 VM-Proxmox, Dell Precision Xeon-W2155 Nvme 500GB-ZFS 128GB-RAM PCIe-Intel i350-t4, Intel QAT-8950, P-cloud.

            Y 1 Reply Last reply Reply Quote 0
            • Y
              yobyot @NollipfSense
              last edited by

              @NollipfSense said in Do you have performance tips for Proxmox virtualized pfSense?:

              May I suggest this guide: https://docs.netgate.com/pfsense/en/latest/recipes/virtualize-proxmox-ve.html

              If you follow the above, you'll see that both WAN and LAN are required to pass-through. It's best to have a separate interface for Proxmox. So, in essence, the requirements is three Ethernet ports, two of which pass-through to the pfSense VM.

              Thanks.

              But it’s not the _number _ of interfaces connected to pfSense. (Yes, it’s a minimum of three.)

              The question I am asking is about the hardware configuration in Proxmox of those three (minimum) interfaces.

              NollipfSenseN 1 Reply Last reply Reply Quote 0
              • NollipfSenseN
                NollipfSense @yobyot
                last edited by NollipfSense

                @yobyot said in Do you have performance tips for Proxmox virtualized pfSense?:

                The question I am asking is about the hardware configuration in Proxmox of those three (minimum) interfaces.

                When you were installing Proxmox, didn't you select an interface for Proxmox...so, I can fully understand the question. Didn't you configure this via the installer? There is not much to configure, just assign an IP and gateway. How I do mine is make pfSense LAN, Proxmox's gateway. Then, connect a smart switch to pfSense LAN, then connect an Ethernet cable from Proxmox's Ethernet port to the switch...it should be obvious that Proxmox Ethernet is on the same exact network as pfSense LAN.

                pfSense+ 23.09 Lenovo Thinkcentre M93P SFF Quadcore i7 dual Raid-ZFS 128GB-SSD 32GB-RAM PCI-Intel i350-t4 NIC, -Intel QAT 8950.
                pfSense+ 23.09 VM-Proxmox, Dell Precision Xeon-W2155 Nvme 500GB-ZFS 128GB-RAM PCIe-Intel i350-t4, Intel QAT-8950, P-cloud.

                Y 1 Reply Last reply Reply Quote 0
                • Y
                  yobyot @NollipfSense
                  last edited by

                  @NollipfSense said in Do you have performance tips for Proxmox virtualized pfSense?:

                  When you were installing Proxmox, didn't you select an interface for Proxmox...so, I can fully understand the question. Didn't you configure this via the installer? There is not much to configure, just assign an IP and gateway. How I do mine is make pfSense LAN, Proxmox's gateway. Then, connect a smart switch to pfSense LAN, then connect an Ethernet cable from Proxmox's Ethernet port to the switch...it should be obvious that Proxmox Ethernet is on the same exact network as pfSense LAN.

                  Maybe a picture will help.

                  In the composite screenshot below, you can see that in pfSense a PCI passthrough Ethernet adapter on the physical host is passed through as igc0. This connects to the ISP and could run at 2.5Gbps, if I had that service now, because the physical adapter on the appliance is 2.5Gbps capable. pfSense accesses this adapter directly, not through Proxmox. It is shown in the screenshot as hostpci0.

                  The LAN interface for CIDR 192.168.2.0/24 ('vtnet0') is on a Proxmox bridge. This is configured in Proxmox as a Virtual I/O (paravirtualized) device (enp2s0) to pfSense, which sees it as vtnet0. vtnet[x] is pfSense's device assignment to virtualized network hardware. IOW, it is not directly connected to pfSense; Proxmox is handling interrupts and data transfer into pfSense's memory.

                  Proxmox is accessible on this bridge as I added an address for it (10.69.0.2). The vmbr2 bridge on enp3s0 is solely for the case in which pfSense is down and therefore cannot be accessed. By adding a bridge on enp3s0 and assigning a management address of 10.68.0.2 to Proxmox, I can simply connect a laptop to that port on the appliance, manually configure an address in 10.68.0.0/16 and connect to Proxmox when pfSense is crashed or won't start. I prefer not to have the Proxmox management address on the same interface as the LAN interface; losing a physical port to access it isn't an issue for me.

                  So, the question -- or at least the networking portion of my question -- boils down to, "how much performance penalty might there for running pfSense LAN/OPTx interfaces paravirtualized in Proxmox if the connection to the ISP runs faster than 1Gbps?

                  I could dedicate additional PCI appliance Ethernet ports to pfSense LAN/OPTx interfaces, but there are two trade-offs (maybe more). First, you're locked to that device, making Proxmox node migrations harder. Second, if the FreeBSD kernel is handling I/O directly for a device on the PCI bus, what's the impact in pfSense's CPU and memory requirements vs. letting Proxmox handle that?

                  Finally, does anyone know if a paravirtualized FreeBSD interface (vtnet[x]) can even run at 2.5Gbps?

                  pfsenseProxmox.png

                  1 Reply Last reply Reply Quote 0
                  • P
                    Patch @yobyot
                    last edited by Patch

                    @yobyot said in Do you have performance tips for Proxmox virtualized pfSense?:

                    VM to the new Proxmox 8 x86-64-v2-AES type.

                    I use processor type "Host" as I don't anticipate needing to live migrate my pfsense VM to another Proxmox host,

                    @yobyot said in Do you have performance tips for Proxmox virtualized pfSense?:

                    It also has six Intel I225-V 2.5Gbs ports.

                    Nice, I recently bought a similar unit.
                    Given the generous physical NIC we have, I pass through all NIC pfsense VM uses. Proxmox (and other VM's) connect to the pfsense VM via an external switch.

                    @NollipfSense said in Do you have performance tips for Proxmox virtualized pfSense?:

                    If you follow the above, you'll see that both WAN and LAN are required to pass-through. It's best to have a separate interface for Proxmox.

                    Agree

                    @yobyot said in Do you have performance tips for Proxmox virtualized pfSense?:

                    The Netgear switch would will support two Ubiquiti POE+ APs, upstream connection to the ISP, a NAS running at 1Gbps and, possibly, two wired connections.

                    That's a bit weird. It is not clear why you are connecting the ISP to the Netgear switch.
                    Why are you not using a WAN connection:
                    ISP -> pfsense VM (optionally passed through) NIC

                    Lan connection
                    pfsense VM (optionally passed through) NIC -> Netgear switch
                    (if pfsense Lan NIC is passed through, Proxmox & other VM will use a different physical NIC to connect to the Netgear switch / LAN. That also means if your Proxmox install has a problem you can easily connect it to another lan to fix it)

                    Y 1 Reply Last reply Reply Quote 0
                    • Y
                      yobyot @Patch
                      last edited by

                      @Patch said in Do you have performance tips for Proxmox virtualized pfSense?:

                      I use processor type "Host" as I don't anticipate needing to live migrate my pfsense VM to another Proxmox host,

                      Interesting. How do you get pfSense to then use hardware AES support, which is crucial for TLS performance?

                      That's a bit weird. It is not clear why you are connecting the ISP to the Netgear switch.
                      Why are you not using a WAN connection:
                      ISP -> pfsense VM (optionally passed through) NIC

                      I misstated it. I do plan to connect the ISP directly to the appliance. Not sure what I was thinking. :-)

                      Thanks.

                      P 1 Reply Last reply Reply Quote 0
                      • P
                        Patch @yobyot
                        last edited by

                        @yobyot said in Do you have performance tips for Proxmox virtualized pfSense?:

                        How do you get pfSense to then use hardware AES support

                        My understanding is VM processor type "Host" means the VM is told it has the same processor as the Proxmox hypervisor is running on. So if the physical processor supports AES then the VM will be told that's the case.

                        Y 1 Reply Last reply Reply Quote 0
                        • Y
                          yobyot @Patch
                          last edited by

                          @Patch said in Do you have performance tips for Proxmox virtualized pfSense?:

                          @yobyot said in Do you have performance tips for Proxmox virtualized pfSense?:

                          How do you get pfSense to then use hardware AES support

                          My understanding is VM processor type "Host" means the VM is told it has the same processor as the Proxmox hypervisor is running on. So if the physical processor supports AES then the VM will be told that's the case.

                          Hmmm....until I changed to the AES-specific host, none of the crypto showed as active in the pfSense summary. Weird.

                          aes.png

                          P 1 Reply Last reply Reply Quote 0
                          • P
                            Patch @yobyot
                            last edited by Patch

                            @yobyot
                            Proxmox hardware settings for pfsense VM
                            11 pfsense VM Hardware information.jpg

                            pfsense GUI System information
                            12 pfsense System information.jpg

                            Y 1 Reply Last reply Reply Quote 0
                            • Y
                              yobyot @Patch
                              last edited by

                              @Patch said in Do you have performance tips for Proxmox virtualized pfSense?:

                              @yobyot
                              Proxmox hardware settings for pfsense VM
                              11 pfsense VM Hardware information.jpg

                              pfsense GUI System information
                              12 pfsense System information.jpg

                              Hmmm…I wonder what the difference is between your appliance and mine is when it comes to the “Host” type.

                              NollipfSenseN 1 Reply Last reply Reply Quote 0
                              • NollipfSenseN
                                NollipfSense @yobyot
                                last edited by

                                @yobyot said in Do you have performance tips for Proxmox virtualized pfSense?:

                                Hmmm…I wonder what the difference is between your appliance and mine is when it comes to the “Host” type.

                                Looking at this screenshot below, WAN should be vtnet0 and LAN should be vtnet1...

                                Screenshot 2023-08-20 at 10.34.22 AM.png

                                Also, I have only followed the pfSense recipe quoted in earlier post and that required to use BIOS > OVMF for UEFI boot with machine Q35...

                                Screenshot 2023-08-20 at 10.27.29 AM.png

                                pfSense+ 23.09 Lenovo Thinkcentre M93P SFF Quadcore i7 dual Raid-ZFS 128GB-SSD 32GB-RAM PCI-Intel i350-t4 NIC, -Intel QAT 8950.
                                pfSense+ 23.09 VM-Proxmox, Dell Precision Xeon-W2155 Nvme 500GB-ZFS 128GB-RAM PCIe-Intel i350-t4, Intel QAT-8950, P-cloud.

                                Y 1 Reply Last reply Reply Quote 0
                                • Cool_CoronaC
                                  Cool_Corona
                                  last edited by

                                  Yes. Use ESXi.

                                  1 Reply Last reply Reply Quote 0
                                  • Y
                                    yobyot @NollipfSense
                                    last edited by

                                    @NollipfSense said in Do you have performance tips for Proxmox virtualized pfSense?:

                                    Looking at this screenshot below, WAN should be vtnet0 and LAN should be vtnet1...

                                    Actually, no.

                                    pfSense was running on an external Vault. When I migrated it to Proxmox, I put it on vmbr1. I haven't found a way to renumber the bridges so that it "looks" right and now I kinda like it.

                                    NollipfSenseN 1 Reply Last reply Reply Quote 0
                                    • NollipfSenseN
                                      NollipfSense @yobyot
                                      last edited by

                                      @yobyot said in Do you have performance tips for Proxmox virtualized pfSense?:

                                      Actually, no.

                                      pfSense was running on an external Vault. When I migrated it to Proxmox, I put it on vmbr1. I haven't found a way to renumber the bridges so that it "looks" right and now I kinda like it.

                                      Well, if it works for you, hooray...I just shared what the pfSense document says...like I installed using UEFI for pfSense on Proxmox, as well as, install Proxmox on ZFS.

                                      pfSense+ 23.09 Lenovo Thinkcentre M93P SFF Quadcore i7 dual Raid-ZFS 128GB-SSD 32GB-RAM PCI-Intel i350-t4 NIC, -Intel QAT 8950.
                                      pfSense+ 23.09 VM-Proxmox, Dell Precision Xeon-W2155 Nvme 500GB-ZFS 128GB-RAM PCIe-Intel i350-t4, Intel QAT-8950, P-cloud.

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