All of lore.kernel.org
 help / color / mirror / Atom feed
From: Patrick McHardy <kaber@trash.net>
To: Jan Engelhardt <jengelh@linux01.gwdg.de>
Cc: Netfilter Developer Mailing List
	<netfilter-devel@lists.netfilter.org>,
	Amin Azez <azez@ufomechanic.net>,
	Tom Eastep <teastep@shorewall.net>
Subject: Re: MARK targets all non-terminating
Date: Wed, 10 Jan 2007 13:56:05 +0100	[thread overview]
Message-ID: <45A4E265.2060600@trash.net> (raw)
In-Reply-To: <Pine.LNX.4.61.0701101312040.3029@yvahk01.tjqt.qr>

Jan Engelhardt wrote:
> On Jan 10 2007 12:11, Amin Azez wrote:
> 
>>It's not just mark and terminate, but mark and return.
>>It can be managed with --goto and -j RETURN and a subchain.
> 
> 
> That is not the issue here. We _do_ want to terminate. Consider this faulty
> (shadowing) ruleset:
> 
> -t mangle -A POSTROUTING -s 10.0.0.0 -j CLASSIFY --set-class 1:16
> -t mangle -A POSTROUTING -p tcp -j CLASSIFY --set-class 1:17
> 
> which will cause TCP traffic to 10.0.0.0 become 1:17 rather than the intended
> 1:16. Using an extra chain with ACCEPT solves it, with RETURN: no.

It does if you use a subchain as Amin suggested, and it allows you to
do additional mangling.

  reply	other threads:[~2007-01-10 12:56 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-02 17:44 MARK targets all non-terminating Jan Engelhardt
2007-01-02 18:25 ` Tom Eastep
2007-01-07  2:09   ` Jan Engelhardt
2007-01-08  7:56     ` Jozsef Kadlecsik
2007-01-08 21:42       ` Jan Engelhardt
2007-01-09 22:09         ` Jan Engelhardt
2007-01-10  8:21           ` Jozsef Kadlecsik
2007-01-10 11:21             ` Jan Engelhardt
2007-01-10 12:11           ` Amin Azez
2007-01-10 12:16             ` Jan Engelhardt
2007-01-10 12:56               ` Patrick McHardy [this message]
2007-01-10 14:00                 ` Jan Engelhardt
2007-01-10 14:17                   ` Amin Azez
2007-01-10 23:01                     ` Jan Engelhardt
2007-01-10 12:13         ` Amin Azez

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=45A4E265.2060600@trash.net \
    --to=kaber@trash.net \
    --cc=azez@ufomechanic.net \
    --cc=jengelh@linux01.gwdg.de \
    --cc=netfilter-devel@lists.netfilter.org \
    --cc=teastep@shorewall.net \
    /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.