Cheap Webcam’s can have a lot of security issues, especially when they connect to the Internet and do phone home to some cloud services. But i still want to play around with them locally, so i do need them able to use the local LAN, but not the Internet.
Based on IP Addresses i could deny all traffic, but the local subnet one:
/ip firewall filter
add chain=forward src-address=192.168.2.20/32 dst-address=!192.168.2.0/24 action=drop
But my fresh Webcam currently has no IP and i don’t want to let a single packet out to the Internet during the Investigation of the current DHCP based IP Address and the setup of my firewall rules.
Based on the MAC Address i can block all traffic:
/ip firewall filter
add chain=input src-mac-address=aa:bb:cc:dd:ee:ff action=drop
How can i setup a MAC Address based rule which does the same thing as the IP based one? Block only Internet, but still allow local traffic.
Would the following work as i do expect it?
/ip firewall filter
add chain=forward src-mac-address=aa:bb:cc:dd:ee:ff dst-address=!192.168.2.0/24 action=drop