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 04:17] – -condense intro, rephrase hogwildwireless_filtering [2025/02/12 03:21] (current) – -Formatting hogwild
Line 1: Line 1:
 ====== Wireless MAC Address filtering via script/scheduler ====== ====== Wireless MAC Address filtering via script/scheduler ======
  
-The easiest way to perform Wireless MAC address filtering is to use the controls in FreshTomato's [[basic-wfilter|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 solution using scripts can be easier to manage when there are larger numbers of network devices. Second, it allows you to schedule the filtering on or off as needed with greater ease.+The easiest way to perform Wireless MAC address filtering is to use the controls in FreshTomato's [[basic-wfilter|Wireless Filter]] menu. However, there are occasions when you might prefer/need to block MAC addresses in a script.
  
- \\ Given a MAC address whose access you wish to control, for example: ''aa:bb:cc:dd:ee:ff''+There are two main advantages to using a script. Firstentering all the data for a large number of network devices into the Wireless Filter menu would be tedious and time-consuming.
  
-You can perform the following functions on it:+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.
  
-# Block\\  ''/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>
  
  \\  \\
  
-# Unblock\\  ''/usr/sbin/ebtables -D FORWARD -d aa:bb:cc:dd:ee:ff -j DROP''+You could perform the following functions on it:
  
  \\  \\
  
-Or even+  * Block\\ <code text> 
 +/usr/sbin/ebtables -A FORWARD -d aa:bb:cc:dd:ee:ff -j DROP 
 +</code>
  
-# Flush (unblock all the defined references at once)\\  ''/usr/sbin/ebtables -F''+ \\ 
 + 
 +  * 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> \\
  
  \\  \\
  
  
wireless_filtering.1683515853.txt.gz · Last modified: 2023/05/08 04:17 by hogwild