Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "Nishit Shah" <nishit@elitecore.com>
To: netfilter@vger.kernel.org
Subject: sequence of matches in a single rule
Date: Sat, 17 May 2008 11:10:44 +0530	[thread overview]
Message-ID: <001501c8b7e0$8ef50a00$acdf1e00$@com> (raw)

Hi,
	Is there any specific order in which match will take place ?

	Ex:- lets say I have a following rules.

	1.) iptables -I PREROUTING -t mangle -m state --state NEW -m mark
--mark 1 -j ACCEPT
	2.) iptables -I PREROUTING -t mangle -m mark --mark 1 -m state
--state NEW -j ACCEPT

	When packet traverse first rule, does state match comes before mark
match ?
	When packet traverse second rule, does mark match comes before state
match ?


Rgds,
Nishit Shah.	


             reply	other threads:[~2008-05-17  5:40 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-17  5:40 Nishit Shah [this message]
2008-05-17  7:05 ` sequence of matches in a single rule Jan Engelhardt
2008-05-17  7:21   ` Nishit Shah
2008-05-17  8:35     ` Jan Engelhardt
2008-05-17  8:48       ` Nishit Shah
2008-05-17  9:12         ` Jan Engelhardt

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='001501c8b7e0$8ef50a00$acdf1e00$@com' \
    --to=nishit@elitecore.com \
    --cc=netfilter@vger.kernel.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