Skip to contentSkip to conversation

allowed chain vs. NEW,INVALID

DISCUSSION [email protected] 1 participant 1 message Feb 21, 2006

lore
Share & tools
lore
#0 lore raw

I've seen through the tutorial of Oscar Andreason.

Out of my firewall book (and I think the howto's from Russel too) is this rule:

iptables -A INPUT -i eth0 -m state --state NEW,INVALID -j DROP iptables -A FORWARD -i eth0 -m state --state NEW,INVALID -j DROP

The allowed chain of Oscar Andreason describes this:

#

# allowed chain
#

$IPTABLES -A allowed -p TCP --syn -j ACCEPT
$IPTABLES -A allowed -p TCP -m state --state ESTABLISHED,RELATED -j ACCEPT
$IPTABLES -A allowed -p TCP -j DROP

Does this the same or might it be a good idea to add a rule to DROP packet's NEW,INVALID like above for INPUT and FORWARD and the device eth0 ?

Signature · 3 lines
Best Regards,

Mark