firewall restrictions do not work
Posted: Mon Sep 22, 2014 1:43 pm
Hi, I have dir-825B1 with 1.6.2.
I created a restriction rule to block facebook but it does not work.
I looked at my other router with TomatoUSB and used iptables rules from there and it worked.
iptables -N restrict
iptables -N rres01
iptables -N rstr01
iptables -A rstr01 -p tcp -m string --string "facebook.com" --algo bm --from 1 --to 600 -j REJECT --reject-with tcp-reset
iptables -A rstr01 -p udp -m string --string "facebook.com" --algo bm --from 1 --to 600 -j REJECT
iptables -A rres01 -p tcp -m multiport --dports 53,80,443 -j rstr01
iptables -A rres01 -p udp --dport 53 -j rstr01
iptables -A restrict rres01
iptables -I FORWARD 2 -o eth1 -j restrict
Please advise,
Serge
I created a restriction rule to block facebook but it does not work.
I looked at my other router with TomatoUSB and used iptables rules from there and it worked.
iptables -N restrict
iptables -N rres01
iptables -N rstr01
iptables -A rstr01 -p tcp -m string --string "facebook.com" --algo bm --from 1 --to 600 -j REJECT --reject-with tcp-reset
iptables -A rstr01 -p udp -m string --string "facebook.com" --algo bm --from 1 --to 600 -j REJECT
iptables -A rres01 -p tcp -m multiport --dports 53,80,443 -j rstr01
iptables -A rres01 -p udp --dport 53 -j rstr01
iptables -A restrict rres01
iptables -I FORWARD 2 -o eth1 -j restrict
Please advise,
Serge