Site Tools


wireless_filtering

This is an old revision of the document!


Wireless MAC Address filtering via script/scheduler

The easiest way to perform Wireless MAC address filtering is to use the controls in FreshTomato's Wireless Filter menu. However, there are occasions when you need/prefer to block MAC addresses in a script.

Using a script has two main advantages. First, it would be tedious and time-consuming to enter all the data for a large number of network devices into the Wireless Filter menu. A scripted solution can be easier to manage when there are large numbers of network devices. Second, a script more easily allows you to schedule filtering on or off, as needed.


For example, given a MAC address whose access you wish to control:

aa:bb:cc:dd:ee:ff


The following functions could be performed on it:

  • Block
    /usr/sbin/ebtables -A FORWARD -d aa:bb:cc:dd:ee:ff -j DROP
  • Unblock
    /usr/sbin/ebtables -D FORWARD -d aa:bb:cc:dd:ee:ff -j DROP


Or even…

  • Flush (unblock all the defined references at once)
    /usr/sbin/ebtables -F



wireless_filtering.1739330138.txt.gz · Last modified: 2025/02/12 03:15 by hogwild