View Single Post
Posts: 238 | Thanked: 131 times | Joined on May 2011 @ Bulgaria
#31
Hi to all,maybe this is off topic but i have to try to ask.I want to block traffic to facebook from n900 to my laptop.Command which i use is:
iptables -t nat -I PREROUTING -i wlan0 -m tcp -p tcp -d www.facebook.com --dport 443 -j DROP
but i have still access to facebook site,maybe i should try first with:
echo "1" > ... and then arpspoof ....
and finally with iptables ......

then i decided to bock all traffic with:
iptables -F
iptables -A INPUT -j REJECT
iptables -A OUTPUT -j REJECT
iptables -A FORWARD -j REJECT
but again no result

one more try to drop all incoming connections on a specific network interface with:
iptables -A INPUT -i wlan0 -s 192.168.0.0/16 -j DROP
no result
if anyone from you made some progress with these tools,let share it

info about commands for iptables from here
http://linuxconfig.org/collection-of...iptables-rules
 

The Following User Says Thank You to disappear For This Useful Post: