Gostaria de bloquear todos os dispositivos Wi-Fi, exceto um. Eu tenho dois roteadores Wi-Fi e estou permitindo apenas que uma das minhas regras IPTABLES se conecte; mas eu ainda consigo me conectar a ambos.
iptables -P INPUT DROP
iptables -P FORWARD DROP
iptables -P OUTPUT ACCEPT
iptables -A INPUT -i lo -j ACCEPT
iptables -A INPUT -i eth0 -p tcp --dport 22 -j ACCEPT
Wi-Fi MAC que eu quero
iptables -A INPUT -i wlan0 -m mac --mac-source 40:16:7e:a3:ae:fc -j ACCEPT
iptables -A INPUT -i wlan0 -m mac --mac-source 40:16:7e:a3:ae:f8 -j ACCEPT
WLAN0 MAC
iptables -A INPUT -i wlan0 -m mac --mac-source 00:22:fa:cc:ff:34 -j ACCEPT
Wi-Fi MAC Eu quero bloquear
iptables -A INPUT -i wlan0 -m mac --mac-source 04:A1:51:2C:DD:F6 -j DROP
iptables -A INPUT -i wlan0 -j DROP
iptables -A FORWARD -i wlan0 -m mac --mac-source 40:16:7e:a3:ae:fc -j ACCEPT
iptables -A FORWARD -i wlan0 -m mac --mac-source 40:16:7e:a3:ae:f8 -j ACCEPT
iptables -A FORWARD -i wlan0 -m mac --mac-source 00:22:fa:cc:ff:34 -j ACCEPT
iptables -A FORWARD -i wlan0 -j DROP