Linux Netfilter discussions
 help / color / mirror / Atom feed
* Q: iptables terminating targets
@ 2009-01-05 16:24 Indiana Epilepsy and Child Neurology
  2009-01-05 16:31 ` Marek Kierdelewicz
  2009-01-05 20:22 ` Gilad Benjamini
  0 siblings, 2 replies; 4+ messages in thread
From: Indiana Epilepsy and Child Neurology @ 2009-01-05 16:24 UTC (permalink / raw)
  To: netfilter

Background: My home network had a Windows 2000 machine connected to a
cable modem, sharing the internet connection with the other computers
at home.  That computer died and I decided to replace it with a Debian
box I had.  I did some searching on firewalling and nat and tried to
follow some of the iptables examples I found.  When that didn't work I
decided I needed a better understanding of iptables, and started
studying the man page and various explanations I found on the web.

Here's what I don't understand: From what I read, terminating targets
like ACCEPT and DROP stop consideration of any further rules in any
tables and chains.  It also seems like all the built-in chains have a
policy of ACCEPT by default, and the policy target is effective if no
rules match in the chain.  I have seen no way to _remove_ a policy
from a chain - only _change_ the policy target.  This seems to lead to
the (obviously false) conclusion that only one built-in chain will
ever be considered - the first one.  If a rule doesn't terminate, the
policy will!

Does an ACCEPT or DROP target as a _policy_ behave in a
non-terminating way where in a rule they are terminating?  Or maybe,
"terminating" only means no more rules in the current built-in chain
get considered, rather than no more rules in _any_ chain?  Something
else?

IMHO it would be a good idea for the man page to clarify this.  I'm
stuck.

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

end of thread, other threads:[~2009-01-05 20:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-05 16:24 Q: iptables terminating targets Indiana Epilepsy and Child Neurology
2009-01-05 16:31 ` Marek Kierdelewicz
2009-01-05 20:22 ` Gilad Benjamini
     [not found]   ` <4ls4m4hj393j1ekptolcv97rsk8je5isuv@4ax.com>
2009-01-05 20:57     ` Gilad Benjamini

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