Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Marek Kierdelewicz <marek@piasta.pl>
To: Martin Mares <mj@ucw.cz>
Cc: netfilter@vger.kernel.org
Subject: Re: Egress filters
Date: Wed, 26 Jan 2011 12:18:11 +0100	[thread overview]
Message-ID: <20110126121811.467e72aa@catus> (raw)
In-Reply-To: <mj+md-20110126.102650.14602.nikam@ucw.cz>

>Hello, world!\n

Hi,

>I would like to set up an egress filter, which would process all
>outgoing packets just before they hit the network interface (especially
>after all NATing takes place).
>Is there any table/chain for that?

Look here:
http://jengelh.medozas.de/images/nf-packet-flow.png

Mangle table postrouting chain is an appropriate place. Filtering would
take place before nat table postrouting chain (nat table is consulted
only for the first packet of the flow).

best regards,
Marek Kierdelewicz

  reply	other threads:[~2011-01-26 11:18 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-26 10:39 Egress filters Martin Mares
2011-01-26 11:18 ` Marek Kierdelewicz [this message]
2011-01-26 11:43   ` Martin Mares
2011-01-26 12:35     ` Marek Kierdelewicz
2011-01-26 12:38       ` Martin Mares
2011-01-26 12:37     ` Marek Kierdelewicz

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=20110126121811.467e72aa@catus \
    --to=marek@piasta.pl \
    --cc=mj@ucw.cz \
    --cc=netfilter@vger.kernel.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