Site Tools


wireless_filtering

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
wireless_filtering [2023/05/08 03:59] – -changed head to Wireless MAC Address filtering via script/scheduler hogwildwireless_filtering [2023/06/04 21:05] (current) – -grammar hogwild
Line 1: Line 1:
 ====== Wireless MAC Address 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 need/prefer to block MAC addresses in a script. Using a script has two main advantages. Firstit would be tedious and time-consuming to enter all the data for 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 offas needed.
  
-Given a mac address you want to control say ''aa:bb:cc:dd:ee:ff'' you can+ \\ Given a MAC address whose access you wish to control, for example: ''aa:bb:cc:dd:ee:ff'' 
 + 
 +You can perform the following functions on it:
  
 # Block\\  ''/usr/sbin/ebtables -A FORWARD -d aa:bb:cc:dd:ee:ff -j DROP'' # 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'' # 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'' # Flush (unblock all the defined references at once)\\  ''/usr/sbin/ebtables -F''
 +
 + \\
 +
 + \\
  
  
wireless_filtering.1683514748.txt.gz · Last modified: 2023/05/08 03:59 by hogwild