From: Matt Zagrabelny <mzagrabe@d.umn.edu>
To: Pascal Hambourg <pascal.mail@plouf.fr.eu.org>
Cc: netfilter@vger.kernel.org
Subject: Re: mangle table question
Date: Wed, 31 Oct 2007 13:21:08 -0500 [thread overview]
Message-ID: <1193854868.18366.69.camel@grateful.d.umn.edu> (raw)
In-Reply-To: <47289DDC.6030707@plouf.fr.eu.org>
[-- Attachment #1: Type: text/plain, Size: 1109 bytes --]
On Wed, 2007-10-31 at 16:23 +0100, Pascal Hambourg wrote:
> Hello,
>
> Jason Sigurdur a écrit :
> >
> > If a specific rule is matched, does it not exit the chain?
>
> Only if the target is "terminal". ACCEPT, DROP, REJECT are terminal.
> NAT-specific targets such as SNAT and DNAT are terminal too. LOG is
> obviously not terminal. Most if not all mangle-specific targets such as
> DSCP are not terminal. Indeed one may want to alter several parts of a
> packet in the same chain.
Hence you could jump to a user defined chain like (create the chain
first):
iptables -t mangle -N AF31
iptables -t mangle -A AF31 -j DSCP --set-dscp-class af31
iptables -t mangle -A AF31 -j ACCEPT
iptables -t mangle -A FORWARD -o net+ -p tcp --dport 25 -j AF31
--
Matt Zagrabelny - mzagrabe@d.umn.edu - (218) 726 8844
University of Minnesota Duluth
Information Technology Systems & Services
PGP key 1024D/84E22DA2 2005-11-07
Fingerprint: 78F9 18B3 EF58 56F5 FC85 C5CA 53E7 887F 84E2 2DA2
He is not a fool who gives up what he cannot keep to gain what he cannot
lose.
-Jim Elliot
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
prev parent reply other threads:[~2007-10-31 18:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-31 14:54 mangle table question Jason Sigurdur
2007-10-31 15:23 ` Pascal Hambourg
2007-10-31 18:21 ` Matt Zagrabelny [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=1193854868.18366.69.camel@grateful.d.umn.edu \
--to=mzagrabe@d.umn.edu \
--cc=netfilter@vger.kernel.org \
--cc=pascal.mail@plouf.fr.eu.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