Im trying to block all websites but one with DD-WRT on a Linksys router. I am currently using this script:
iptables -I FORWARD 1 -p tcp -d dd-wrt.com --dport 80 -j ACCEPT
iptables -I FORWARD 2 -p tcp --dport 80 -j DROP
But this does not seem to work, as it is blocking access via HTTP to dd-wrt.com as well. Any help?