I work in school and I (did) filtered multicast/broadcast packets whit bridge filters on every AP we have - until we started using vlans. It is recommended, because mcast and bcast traffic can take quite a lot of airtime in hi dense networks, as hundreds of devices broadcast their mcast groups and broadcasting services they have (Dropbox sync for example). Most of devices on network do not need to know this (also security aspect) or care, so its just wasted transmissions. You can use that airtime for meaningful data.
Functionality in general is simple - its a zero trust type of function whit whitelist. For example, we have two main vlans - one for administration, other for students and guests. On administration vlan I allow mcast fully, so colleagues can find printers, Apple TVs, TVs, interactive boards for casting from tablet etc, but block almost all bcast. ( bcast minimum you need to allow is arp protocol and DHCP related frames (I hope I’m not forgetting something), rest is unneeded traffic for us) Student/guest network have completely blocked mcast and bcast is blocked the same way as administration vlan. Students don’t need to find each other devices or any devices administered by school (yes, vlans do separate printers from students already, but in general).
Creating filters whit out vlans are quite easy, you create allow filters you need and block filter at the end. vlans are not that simple… As far as I can tell, vlan tag is the issue here. Filter cant decapsulate vlan tag, as result filter cant filter out needed frames. Lets look at example filter:
/interface bridge filter
add action=passthrough chain=forward ip-protocol=udp mac-protocol=ip out-interface-list=VLAN20
Simple filter rule, that filters out all UDP traffic in out direction and passes it thru. I use it to see if filter work, as count goes up it initially works. But when I change it to in direction:
/interface bridge filter
add action=passthrough chain=forward in-interface-list=VLAN20 ip-protocol=udp mac-protocol=ip
It no longer counts any packets… In this case frames are filtered on wifi interfaces (VLAN20 is a wifi interface group). As frames are coming in wifi interface they do not have any vlan tag, so they can be processed correctly, but if they are coming from network side, they have vlan tag and that cannot be processed by filter, as filter cant decapsulate vlan tag as I mentioned before.
In attachments I added one of our APs full config (sanitized a bit), we use ac lineup devices whit ww2 driver, so configuration is what it is.
Any comment from staff or forum members how to get these filters working again when vlans are used? Maybe I don’t know proper solution for this and there might be a way already, so do please comment. This is why I raise this question in forums, not created ticket/improvement request in support portal.
AP.rsc (7.66 KB)