From: Patrick McHardy <kaber@trash.net>
To: Chip Schweiss <chip@innovates.com>
Cc: netfilter-devel@lists.netfilter.org
Subject: Re: CLASSIFY target
Date: Sat, 24 Feb 2007 16:57:42 +0100 [thread overview]
Message-ID: <45E06076.1000208@trash.net> (raw)
In-Reply-To: <E09867F2FE69EC47B0A631E3183C62C97BA7@exchange.innovates>
Chip Schweiss wrote:
> Is there a technical reason why the CLASSIFY target can only be called
> from the POSTROUTING chain of the mangle table?
>
> It seems rather wasteful to repeat all the logic necessary to classify a
> packet in the POSTROUTING chain that in most case will already be done
> in the filter table.
It can also be called in the FORWARD and OUTPUT chains, but thats not
the point of course. Technically there is no reason for this, its more
of a convention to do packet mangling in the mangle table. The only
case where it is really necessary is marking packets for routing by
fwmark in the output chain, since these packets need to be rerouted.
I guess we could remove this restriction.
> Besides, in my testing the overhead of classifying
> packets in the mangle table seems to be many magnitudes greater than in
> the filter table.
How did you test this? Please post numbers if you have any.
> Would it be possible to simply remove the checks if the rule is being
> added in the POSTROUTING chain of mangle table from the kernel &
> iptables sources and have the CLASSIFY target work from the filter
> table?
Feel free so send a patch, but please also do this for all other
targets restricted to the mangle table and update the manpage.
next prev parent reply other threads:[~2007-02-24 15:57 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-16 21:47 CLASSIFY target Chip Schweiss
2007-02-24 15:57 ` Patrick McHardy [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-05-30 19:29 Eliot, Wireless and Server Administrator, Great Lakes Internet
2006-05-30 19:40 ` Patrick McHardy
2006-05-30 16:21 Eliot, Wireless and Server Administrator, Great Lakes Internet
2006-05-30 19:21 ` Patrick McHardy
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=45E06076.1000208@trash.net \
--to=kaber@trash.net \
--cc=chip@innovates.com \
--cc=netfilter-devel@lists.netfilter.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;
as well as URLs for NNTP newsgroup(s).