I am trying to block all wifi connection using iptables in debian but its not working here's what I've tried
iptables -A INPUT -i wlan0 -j DROP
I also tried blocking port 80 as well as 443 but not working
Update:
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
Update1:
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
Update2:
gateway---(wlan0)pi(eth0)----client
Update3: my wlan0 is not configured