All of lore.kernel.org
 help / color / mirror / Atom feed
* Let me understand *RETURN*
@ 2005-02-18 16:15 Mohammad Khan
  2005-02-18 17:34 ` Jason Opperisano
  0 siblings, 1 reply; 6+ messages in thread
From: Mohammad Khan @ 2005-02-18 16:15 UTC (permalink / raw)
  To: 'netfilter'

I have couple of chains and rules for filter table

-N TCP_IN
-N TCP_OUT
-N UDP_IN
-N UDP_OUT
-N ICMP_IN
-N ICMP_OUT

-N P1_IN
-N P1_OUT
-N P2_IN
-N P2_OUT

-A FORWARD -d IP_OF_P1 -j P1_IN
-A FORWARD -s IP_OF_P1 -j P1_OUT

-A FORWARD -d IP_OF_P1 -j P1_IN
-A FORWARD -s IP_OF_P1 -j P1_OUT
-A FORWARD -j LOG --log-prefix "NOT_FORWARDED "
-A FORWARD -j DROP

-A P1_IN -t TCP -j TCP_IN
-A P1_IN -t UDP -j UDP_IN
-A P1_IN -t ICMP -j ICMP_IN
-A P1_IN -j RETURN

-A TCP_IN -t TCP --dport 80 -J ACCPET
-A TCP_IN -j RETURN

For any tcp packet that going to P1 and don't have destination port 80: 

returned to P1_IN chain from TCP_IN chain, then after
returned to FORWARD chain from P1_IN, and finally
dropping the packet after kept log.

Am I right?

MOhammad





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

end of thread, other threads:[~2005-02-19  0:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-18 16:15 Let me understand *RETURN* Mohammad Khan
2005-02-18 17:34 ` Jason Opperisano
2005-02-18 18:01   ` Mohammad Khan
2005-02-18 18:30     ` Daniel Lopes
2005-02-18 23:59       ` R. DuFresne
2005-02-19  0:40         ` Jason Opperisano

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.