Site Tools


wireless_filtering

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
wireless_filtering [2022/11/28 11:42] – created rs232wireless_filtering [2025/02/12 03:21] (current) – -Formatting hogwild
Line 1: Line 1:
-====== Wireless mac filtering via script/scheduler ======+====== Wireless MAC Address filtering via script/scheduler ======
  
-The easiest way to achieve Wireless mac filtering is to use the basic/[[basic-wfilter|wireless filter]]. There are cases though where you would need/prefer to block mac addresses in a script, this can be for easier management (large number of devices) or to ba able to schedule the filtering on/off as needed.+The easiest way to perform Wireless MAC address filtering is to use the controls in FreshTomato'[[basic-wfilter|Wireless Filter]] menuHowever, there are occasions when you might prefer/need to block MAC addresses in a script.
  
-Given a mac address you want to control say ''aa:bb:cc:dd:ee:ff'' you can+There are two main advantages to using a script. First, entering all the data for a large number of network devices into the Wireless Filter menu would be tedious and time-consuming.
  
-Block\\ +A scripted solution can make it easier to manage a large number of network devices. Second, a script more easily allows you to schedule filtering on or off, as needed. 
-''/usr/sbin/ebtables -A FORWARD -d aa:bb:cc:dd:ee:ff -j DROP''+ 
 + \\  \\ For example, given a MAC address whose access you wish to control: 
 + 
 +<code text> 
 +aa:bb:cc:dd:ee:ff 
 +</code> 
 + 
 + \\ 
 + 
 +You could perform the following functions on it: 
 + 
 + \\ 
 + 
 +  * Block\\ <code text> 
 +/usr/sbin/ebtables -A FORWARD -d aa:bb:cc:dd:ee:ff -j DROP 
 +</code> 
 + 
 + \\ 
 + 
 +  * Unblock\\ <code text> 
 +/usr/sbin/ebtables -D FORWARD -d aa:bb:cc:dd:ee:ff -j DROP 
 +</code> 
 + 
 + \\ 
 + 
 +  * Or even…Flush (unblock all the defined references at once)\\ <code text> 
 +/usr/sbin/ebtables -F 
 +</code> \\ 
 + 
 + \\
  
-# Unblock\\ 
-''/usr/sbin/ebtables -D FORWARD -d aa:bb:cc:dd:ee:ff -j DROP'' 
  
-# Flush (unblock all the defined references at once)\\ 
-''/usr/sbin/ebtables -F'' 
wireless_filtering.1669635739.txt.gz · Last modified: 2022/11/28 11:42 by rs232