Hi, trying to set up firewall. I like to have a list of internet IPs that I want to not be accessed from in the LAN. Here is what I have set, using 1.2.3.4 as example of an IP to block:
iptables -A output_wan -p tcp -d 1.2.3.4 -j DROP
iptables -t nat -A postrouting_rule -p tcp -d 1.2.3.4 -j DROP
This works, but using DROP makes it so I am forced to wait for timeout in a web-browser to get error message. So I try:
iptables -A output_wan -p tcp -d 1.2.3.4 -j REJECT
iptables -t nat -A postrouting_rule -p tcp -d 1.2.3.4 -j REJECT
I'd like to use REJECT, but it's not working. I'm not iptables master ... shouldn't that work? The output_rule line works, but when it gets to postrouting_rule, it says iptables: Invalid argument. Any help? Thanks!
Running a WRT54G v3.1 with Kamikaze 7.09.
(Last edited by qwillio on 15 Oct 2007, 00:01)