6
0
This may seem as a stupid question to you but I need to be sure that what I am thinking is correct. I'm using a usb-wireless adapter (connected to my laptop), dnsmasq and hostapd to create a local wireless network. It is working and I can have more devices connected and ping one another. Now I would like to block the ping within hosts in this wireless LAN. I tried to use iptables on the laptop in which the usb wireless adapter is plugged in but it's not working, this is my command:
iptables -A FORWARD -p icmp -j DROP
But I can still ping. So what I think is that being the two hosts in the same wireless LAN I cannot use iptables because to send the frame the layer 3 headers are not utilized, my hotspot running on the wireless adapter is just using the 802.11 addresses fields to route the packet (L2 headers). Is it correct? Thank you
1what is the output of
cat /proc/sys/net/bridge/bridge-nf-call-iptables
? – user4556274 – 2017-04-11T16:40:12.787@user4556274 I have no entries for that. But I don't have a bridge. I have an access point setted up using this guide https://www.offensive-security.com/kali-linux/kali-linux-evil-wireless-access-point/
– mik1904 – 2017-04-11T17:10:23.4971what's the output of
service iptables status
? – Zina – 2017-04-11T17:17:27.370