All of lore.kernel.org
 help / color / mirror / Atom feed
* When do the rule apply?
@ 2005-06-15 20:01 Alexander Salmin
  2005-06-15 20:09 ` Taylor, Grant
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Alexander Salmin @ 2005-06-15 20:01 UTC (permalink / raw)
  To: netfilter

Hi, I guess this question is just a silly one for experts, but I can't
find the answer anywhere so I'm asking you guys.

In what order do the assigned rules apply in this script? 

# Example1
iptables -A INPUT -j DROP # rule #1
iptables -A INPUT --dport 80 -j ACCEPT # rule #2

#Example2 
iptables -A INPUT --dport 80 -j ACCEPT # rule1
iptables -A INPUT -j DROP # rule2

Will the both examples produce the same result?
Or will rule2 in example 2 make rule1 in example2 vanish because it's
telling the system to drop all?


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

end of thread, other threads:[~2005-06-16 19:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-15 20:01 When do the rule apply? Alexander Salmin
2005-06-15 20:09 ` Taylor, Grant
2005-06-15 20:10 ` Andy Smith
2005-06-15 22:26   ` Rakotomandimby (R12y) Mihamina
2005-06-16 19:48   ` R. DuFresne
2005-06-15 20:11 ` Damon Gray

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.