How to Block Device on OpenWRT Based on MAC Address

If you have an OpenWRT router, sometimes you need to block particular devices from accessing internet yet still can connect to its Wi-fi network. We can do that easily from the LUCI web-UI control panel.

Head for menu Network > Firewall.

There you can make a new firewall rule. Give it a name in New forward rule section. Then click Add and edit.

Then you have to choose the device’s MAC address to block.

Then choose option Reject in the Action dropdown list.

Then click Save and apply. Make sure you have the new rule is listed in the rules list.


6 responses to “How to Block Device on OpenWRT Based on MAC Address”

  1. you can even manage the time of in extra parameters for example adding this string
    -m time –kerneltz –weekdays Mo,Tu,We,Th,Fri –timestart 00:30 –timestop 6:00

    (firewall will use kernel time zone, and from monday to friday it will block traffic from 0:30 am to 6 am)

Share your idea here (markdown enabled)

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: