Thursday, March 20, 2008

Tweaking a newly-flashed OpenWRT firewall

The goal here is to make the system as transparent to a network scan as possible (ie. GRC's Shield's Up).

1. Replace...
iptables -A INPUT -p icmp -j ACCEPT
...with...
iptables -A INPUT -p icmp -j DROP

2. Replace...
iptables -A INPUT -p tcp -j REJECT --reject-with tcp-reset
iptables -A INPUT -j REJECT --reject-with icmp-port-unreachable
...with...
iptables -A INPUT -p tcp -j DROP
iptables -A INPUT -j DROP

1 Comments:

At 4:00 AM, Blogger Unknown said...

One issue though with your idea, the rules in the INPUT chain gets flushed when a interface goes up or down.

 

Post a Comment

<< Home