This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
device_filtering [2023/05/24 21:14] – [Block devices via script/scheduler]-spelling hogwild | device_filtering [2023/05/24 21:21] – [ebtables] -changed subhead to ebtables (routed environment) 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. | + | 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. |
* For a bridged environment (Media-bridge/ | * For a bridged environment (Media-bridge/ | ||
Line 11: | Line 11: | ||
- | ===== ebtables ===== | + | ===== ebtables |
- | # Block\\ | + | # Block\\ |
\\ | \\ | ||
- | # Unblock\\ | + | # Unblock\\ |
\\ | \\ | ||
Line 28: | Line 28: | ||
===== iptables ===== | ===== iptables ===== | ||
- | # Block Internet access (or any intra-vlan)\\ | + | # Block Internet access (or any intra-vlan)\\ |
\\ | \\ | ||
- | # Block any network | + | # Block any network |
\\ | \\ | ||
- | # Unblock just rever whatever command | + | # Unblock just rever whatever command |
\\ | \\ | ||
- | # Flush\\ | + | # Flush\\ |
- | These days, blocking MAC addresses can be tedious task. Many client devices use a MAC randomization function. MAC addresses can " | + | \\ |
+ | |||
+ | These days, blocking MAC addresses can be tedious task. Many client devices use a MAC randomization function. MAC addresses can " | ||
For dealing with this, one alternative is to filter using hostnames. | For dealing with this, one alternative is to filter using hostnames. |