All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Beverley <andy@andybev.com>
To: E2IA <e2ia.ci@gmail.com>
Cc: netfilter@vger.kernel.org
Subject: Re: mark and accept in a single rule
Date: Sun, 20 Feb 2011 15:27:53 +0000	[thread overview]
Message-ID: <1298215673.12048.12.camel@andybev> (raw)
In-Reply-To: <AANLkTimFXztjt5iJbv2bnP3iqe9GoTcaqEbg1ULsWynZ@mail.gmail.com>

On Sun, 2011-02-20 at 15:13 +0000, E2IA wrote:
> Hi all i'd like to know if it is possible to mark packet and accept in
> the single iptable rule.

There shouldn't be any need to do this.

> i've these 2 rules:
> 
> /usr/local/sbin/iptables  -t mangle  -A FORWARD     -m layer7
> --l7proto  yahoo  -j MARK --set-mark 74
> /usr/local/sbin/iptables  -t mangle  -A FORWARD      -m mark --mark
> 74  -j ACCEPT
> 
> but it seam that the second rule is never match.

The second rule *should* be matched. What makes you think that it is
not? Remember: a packet ACCEPTed in one chain can be DROPed later.

It might be worth you posting your complete set of rules.

Andy



  reply	other threads:[~2011-02-20 15:27 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-20 15:13 mark and accept in a single rule E2IA
2011-02-20 15:27 ` Andrew Beverley [this message]
2011-02-20 16:10   ` E2IA
2011-02-20 17:18     ` Andrew Beverley
2011-02-20 20:45       ` E2IA
2011-02-20 21:15         ` Andrew Beverley

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=1298215673.12048.12.camel@andybev \
    --to=andy@andybev.com \
    --cc=e2ia.ci@gmail.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 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.