This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
device_filtering [2024/10/10 16:36] – [iptables] -Condense hogwild | device_filtering [2025/03/03 18:09] (current) – [Notes] -condense hogwild | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Block devices via script/ | ====== Block devices via script/ | ||
- | The easiest way to filter WiFi devices is to use the [[basic-wfilter|Wireless Filter]] menu. However, there are times when you want to block specific devices via a script. This is particularly | + | The easiest way to filter WiFi devices is to use the [[basic-wfilter|Wireless Filter]] menu. However, there are times you want to block specific devices via a script. This is especially |
\\ | \\ | ||
- | * For a bridged environment (Media | + | * For a bridged environment (Media |
- | * For a routed environment (single router), you'll use // | + | |
\\ | \\ | ||
- | Given a MAC address you want to control, | + | * For a routed environment (single router), you must use // |
+ | |||
+ | \\ | ||
+ | |||
+ | Given a MAC address you wish to control, | ||
Line 42: | Line 45: | ||
\\ | \\ | ||
- | # Flush\\ | + | # Flush\\ |
\\ | \\ | ||
- | Nowadays, blocking MAC addresses | + | \\ |
+ | |||
+ | These days, many devices use MAC randomization which can make blocking MAC addresses tedious. MAC addresses can " | ||
- | For managing | + | To help manage |
\\ | \\ | ||
Line 62: | Line 67: | ||
\\ | \\ | ||
- | Still, the kernel resolves the hostname to an IP address. A device with randomized MAC address will obtain a new IP address when reconnecting. This might function well, but only until the user restarts the device or just manually disconnects WiFi. | ||
- | If you' | + | ===== Notes ===== |
+ | |||
+ | The kernel still resolves the hostname to an IP address. A device with randomized MAC address will obtain a new IP address when reconnecting. This may function well, but only until the user restarts the device or manually disconnects WiFi. | ||
+ | |||
+ | If you're security conscious, you could trigger a " | ||
For WiFi devices, perhaps the best way to limit access is to make them connect to a dedicated SSID, and enable/ | For WiFi devices, perhaps the best way to limit access is to make them connect to a dedicated SSID, and enable/ | ||
+ | |||
+ | \\ | ||