All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pascal Hambourg <pascal.mail@plouf.fr.eu.org>
To: netfilter@vger.kernel.org
Subject: Re: How to use mark and connmark in one rule
Date: Tue, 12 May 2009 15:13:51 +0200	[thread overview]
Message-ID: <4A09760F.1070507@plouf.fr.eu.org> (raw)
In-Reply-To: <20090512130028.GA19645@tkeitel002.bln.innominate.local>

Tino Keitel a écrit :
> On Fri, Apr 24, 2009 at 23:39:44 +1000, Brian Austin - Standard Universal wrote:
>>
>> iptables -A INPUT -m mark --mark 1
>> iptables -A INPUT -m connmark --mark 2
> 
> I want to match packets with both a specific nfmark _and_ a specific
> connmark, so I need both matches in one rule.

Not necessarily. For example with user-defined chains :

iptables -A INPUT -m mark --mark 1 -j mark1
iptables -A mark1 -m connmark --mark 2

  reply	other threads:[~2009-05-12 13:13 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-24 13:32 How to use mark and connmark in one rule Tino Keitel
2009-04-24 13:37 ` Brian Austin - Standard Universal
2009-04-24 13:39   ` Brian Austin - Standard Universal
2009-05-12 13:00     ` Tino Keitel
2009-05-12 13:13       ` Pascal Hambourg [this message]
2009-04-24 13:40 ` Gáspár Lajos
2009-04-24 13:49   ` Tino Keitel
2009-04-24 13:55     ` Gáspár Lajos
2009-05-12 13:01       ` Tino Keitel
2009-04-24 14:46   ` Pascal Hambourg
2009-04-24 16:15     ` Gáspár Lajos
2009-04-24 19:13       ` Pascal Hambourg

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=4A09760F.1070507@plouf.fr.eu.org \
    --to=pascal.mail@plouf.fr.eu.org \
    --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 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.