Tell us about your hardware. Especially Proxmox. How many NICs do you have installed/available? I find if you want to run OPNsense (or in my case, the very similar pfSense) the easiest rout is if you have 2-4 NICs available. It can certainly be done with just one NIC, but it get exponentially more complicated if you do it that way. Also, I am not a fan of passing through NICs to the router/firewall software. Again, while you can do that, I find it a lot easier to to just set up multiple NICs and multiple bridges in Proxmox and then use virtual NICs in the pfSense/OPNsense VM.
In my setup, I run dual WAN connections with failover in pfSense. My motherboard has two onboard NICs and I have a Mellanox Connectx3 10gbe NIC in the PCI slot. I have one port of the Mellanox card assigned to vmbr0, I have the first onboard NIC assigned to vmbr1, the second onboard NIC is assigned to vmbr2. In my pfSense VM, vmbr0 is LAN, vmbr1 is WAN and vmbr2 is the second WAN port (Opt1). I made vmbr0 VLAN aware and created a number of VLAN sub interfaces on that bridge. My 10gbe card (first port) plugs into a trunked port on my managed switch, the onboard NICs go to the cable modems. All my other equipment plugs into the switch like normal.
I leave the last open NIC with a static IP address, and I use it in case of emergency to log into Proxmox if pfSense goes down for some reason. it is assigned to vmbr3 in Proxmox, with its own static IP address. Here's what my network configuration in Proxmox looks like:
Code:
root@pve-10:~# cat /etc/network/interfaces
auto lo
iface lo inet loopback
# ===== LAN Trunk (Mellanox Port 0) =====
auto enp3s0
iface enp3s0 inet manual
auto vmbr0
iface vmbr0 inet manual
bridge-ports enp3s0
bridge-stp off
bridge-fd 0
bridge-vlan-aware yes
bridge-vids 2-4092
# Primary Proxmox management on VLAN 100 (tagged on vmbr0)
auto vmbr0.100
iface vmbr0.100 inet static
address 192.168.10.6/24
gateway 192.168.10.1
# Proxmox host on VLAN 3 (Storage VLAN, non-routed)
auto vmbr0.3
iface vmbr0.3 inet static
address 192.168.3.10/24
# ===== Emergency / Rescue Management (Mellanox Port 1) =====
# Dedicated bridge on the second port with a private subnet and NO gateway.
# Plug your laptop or an isolated switch into enp3s0d1 and set your laptop to 192.168.99.10/24, for example.
auto enp3s0d1
iface enp3s0d1 inet manual
auto vmbr3
iface vmbr3 inet static
address 192.168.99.6/24
bridge-ports enp3s0d1
bridge-stp off
bridge-fd 0
# no 'gateway' here by design
# ===== WAN1 (Realtek 2.5g) =====
auto enp1s0
iface enp1s0 inet manual
auto vmbr1
iface vmbr1 inet manual
bridge-ports enp1s0
bridge-stp off
bridge-fd 0
# ===== WAN2 (Realtek 1g) =====
auto enp2s0f0
iface enp2s0f0 inet manual
auto vmbr2
iface vmbr2 inet manual
bridge-ports enp2s0f0
bridge-stp off
bridge-fd 0
source /etc/network/interfaces.d/*
root@pve-10:~#