Tôi đang cố gắng chặn tất cả kết nối wifi bằng iptables trong debian nhưng nó không hoạt động ở đây là những gì tôi đã thử
iptables -A INPUT -i wlan0 -j DROP
Tôi cũng đã thử chặn cổng 80 cũng như 443 nhưng không hoạt động
Cập nhật:
root@raspberrypi:~# iptables -L FORWARD -v
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
0 0 DROP all -- wlan0 any anywhere anywhere
Cập nhật1:
root@raspberrypi:~# iptables -L -v
Chain INPUT (policy ACCEPT 918 packets, 122K bytes)
pkts bytes target prot opt in out source destination
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
0 0 DROP all -- wlan0 any anywhere anywhere
Chain OUTPUT (policy ACCEPT 777 packets, 65072 bytes)
pkts bytes target prot opt in out source destination
Cập nhật2:
gateway---(wlan0)pi(eth0)----client
Update3: wlan0 của tôi không được cấu hình