Proxmox VLAN Help - Virtual OPNSense router with hardware switches not working.

Jonan131

New Member
Apr 11, 2024
2
0
1
I have a proxmox host with two interfaces, one for WAN connectivity and one for the LAN, with a OPNSense firewall VM on proxmox. I have several VLANs in place which up until now, have solely segregated VM traffic and worked well. However, I now want to include non-virtualized devices in specific VLANs, and this is where I'm having the issue: No matter what I've read or tried, I simply cannot get a laptop connected to a managed switch with the VLANs configured to reach OPNsense.

I've been struggling to figure out what I've been doing wrong here, and I've exhausted what other threads or information I can find here or on the internet. My two guesses right now is either something is going right over my head and it's a simple mistake, or there's a hardware issue somewhere. Any insight or solutions would be appreciated. I don't really care whether the VLANs are handled in OPNSense or Proxmox, I just want it to consistent across the VMs and Hardware.

I have made a quick diagram to help illustrate this, apologies if it's not the best! Devices in green work as expected, red ("Test Device") is where I'm having problems. I have only included 1 tagged VLAN in the details below to keep it simple.

1712950415977.png

Here is Proxmox's interfaces file:

Code:
auto lo
iface lo inet loopback

iface enp4s0 inet manual

iface enp42s0 inet manual

iface enp5s0 inet manual

auto vmbr0
iface vmbr0 inet manual
        bridge-ports enp5s0
        bridge-stp off
        bridge-fd 0

auto vmbr1
iface vmbr1 inet static
        address 192.168.31.253/24
        gateway 192.168.31.254
        bridge-ports enp42s0
        bridge-stp off
        bridge-fd 0
        bridge-vlan-aware yes
        bridge-vids 2-4094

Web interface Networks page:
1712951072398.png


OPNSense: These are set up as VLAN interfaces. I did try setting up vnics in proxmox and assigning them that way, but that also didn't work.

VLANs & Assignments:
1712950974209.png
1712950996533.png

Switch Config

1712951129166.png
1712951137744.png
1712951144635.png
 
On the hardware side of things; over the weekend I have tried a separate switch, and a different model of NIC (All have been realtek, just tried an Intel one). Still nothing is working.

I really want to get this working with my current setup, but I'm on the cusp of giving up and switching back to a baremetal install of OPNsense at this point.
 

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!