Hello,
This is my first post and I’m very new to Mikrotik. I’m wondering how to create a firewall rule that can block a device from web browsing or using web based apps by its MAC address.
Then once I learn this I want to be able to block them by time of day.
Example: block usage from 11pm - 7am weekdays
Thanks in advance for any help with this.
Sent from my iPhone using Tapatalk
This shouldn’t be too hard. Basically you want a firewall rule to block traffic from a certain MAC address, but only during certain times.
Create a new firewall rule
TAB General:
Dst Address: 0.0.0.0
TAB Advanced:
Src. MAC Address: 00:00:00:00:00:00 ← MAC address of client!
TAB Extra:
Time: Your desired period and days
TAB Action:
Choose Block or Drop and if you wish to have it logged or not
This will block all traffic going outside the clients subnet (through the gateway). If you have multiple subnets, it will also block that!
Doing this per IP would be a lot easier because then your could use an address list and use 1 rule to block multiple computers. If that is not possible you will need to create a firewall rule per MAC address as described above. It will probably generate a bit of extra load.
Let us know if it works!