Is anyone successfully running OPNsense on Proxmox?

DeMoB

Member
Nov 22, 2017
6
2
21
38
I know this could well be a OPNsense/FreeBSD VirtIO network driver problem, but wondered if anyone else was running this setup without issue before I try something else...

I'm only getting 500-600mbps iperf3 throughput between my Proxmox host and OPNsense VM over a vmbridge (or any LAN client to any other host including OPNsense).

I've disabled the hardware offload checksum features etc in OPNsense but it doesn't seem to have made much of a difference.

I can get a full 10gbps between Proxmox and a Pihole VM, so the hardware is capable of faster speeds, but I don't know if it's a VirtIO limitation on OPNsense's FreeBSD or a quirk of my setup.

I have the four ports of an Intel i350-T4 bridged to a Proxmox vmbr0 so I can use it as a poor mans switch, but given that the OPNsense VM itself can't manage a faster connection to the Proxmox host I suspect it might have something to do with the VirtIO drivers.

For what it's worth my setup is as follows:

Proxmox is on 192.168.200.10
OPNsense is on 192.168.200.1

Proxmox's /etc/network/interfaces:

Code:
auto lo
iface lo inet loopback

#OPNsense WAN (passed through to OPNsense)
iface enp2s0 inet manual

#i350-T4 ports
iface enp1s0f0 inet manual
iface enp1s0f1 inet manual
iface enp1s0f2 inet manual
iface enp1s0f3 inet manual

#OPNsense LAN
auto vmbr0
iface vmbr0 inet static
address  192.168.200.10
netmask  255.255.255.0
gateway  192.168.200.1
bridge_ports enp1s0f0 enp1s0f1 enp1s0f2 enp1s0f3
bridge_stp off
bridge_fd 0


OPNsense vm config:

Code:
bootdisk: scsi0
cores: 4
cpu: host
hostpci0: 02:00.0,pcie=1
ide2: none,media=cdrom
machine: q35
memory: 4096
name: OPNsense
net0: virtio=02:A4:C6:91:E1:1F,bridge=vmbr0,queues=4
numa: 0
onboot: 1
ostype: other
scsi0: local-zfs:vm-100-disk-1,size=64G
scsihw: virtio-scsi-pci
smbios1: uuid=8926d17e-ab9f-4aad-aa1f-847093dedac9
sockets: 1
startup: order=1
tablet: 0

So can anyone see something I've overlooked, or is this not going to work?

Thanks for reading!
 
I am running opnsense over a year on proxmox without any Problems.
I use an intel dual 1gb nic for the opnsense VM.
In my setup both network cards are set up as Intel E1000.
Try switching from VirtIO to E1000 maybe this solve your Performance Problem.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!