Hi,
I’m trying to block a device from using the Internet via its MAC address. Can some explain how to do this in with firewall rules.
I would also like to block it’s based on time.
Example: block Internet from 11pm to 7am weekdays.
Thank you in advance.
Sent from my iPhone using Tapatalk
Try this :
/ip firewall filter add action=drop chain=forward src-mac-address=01:02:03:04:05:06 time=0s-7h,mon,tue,wed,thu,fri
This will drop all traffic from this mac address. If the time is not in the defined range the rule will be inactive and the traffic will flow. Notice how this is from midnight to 7am, this is done because you cannot (or at least i don’t know how) set the time from 23pm to 7am without getting an error for invalid time. So to achieve this you can make another rule from 23pm to midnight.
That worked great thank you!
Sent from my iPhone using Tapatalk