From: Pascal Hambourg <pascal.mail@plouf.fr.eu.org>
To: netfilter@lists.netfilter.org
Subject: Re: filtering in mangle table
Date: Sat, 28 Jul 2007 12:24:23 +0200 [thread overview]
Message-ID: <46AB1957.6020607@plouf.fr.eu.org> (raw)
In-Reply-To: <dae53550707270302r6887a6a4g3c9ddfd7d070afab@mail.gmail.com>
Hello,
Ganesan Natarajan a écrit :
> My requirement is before giving the packets to user space
> application(even before routing) I need to filter the packets.
Why even before routing ? (Yes, I'm curious)
> so I am using the the mangle table with PREROUTING chain to filter as
> well as to queue the packets using the DROP, QUEUE targets of
> "iptables". But in man pages it is specified that the filter rules
> should not be added into mangle table.
Built-in targets such as DROP and QUEUE can be used in any table and
chain. But target extensions may have limitations. For exemple the
REJECT target can be used only in the filter table, so it cannot be used
in the mangle table. Also, filtering in the nat table is not recommended
because the nat table does not see all packets but only packets in the
NEW state which are the first packet of a connection.
prev parent reply other threads:[~2007-07-28 10:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-27 10:02 filtering in mangle table Ganesan Natarajan
2007-07-27 11:59 ` John A. Sullivan III
2007-07-28 10:24 ` Pascal Hambourg [this message]
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=46AB1957.6020607@plouf.fr.eu.org \
--to=pascal.mail@plouf.fr.eu.org \
--cc=netfilter@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