All of lore.kernel.org
 help / color / mirror / Atom feed
* connection tracking query
@ 2003-04-07  9:02 dhiraj.2.bhuyan
  2003-04-07  9:25 ` Oskar Andreasson
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: dhiraj.2.bhuyan @ 2003-04-07  9:02 UTC (permalink / raw)
  To: netfilter



1. I was reading the Iptables tutorial by Oskar Andreasson
http://iptables-tutorial.frozentux.net/iptables-tutorial.html.
It says that connection tracking in done in the PREROUTING chain or OUTPUT
chain (for locally generated packets). If connection tracking is done only
at these two chains, what happens to the packets that don't belong to an
already established connection? I understand that it will have to go through
the filter rules - before the state table is updated for a NEW/RELATED
connection. If that is the case, "conntrack" must be taking place at other
chains too (where the filter is applied). The following document
http://www.knowplace.org/netfilter/syntax.html does infact say that
"conntrack" is happening not only in the PREROUTING and the OUTPUT chain,
but also in INPUT and POSTROUTING chain. What I find strange with this is
that for a packet that goes through the "FORWARD" chain, "conntrack" is done
twice on the same packet - first in the "PREROUTING" chain and second in the
"POSTROUTING" chain. Does anyone have any explanation for this?


2. If a packet is found to belong to an already ESTABLISHED connection, does
it still have to go through the filter rules again?


Thanks,
dhiraj


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

end of thread, other threads:[~2003-04-07 12:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-07  9:02 connection tracking query dhiraj.2.bhuyan
2003-04-07  9:25 ` Oskar Andreasson
2003-04-07  9:51 ` Vincent Lim
2003-04-07 12:57 ` Cedric Blancher

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.