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 13:35:31 +0100 [thread overview]
Message-ID: <20110126133531.7e724bc9@catus> (raw)
In-Reply-To: <mj+md-20110126.113943.977.nikam@ucw.cz>
Hi,
>I know that, but I want to hook my rules _after_ the nat table
>postrouting chain. (I want to catch packets with private source address
>which are not NATed due to misconfiguration of my complex NAT setup.)
Some time ago you could simply add DROP at the end of nat postrouting
chain, but this option is off the table.
You can add rule connmarking traffic to 0x10 at the end of nat
postrouting chain and drop everything with that connmark in filter
forward chain. First packet of the filtered flows would get trough but
everything would be axed.
Best regards,
Marek Kierdelewicz
next prev parent reply other threads:[~2011-01-26 12:35 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
2011-01-26 11:43 ` Martin Mares
2011-01-26 12:35 ` Marek Kierdelewicz [this message]
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=20110126133531.7e724bc9@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