Linux Netfilter discussions
 help / color / mirror / Atom feed
From: CAM IT Solutions <netfilter@lucassen.org>
To: netfilter@lists.netfilter.org
Subject: Re: iptables jump to userdefined chain and ESTABLISHED,RELATED rules
Date: Sat, 11 Oct 2003 19:45:27 +0200	[thread overview]
Message-ID: <20031011194527.17273de9.netfilter@lucassen.org> (raw)
In-Reply-To: <1065889564.1268.11.camel@elendil.intranet.cartel-securite.net>

On Sat, 11 Oct 2003 18:26:04 +0200
Cedric Blancher <blancher@cartel-securite.fr> wrote:

[snip rules]

> > Both ways work, but I'd say the second way is the best. Am I right?
> 
> I agree.
> To me, theses two rulesets are equivalent for HTTP packets, but first
> one implies one more rule evaluation than the second one for
> ESTABLISHED packets that are destined to TCP/80.

I don't know too much about netfilter internals, but I suppose that
there must be a separate connection table for each chain. I think this
is because you can't enter:

/sbin/iptables -m state --state ESTABLISHED,RELATED -j ACCEPT

without mentioning the chain. I *have* to enter:

/sbin/iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
/sbin/iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT

I just wonder if these ESTABLISHED,RELATED packets are handled by 1
overall connection table, or handled by 2 connection tables, 1 for
INPUT and 1 for FORWARD.

And what happens if a jump is made from the FORWARD chain to a
userdefined chain, is the connection table the one of the FORWARD chain?
And if the answer is "yes", why does iptables accepts the 

/sbin/iptables -A CH_WWW -m state --state ESTABLISHED,RELATED -j ACCEPT

rule then? I haven't found any answer to that question on the net yet :(

> PS : there's no RELATED packets in HTTP ;)

Ok, the CH_WWW was just an example, but you certainly have got a point
there ;-)

R.

___________________________________________________________________
Recursion: see recursion

+------------------------------------------------------------------+
| Richard Lucassen, Utrecht                                        |
| Public key and email address:                                    |
| http://www.lucassen.org/mail-pubkey.html                         |
+------------------------------------------------------------------+
 


  reply	other threads:[~2003-10-11 17:45 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-10 11:26 iptables jump to userdefined chain and ESTABLISHED,RELATED rules richard lucassen
2003-10-11 16:26 ` Cedric Blancher
2003-10-11 17:45   ` CAM IT Solutions [this message]
2003-10-12 11:16     ` Willy TARREAU
2003-10-12 17:53       ` richard lucassen
2003-10-12 18:54         ` Cedric Blancher
2003-10-12 21:40           ` richard lucassen
2003-10-12 19:02         ` Cedric Blancher
2003-10-12 15:10   ` Joel Newkirk
2003-10-12 15:15     ` Cedric Blancher
  -- strict thread matches above, loose matches on Subject: below --
2003-10-09 20:20 richard lucassen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20031011194527.17273de9.netfilter@lucassen.org \
    --to=netfilter@lucassen.org \
    --cc=netfilter@lists.netfilter.org \
    --cc=reply2@lucassen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox