Hi, iam try sum up what i did the last 3 hours ...
My Goal is kinda simple: I want to use OpenWRT as my Router/Firewall.
Background:
OpenWRT VM in Proxmox with NIC-Passtrough (igb Driver)
One Port is dedicated to WAN, the other one is my "lan" port, configured as trunk in my unifi switch and allowing all VLANs i have.
When iam using the default image in the current stable version, vlans will just NOT work with native igb card. Even with virtio nic, VLANs are broken. What does broken mean? There is absolute ZERO traffic reaching the firewall at the configured vlan interfaces. (eG eth0.3, eth0.99 etc). I tried almost everything to get it working some kind of but no chance. The onlything working is:
1.) The eth0 without any vlan
2.) When iam adding a already vlan configured vrbridge from proxmox to the host and threat it as a normal networkcard without vlan
And there are more bugs (more visual, like adding a DHCP config to the interface is revoming the custom DHCP&DNS instance and vice versa in luci.. i mean wtf?) but the not working VLAN is driving me crazy! I switched back to opnsense for now, becasue there its working like it should (also passtrough, the same nic in the end so i cant run both at the same time)
I really need help to get that VEEEEEEEERY basic and simple task done
VLANs are not broken in general for 24.10... they work perfectly in normal/bare-metal situations.
Running your router in a proxmox VM means that the VLAN configuration also relies on the proxmox/host os configuration... this part is not typically in-scope for these forums.
But, let's take a look at the key files for your OpenWrt config to see if we can identify any OpenWrt side VLAN issues...
Please connect to your OpenWrt device using ssh and copy the output of the following commands and post it here using the "Preformatted text </> " button:
Remember to redact passwords, MAC addresses and any public IP addresses you may have:
ubus call system board
cat /etc/config/network
cat /etc/config/firewall
God damnit, feel free to slap me, you CANT imagine...
I screwed up eth0 and eth1.. pppoe works on both (wtf, i was not aware of that.. good to know) and therefore i was SURE eth0 was the uplink to my switch but it wasnt.. and thats why no vlan traffic worked (and yes, i have kind of a loop between openwrt --> modem --> switch --> openwrt... this was existent forever because i was sure i need an addition port for pppoe ...