OPNsense runs well as a Proxmox VE guest, but only when the VM is built for it. That means VirtIO disk and NICs, a CPU type FreeBSD can use, one bridge for WAN and one for LAN, and the guest agent plugin after first boot. Get those right and you can install OPNsense on Proxmox in about twenty minutes, then manage it like any other VM.
This guide covers both sides together: the VM settings, two bridge layouts (two physical NICs, or one NIC with a single public IP like a Hetzner box), the install, interface assignment, the setup wizard, the guest agent and checksum offload. The core path below was run on Proxmox VE 9.2 with a fresh OPNsense 26.7 DVD image in November 2026, so the screens and outputs are the ones you will see; the few variants we did not run are marked where they appear.
Size the VM and pick the Proxmox settings
Most problems people hit with OPNsense on Proxmox come from settings copied out of old guides: e1000 NICs, the kvm64 CPU type and IDE disks. FreeBSD has had solid VirtIO drivers for years, so there’s no reason to emulate an Intel card anymore. These are the values we used and why:
| Setting | Value | Why |
|---|---|---|
| OS type | Other | Proxmox has no FreeBSD preset; Other keeps Linux tweaks off |
| CPU type | host (or x86-64-v2-AES in a mixed cluster) | Passes AES-NI through for VPN throughput; kvm64 hides it |
| vCPU / RAM | 2 cores, 4 GB | The installer alone needs 3 GB of memory |
| SCSI controller | VirtIO SCSI single, iothread on | Shows up as da0 with no extra drivers |
| Disk | 32 GB on local-lvm, discard on | Room for logs and updates; 40 GB if you plan on IDS |
| Network | 2 x VirtIO (net0 WAN, net1 LAN) | Appears as vtnet0 and vtnet1 |
| QEMU agent | Enabled | Lets Proxmox read the firewall’s IPs and shut it down cleanly |
The OPNsense hardware sizing page puts the “reasonable” spec at a dual core CPU, 4 GB of RAM and a 40 GB disk, and the recommended one at 8 GB and 120 GB. Go toward that upper end if you will run Suricata, a caching proxy or hundreds of VPN users, because those features eat CPU and disk writes. A home lab or small office firewall is fine on the values in the table.
Pick host as the CPU type unless the VM has to live migrate between nodes with different CPUs. In that case x86-64-v2-AES keeps AES-NI while staying portable. If you’re still choosing the box itself, our firewall hardware picks and the NIC guide for OPNsense and pfSense cover what to buy.
Create the WAN and LAN bridges
OPNsense needs two Linux bridges on the Proxmox host: vmbr0 faces the internet and becomes the firewall’s WAN, while vmbr1 is the private side your other VMs plug into. How you build vmbr0 depends on how many NICs the server has and how many public IPs you get. Run every host command in this guide as root on the Proxmox node, because a stock Proxmox install has no sudo.
Two physical NICs
With two ports, give each bridge its own port so physical machines on your switch land behind OPNsense too. The wiring looks like this:
enp1s0to the ISP router or modem, bridged asvmbr0enp2s0to the LAN switch, bridged asvmbr1- Proxmox management address on
vmbr0
Keeping management on the WAN side means you can still reach the Proxmox UI when the firewall VM is down, which is exactly when you need it most. Edit /etc/network/interfaces on the node and adjust the port names and addresses to yours:
nano /etc/network/interfaces
The two bridge stanzas look like this, with enp1s0 as the WAN port and enp2s0 as the LAN port:
auto lo
iface lo inet loopback
iface enp1s0 inet manual
iface enp2s0 inet manual
auto vmbr0
iface vmbr0 inet static
address 10.0.1.10/24
gateway 10.0.1.1
bridge-ports enp1s0
bridge-stp off
bridge-fd 0
#OPNsense WAN + Proxmox management
auto vmbr1
iface vmbr1 inet manual
bridge-ports enp2s0
bridge-stp off
bridge-fd 0
#OPNsense LAN
Our lab node has one NIC, so we parsed this file with ifquery on the node rather than applying it. Keep the upstream subnet different from the OPNsense LAN, which defaults to 192.168.1.0/24, otherwise the WAN and LAN overlap and routing breaks. Apply it with ifreload -a from the node’s console, not over SSH, in case a typo drops the management address. Management on vmbr0 is only safe when the upstream is a router’s private LAN: if the modem hands that bridge a public IP, the Proxmox UI on port 8006 and SSH face the internet, so move management to vmbr1 instead.
One NIC and one public IP (Hetzner and similar)
Rented dedicated servers usually come with one port and one public IPv4. Here vmbr0 has no physical port at all: it is a private transit network between the host and the OPNsense WAN, and the host masquerades it out of the real NIC. That clashes with what the Proxmox installer wrote: on a node installed from the ISO, vmbr0 already exists, bridged to the NIC and holding the public IP. Check where your public address lives first:
ip -br -4 addr
If it sits on vmbr0, move it back onto the physical NIC the way the Proxmox network docs show for masquerading, and delete the old vmbr0 stanza. Do this from the server’s KVM console, because the public address drops while you edit. Replace the installer’s iface eno1 inet manual line with the stanza below, copying the address, prefix and gateway from the old vmbr0 stanza; eno1 and the 203.0.113.x values stand in for yours:
auto eno1
iface eno1 inet static
address 203.0.113.10/24
gateway 203.0.113.1
Then add the two bridges below. This is the part our lab ran, on a node whose NIC ens4 was configured outside this file, so change ens4 in both MASQUERADE lines to your public interface name, eno1 in the example above:
auto vmbr0
iface vmbr0 inet static
address 10.0.1.1/24
bridge-ports none
bridge-stp off
bridge-fd 0
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up iptables -t nat -A POSTROUTING -s '10.0.1.0/24' -o ens4 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '10.0.1.0/24' -o ens4 -j MASQUERADE
#OPNsense WAN
auto vmbr1
iface vmbr1 inet manual
bridge-ports none
bridge-stp off
bridge-fd 0
#OPNsense LAN
If the Proxmox firewall is enabled on the node, its network configuration docs also add a conntrack zone pair to the vmbr0 stanza so outgoing connections keep working. Ours had the firewall off, so we left these out:
post-up iptables -t raw -I PREROUTING -i fwbr+ -j CT --zone 1
post-down iptables -t raw -D PREROUTING -i fwbr+ -j CT --zone 1
Reload the network, from the server’s KVM console if you have one, and confirm both bridges exist and the NAT rule is in place:
ifreload -a
ip -br -4 addr show vmbr0; ip -br link show vmbr1
iptables -t nat -S POSTROUTING
You should see vmbr0 holding 10.0.1.1/24, vmbr1 up with no address, and a MASQUERADE rule for 10.0.1.0/24. With the firewall running, our node showed:
vmbr0 UP 10.0.1.1/24
vmbr1 UP xx:xx:xx:xx:xx:xx <BROADCAST,MULTICAST,UP,LOWER_UP>
-P POSTROUTING ACCEPT
-A POSTROUTING -s 10.0.1.0/24 -o ens4 -j MASQUERADE
The cost of this layout is double NAT: inbound ports need a forward on the host first, then a port forward in OPNsense. If you would rather give the firewall its own public address, order an additional IP with a separate virtual MAC in Hetzner Robot, bridge vmbr0 to the physical port, and set that MAC on the VM’s net0. Hetzner’s additional IP docs note the IP then uses its own gateway. We did not test that variant here.
Download the current OPNsense image
Grab the DVD image straight into Proxmox’s ISO store so you don’t have to upload 2 GB from your laptop. Rather than hardcoding a release, the lookup below reads the mirror’s directory listing and picks the newest one. Swap the mirror for one near you from the OPNsense download page:
cd /var/lib/vz/template/iso
MIRROR=https://mirror.ams1.nl.leaseweb.net/opnsense/releases
VER=$(curl -s ${MIRROR}/ | grep -oE "[0-9]{2}\.[0-9]+/" | sort -uV | tail -1 | tr -d /) #https://docs.opnsense.org/releases.html
echo $VER
The lookup returned the current major release on our run:
26.7
Download the compressed image with its checksum file, verify it, and unpack it. The --ignore-missing flag matters because the checksum file also lists the nano, serial and VGA images you didn’t download:
wget -q ${MIRROR}/${VER}/OPNsense-${VER}-dvd-amd64.iso.bz2 ${MIRROR}/${VER}/OPNsense-${VER}-checksums-amd64.sha256
sha256sum -c --ignore-missing OPNsense-${VER}-checksums-amd64.sha256
bunzip2 OPNsense-${VER}-dvd-amd64.iso.bz2
ls -lh OPNsense-${VER}-dvd-amd64.iso
Only continue if the check prints OK. The unpacked ISO is about 2 GB:
OPNsense-26.7-dvd-amd64.iso.bz2: OK
-rw-r--r-- 1 root root 2.0G Jul 13 15:28 OPNsense-26.7-dvd-amd64.iso
Keep the VER variable set in this shell, because the next command uses it to point the VM at the ISO.
Create the VM with VirtIO disk and NICs
One qm create builds the whole VM. It puts net0 on the WAN bridge and net1 on the LAN bridge, boots from the disk first so the installed system wins once it exists, and starts the firewall with the host. Change the VMID and storage name if 100 or local-lvm don’t fit your node:
qm create 100 --name opnsense --ostype other --memory 4096 --cores 2 --cpu host --scsihw virtio-scsi-single --scsi0 local-lvm:32,iothread=1,discard=on --ide2 local:iso/OPNsense-${VER}-dvd-amd64.iso,media=cdrom --net0 virtio,bridge=vmbr0 --net1 virtio,bridge=vmbr1 --boot "order=scsi0;ide2" --agent enabled=1 --onboot 1
Proxmox creates the thin volume and reports the disk it attached:
Logical volume "vm-100-disk-0" created.
Logical volume pve/vm-100-disk-0 changed.
scsi0: successfully created disk 'local-lvm:vm-100-disk-0,discard=on,iothread=1,size=32G'
Check the config before you boot it. The lines to look at are cpu: host, both net entries reading virtio, and agent: enabled=1:
qm config 100
Our VM came out like this (MAC addresses masked, and the meta, smbios1 and vmgenid lines dropped):
agent: enabled=1
boot: order=scsi0;ide2
cores: 2
cpu: host
ide2: local:iso/OPNsense-26.7-dvd-amd64.iso,media=cdrom,size=2052456K
memory: 4096
name: opnsense
net0: virtio=BC:24:11:xx:xx:xx,bridge=vmbr0
net1: virtio=BC:24:11:xx:xx:xx,bridge=vmbr1
onboot: 1
ostype: other
scsi0: local-lvm:vm-100-disk-0,discard=on,iothread=1,size=32G
scsihw: virtio-scsi-single
Start it and open the VM’s console from the Proxmox web UI, since the installer is text based:
qm start 100
If you’d rather click through the Proxmox wizard, the same values apply: OS type Other, the ISO on the CD drive, VirtIO SCSI single, CPU type host, and VirtIO for the network model. Add the second NIC on the VM’s Hardware tab afterwards, because the wizard only creates one.
Install OPNsense from the console
The DVD boots into a live system first. Wait for the login prompt, then log in as installer with the password opnsense. Pick your keymap and you land on the installer menu:

We chose Install (UFS). If the VM disk already sits on a ZFS pool on the host, ZFS inside the guest means copy on write twice and a second ARC competing for the VM’s 4 GB. UFS is the lighter choice for a VM; take ZFS only if you want boot environments inside the firewall itself.
The next screen is the one to slow down on. The installer preselects cd0, the DVD drive, as the target disk:

Arrow down to da0, the 32 GB QEMU hard disk, before pressing Enter. Accept the swap partition it offers, confirm the “Last Chance” warning that wipes da0, and let it clone, verify and prepare the target. On the Final Configuration screen set a root password, then choose Complete Install.
The completion dialog warns that the VM may boot back into the install media. Choose Halt rather than Reboot, then detach the ISO from the host so that can’t happen:
qm set 100 --ide2 none,media=cdrom
qm start 100
The installed system boots straight to the console login, now from da0.
Assign the WAN and LAN interfaces
Look closely at the banner on first boot. OPNsense put LAN on vtnet0 and WAN on vtnet1, which is backwards from how we wired the VM: vtnet0 is net0 on the WAN bridge.

Left like that, the web GUI and DHCP server would sit on your upstream network. Log in as root and pick option 1) Assign interfaces. Answer n to LAGGs and VLANs, enter vtnet0 for WAN and vtnet1 for LAN, leave the optional interface empty, and confirm with y:

If you’re unsure which vtnet is which, match the MAC addresses on that screen against qm config 100 on the host. The net0 MAC is your WAN.
On a two NIC setup where the upstream router hands out DHCP, the WAN picks up an address on its own and you’re done. Behind the NAT bridge there is no DHCP server, so use option 2) Set interface IP address, pick WAN and give it a static address: 10.0.1.2/24 with 10.0.1.1 as the upstream gateway. We said no to IPv6, kept HTTPS for the GUI and skipped generating a new certificate. The console then shows both sides addressed correctly:

Prove the WAN works before touching the GUI: option 7) Ping host to 1.1.1.1 returned 3 of 3 replies in our lab. If it fails, check the host side first, meaning the MASQUERADE rule and ip_forward, because OPNsense cannot route past a bridge that drops its traffic.
Finish the setup wizard
The GUI only listens on the LAN, so you need a browser on vmbr1. With two NICs, plug a laptop into the LAN switch and browse to https://192.168.1.1. On a rented one NIC server, give the node an address on the LAN bridge outside the DHCP pool, which is what our lab did:
ip addr add 192.168.1.250/24 dev vmbr1
That puts the node itself on the firewall’s LAN, exposing its UI and SSH to every LAN VM, so keep it only until the LAN client test further down is done, then remove it with ip addr del 192.168.1.250/24 dev vmbr1. It would vanish at the next reboot anyway. From your workstation, tunnel the GUI through the node (203.0.113.10 stands in for its public IP) and browse to https://localhost:8443. We used ssh -D with a SOCKS proxy in the browser instead, which does the same job:
ssh -L 8443:192.168.1.1:443 [email protected]
Log in as root and the first login drops you into the setup wizard.
The General Information tab takes the hostname, domain, timezone and DNS servers. The WAN tab is where it bit us. The static address from the console carried over, but the gateway field was empty and flagged red, so type the upstream gateway (10.0.1.1 here) again:

- 1Gateway
- 2Block RFC1918 Private Networks
On the same tab, Block RFC1918 Private Networks is ticked by default. That’s right when the WAN holds a real public IP. When it sits on a private upstream, like the 10.0.1.0/24 NAT bridge or a home router’s LAN, untick it, or any connection that starts on the upstream side is dropped. The symptom is confusing: browsing from the LAN works because replies match state, while a port forward reached from your home network silently fails. Leave Block bogon networks ticked either way.
The remaining tabs need little from you. Work through them in this order:
- LAN: keep 192.168.1.1/24 and its DHCP server
- Deployment type: keep the defaults
- Root password: skip if set on the console
- Apply
Deployment type is the newer tab. It ticks Optimize for Multiwan and automatic DHCP/DNS registration and leaves Optimize for IPsec off, which suits a single WAN firewall, so there is no reason to change it unless this box terminates site to site tunnels. After Apply the wizard ends on “Congratulations! OPNsense is now configured.”
Install the QEMU guest agent plugin
Proxmox can’t see the firewall’s IP addresses or shut it down cleanly until the agent runs inside it. The plugin is os-qemu-guest-agent, under System > Firmware > Plugins. On a fresh install from the release ISO, the first plugin install doesn’t work. The firmware log refused it and asked for an update first:

So update before installing anything. On the Status tab click Check for updates, then Update on the Updates tab. Our run pulled 96 packages and about 300 MB, and the firewall rebooted on its own. Plan a short outage for any VM behind it, because every LAN client loses its gateway and DNS while the firewall is down. Doing this right after the install, before anything depends on the firewall, costs you nothing.
Back on the Plugins tab, the agent still is not in the default list. It’s a tier 3 community plugin, so click “Click to view the community plugins.” at the bottom first, then filter by name and press the plus sign:

- 1Filter by name
- 2Install
The install pulls in qemu-guest-agent and adds Services > QEMU Guest Agent to the menu. Its Enable Service box is already ticked, which looks like the job is done, but the agent wasn’t running yet. Proxmox still answered “QEMU guest agent is not running” until we pressed Apply on that page:

- 1Enable Service
- 2Apply
Confirm it from the Proxmox host. A ping that returns silently means the agent answered, and the OS info shows exactly what is running in the guest:
qm agent 100 ping
qm guest cmd 100 get-osinfo
After the update our firewall reported the patched release:
{
"id" : "freebsd",
"kernel-release" : "15.1-RELEASE-p6",
"kernel-version" : "FreeBSD 15.1-RELEASE-p6 stable/26.7-n284285-1633399de9dd SMP",
"machine" : "amd64",
"name" : "FreeBSD",
"pretty-name" : "FreeBSD 15.1-RELEASE-p6",
"variant" : "OPNsense 26.7.9 (amd64)",
"variant-id" : "opnsense",
"version" : "15.1-RELEASE-p6",
"version-id" : "15.1"
}
Now qm guest cmd 100 network-get-interfaces lists vtnet0 with 10.0.1.2 and vtnet1 with 192.168.1.1, and the VM’s Summary page in Proxmox shows the same IPs. A shutdown from Proxmox also goes through the agent instead of an ACPI press that FreeBSD may ignore.
Confirm checksum offload is off
Hardware checksum offload on VirtIO NICs is the classic cause of OPNsense on KVM passing pings but stalling TCP, especially for traffic between VMs on the same host. Older guides tell you to go and disable it. On a fresh install you’ll find it already off under Interfaces > Settings:

- 1Disable hardware checksum offload
- 2Disable hardware TCP segmentation offload
- 3Disable hardware large receive offload
All three boxes, Disable hardware checksum offload, Disable hardware TCP segmentation offload and Disable hardware large receive offload, were already ticked on our fresh install. If you restored an old config.xml, check them, because the restore brings its own values. You can verify what the driver actually does from the host through the agent, without logging into the firewall:
qm guest exec 100 -- ifconfig vtnet0
Proxmox wraps the result in JSON, so the interface text sits in the out-data field; it is shown unescaped below. The options= line is what matters. Ours listed no TXCSUM, RXCSUM, TSO4 or LRO flags, which means offload is off on the WAN NIC:
vtnet0: flags=1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500
description: WAN (wan)
options=880008<VLAN_MTU,LINKSTATE,HWSTATS>
ether bc:24:11:xx:xx:xx
inet 10.0.1.2 netmask 0xffffff00 broadcast 10.0.1.255
media: Ethernet autoselect (10Gbase-T <full-duplex>)
status: active
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
If those flags do show up after a change, tick the boxes again and reboot the firewall, since the setting is applied when the interfaces come up.
Put a VM on the LAN and test it
The real test is a client behind the firewall. A Debian cloud image is the quickest one, so download it to the node and put your SSH public key in /root/client.pub:
wget -P /root https://cloud.debian.org/images/cloud/trixie/latest/debian-13-genericcloud-amd64.qcow2
nano /root/client.pub
We imported the image straight into a new disk with import-from, which saves the separate qm disk import step, and attached its only NIC to vmbr1. Change --ciuser to the login name you want on the client:
qm create 101 --name lan-client --memory 1024 --cores 1 --cpu host --scsihw virtio-scsi-single --scsi0 local-lvm:0,import-from=/root/debian-13-genericcloud-amd64.qcow2 --net0 virtio,bridge=vmbr1 --ide2 local-lvm:cloudinit --ipconfig0 ip=dhcp --boot order=scsi0 --serial0 socket --vga serial0 --agent enabled=1 --ciuser josphat --sshkeys /root/client.pub
qm start 101
Within a minute the client had a lease from OPNsense. The cloud image ships no guest agent, so Proxmox can’t show its IP; read it from the firewall’s Dnsmasq leases instead, either on the Services > Dnsmasq DNS & DHCP leases page or through the firewall’s own agent:
qm guest exec 100 -- cat /var/db/dnsmasq.leases
Ours held 192.168.1.157. With the node’s 192.168.1.250 address from the wizard step, jump through the node to reach the client (ssh -J [email protected] [email protected] from your workstation). Inside it, check the address, the default route and outbound traffic:
ip -br -4 addr show eth0
ip route
ping -c3 1.1.1.1
The address came from the firewall’s LAN pool, the default route points at 192.168.1.1, and traffic leaves through both NAT layers:
eth0 UP 192.168.1.157/24 metric 100
default via 192.168.1.1 dev eth0 proto dhcp src 192.168.1.157 metric 100
192.168.1.0/24 dev eth0 proto kernel scope link src 192.168.1.157 metric 100
192.168.1.1 dev eth0 proto dhcp scope link src 192.168.1.157 metric 100
PING 1.1.1.1 (1.1.1.1) 56(84) bytes of data.
64 bytes from 1.1.1.1: icmp_seq=1 ttl=59 time=6.19 ms
64 bytes from 1.1.1.1: icmp_seq=2 ttl=59 time=5.81 ms
64 bytes from 1.1.1.1: icmp_seq=3 ttl=59 time=6.08 ms
--- 1.1.1.1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 5.807/6.028/6.193/0.162 ms
resolvectl status eth0 listed 192.168.1.1 as the DNS server too, so Unbound on the firewall answers the LAN. The same pattern works for any VM: put its NIC on vmbr1 and it sits behind OPNsense. For a lighter router VM on the same bridges, see our OpenWrt VM on Proxmox guide.
Know what a fresh install does differently
If you last installed OPNsense from an older guide, a fresh install from the current ISO behaves differently in a few places. The first two arrived with the 26.1 release, the last two with 26.7:
- Dnsmasq serves LAN DHCP; ISC DHCP is a plugin
- Setup wizard with a Deployment type tab
- Interface assignments on the MVC/API page
- Legacy rule pages moved to the os-firewall-legacy plugin
The DHCP change matters most when you follow older tutorials, because their Services > DHCPv4 screens do not exist on a fresh install. Dnsmasq DNS & DHCP and Kea DHCP sit under Services instead, and only an upgraded box keeps ISC DHCP. The rules change means old screenshots of Firewall > Rules will not match either, though the logic is the same.
Next: SSH access and updates
With the firewall routing and the agent reporting in, turn on remote management next. Our guide to enabling SSH on OPNsense covers key-only logins, and the walkthrough on updating OPNsense from the web UI or console covers the major release upgrades that follow. Take a Proxmox snapshot of VM 100 before each of those upgrades, because rolling back a firewall VM takes seconds.
Some people pass a physical Intel i226 port through to the VM instead of using VirtIO. If the link then drops under load, the i226 NIC drop fix applies inside the guest just as it does on bare metal. For most setups, though, VirtIO bridges like the ones above are simpler and fast enough, and that is what we would run.