Hello!
i am using an Asus TUF AX6000 with Openwrt 24.10.4, trying to bridge untagged lan (on vid 83) with tagged lan (vid 6) together with nft rules for traffic filtering*. Excerpt from my network config:
config interface 'loopback'
option device 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix '<redacted>::/48'
option packet_steering '1'
config device 'brlan_dev'
option name 'br-lan'
option type 'bridge'
option vlan_filtering '1'
list ports 'lan1'
list ports 'lan2'
list ports 'lan3'
list ports 'lan4'
list ports 'lan5'
config interface 'lan'
option device 'br-lan.83'
option proto 'static'
option ipaddr '192.168.1.1'
option netmask '255.255.255.0'
config bridge-vlan
option device 'br-lan'
option vlan '83'
list ports 'lan1:u*'
list ports 'lan2:u*'
list ports 'lan3:u*'
list ports 'lan4:u*'
list ports 'lan5:u*'
config bridge-vlan
option device 'br-lan'
option vlan '6'
list ports 'lan5:t'
list ports 'lan2:t'
config interface 'filtered_lan'
option device 'br-lan.6'
option proto 'none'
According to https://openwrt.org/docs/guide-user/network/vlan/switch_configuration one should see something like lan5.6 or lan2.6 (ports were intended for uplink and debugging) in brctl show, but i only get
$ brctl show
bridge name bridge id STP enabled interfaces
br-lan 7fff.107c61dd0688 no lan4
lan2
lan5
lan3
lan1
Indeed there is now no bridging happening between br-lan.83 and br-lan.6, so nft rules don't apply.
But if i add a second bridge with
$ brctl addbr br-vlan
$ brctl addif br-vlan br-lan.6
and then temporarily add br-lan.83 to it via
$ brctl addif br-vlan br-lan.83; sleep 60; brctl delif br-vlan br-lan.83
the bridging and the nft filtering works as i can see the drops in the system log - but just for 30 seconds. After that, all connectivity to the device is lost (no ssh or ping). And after another 30s, it is restored as br-vlan.83 is removed from the bridge, but just due to the timed command, otherwise i would have to reboot.
Am i doing something wrong?
*Reason for me wanting this is that this was easily possible up to Openwrt 19.07 using ebtables.
PS: Bonus question: Is it normal that connectivity breaks if one does
$ uci set network.brlan_dev.vlan_filtering='0' && service network restart
? If yes, vlan_filtering option is not really an option.