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.
openwrt1

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

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

Then choose option Reject in the Action dropdown list.
openwrt4

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

Advertisements

Published by

Badwi

A Muslim, sober, a Javanese

4 thoughts on “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:

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s