Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Anders Fugmann <afu@fugmann.dhs.org>
To: Antony Stone <Antony@Soft-Solutions.co.uk>
Cc: netfilter@lists.samba.org
Subject: Re: mangle tables.
Date: Tue, 10 Sep 2002 12:05:35 +0200	[thread overview]
Message-ID: <3D7DC3EF.6060709@fugmann.dhs.org> (raw)
In-Reply-To: 200209100939.g8A9d0v06610@vulcan.rissington.net

Hi Antony

Many thanks for your reply.
I see that I understand most of it.

Antony Stone wrote:
> On Tuesday 10 September 2002 7:49 am, Anders Fugmann wrote:
> 
>>Next, if the above is correct, when does packets hit the chains,
>>e.g. what chains are traversed between PREROUTING and FORWARD and
>>POSTROUTING, in the forwarding example?
> 
> 
> I don't know the answer to this for the latest version of netfilter, however 
> it is very easy to find out for yourself, for the specific version you are 
> running (which is usually the important thing).
Is this true - can someone please confirm this. It seems strange that 
only the order of chain traversal is specified within a table, but not 
across tables (If I understand you correctly, Antony).
This means, for example, that the mark cannot be used to to mark packets 
for later processing. (Mark in mangle and match in filter).

> 
> Simply set up a series of LOGging rules in the different chains & tables, 
> send some packets through the system, and the log file will tell you what 
> order the packets went through the different parts of netfilter.
> 
> Try this:
> 
> for chain in INPUT OUTPUT FORWARD PREROUTING POSTROUTING
> do
>   for table in filter mangle nat
>   do
>     iptables -I $chain -t $table -j LOG --log-prefix="$chain $table "
>   done
> done
Yes, but I was hoping to avoid it :-)

-- 
Neo: 'Can you fly that thing?'
Trinity: 'Not yet'.
$ apt-get install pilot-prg-v212helicopter.



  reply	other threads:[~2002-09-10 10:05 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-10  6:49 mangle tables Anders Fugmann
2002-09-10  9:38 ` Antony Stone
2002-09-10 10:05   ` Anders Fugmann [this message]
2002-09-10 10:12     ` Antony Stone
2002-09-10 10:41     ` Stewart Thompson
2002-09-10 11:09       ` Antony Stone
2002-09-10 13:04       ` Anders Fugmann
2002-09-10 20:18         ` Stewart Thompson
2002-09-10 22:18           ` Anders Fugmann

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=3D7DC3EF.6060709@fugmann.dhs.org \
    --to=afu@fugmann.dhs.org \
    --cc=Antony@Soft-Solutions.co.uk \
    --cc=netfilter@lists.samba.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