Linux Netfilter discussions
 help / color / mirror / Atom feed
* rule check
@ 2003-01-16 15:30 Mike
  2003-01-16 15:50 ` Qui Le
  2003-01-16 16:38 ` Darrell Dieringer
  0 siblings, 2 replies; 4+ messages in thread
From: Mike @ 2003-01-16 15:30 UTC (permalink / raw)
  To: netfilter

Are these two rules essentially the same ?

Thanks,
Mike

iptables -A FORWARD -i eth2 -o eth0 -m state --state
NEW,ESTABLISHED,RELATED -j ACCEPT

iptables -A FORWARD -i eth2 -o eth0 -p tcp --dport 2000:2050 -m
state --state NEW,ESTABLISHED,RELATED -j ACCEPT



^ permalink raw reply	[flat|nested] 4+ messages in thread
* RE: rule check
@ 2003-01-16 15:46 mailinglists
  0 siblings, 0 replies; 4+ messages in thread
From: mailinglists @ 2003-01-16 15:46 UTC (permalink / raw)
  To: netfilter


> Are these two rules essentially the same ?

no, they're not.
 
> Thanks,
> Mike
> 
> iptables -A FORWARD -i eth2 -o eth0 -m state --state
> NEW,ESTABLISHED,RELATED -j ACCEPT

for traffic from eth2 over eth0 this rule is not restricted at all

> 
> iptables -A FORWARD -i eth2 -o eth0 -p tcp --dport 2000:2050 -m
> state --state NEW,ESTABLISHED,RELATED -j ACCEPT

this rule restricts to proto tcp and to destination ports 2000:2050

I just don't know what you neet the related for here. new,established does
the job.

Philipp




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-01-16 16:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-16 15:30 rule check Mike
2003-01-16 15:50 ` Qui Le
2003-01-16 16:38 ` Darrell Dieringer
  -- strict thread matches above, loose matches on Subject: below --
2003-01-16 15:46 mailinglists

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox