Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Steven Kath <steven.kath@vyatta.com>
To: Pandu Poluan <pandu@poluan.info>
Cc: netfilter@vger.kernel.org
Subject: Re: Question on raw table and match state
Date: Fri, 11 Feb 2011 10:01:41 -0800 (PST)	[thread overview]
Message-ID: <1426981515.473.1297447301826.JavaMail.root@tahiti.vyatta.com> (raw)
In-Reply-To: <1233805814.468.1297447131465.JavaMail.root@tahiti.vyatta.com>

----- "Pandu Poluan" <pandu@poluan.info> wrote: -----
> I am wondering if the following rule will work:
> 
> iptables -t raw -A PREROUTING -p icmp -m state --state
> RELATED,ESTABLISHED -j ACCEPT
> 

If you look at Jan's Netfilter packet flow diagram, you'll see that the raw PREROUTING chain is traversed before the conntrack functions are called.  State can not be determined until after the packet is compared to the conntrack table. The rule you described can't work and I think the iptables binaries won't allow it to be created. 

http://jengelh.medozas.de/images/nf-packet-flow.png

       reply	other threads:[~2011-02-11 18:01 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1233805814.468.1297447131465.JavaMail.root@tahiti.vyatta.com>
2011-02-11 18:01 ` Steven Kath [this message]
2011-02-12  2:14   ` Question on raw table and match state Pandu Poluan
2011-02-12  3:27     ` [patch] warn on use of ctstate checking in raw Jan Engelhardt
2011-02-14 16:29       ` Patrick McHardy
2011-02-11  7:46 Question on raw table and match state Pandu Poluan
2011-02-11  8:06 ` Pandu Poluan
2011-02-11  8:15   ` Jozsef Kadlecsik

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=1426981515.473.1297447301826.JavaMail.root@tahiti.vyatta.com \
    --to=steven.kath@vyatta.com \
    --cc=netfilter@vger.kernel.org \
    --cc=pandu@poluan.info \
    /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