From: Eray Aslan <eray.aslan@caf.com.tr>
To: netfilter@vger.kernel.org
Subject: Re: [ANNOUNCE] Release of iptables-1.4.3.2
Date: Thu, 09 Apr 2009 16:29:50 +0300 [thread overview]
Message-ID: <49DDF84E.2010302@caf.com.tr> (raw)
In-Reply-To: <49DDB24A.80400@chello.at>
On 09.04.2009 11:31, Mart Frauenlob wrote:
> what about the 'policy' in the 'nat' table? Will it allow 'DROP'?
# /sbin/iptables -V
iptables v1.4.3.1
# /sbin/iptables -t nat -P OUTPUT DROP
iptables v1.4.3.1:
The "nat" table is not intended for filtering, the use of DROP is
therefore inhibited.
Try `iptables -h' or 'iptables --help' for more information.
# echo $?
2
# /sbin/iptables -t nat -L|grep OUTPUT
Chain OUTPUT (policy ACCEPT)
> what about the other non 'filter' tables?
> Will it be possible to 'DROP' in the mangle table? Or set it's policy to
> 'DROP'?
Yes
> Isn't dropping in the mangle table almost the same thing as doing that
> in the nat table?
No. Not all packets in a connection traverse the nat table.
> At least it violates the concept of filtering in the filter table.
Yes. Correct place to filter in in the filter table. But if you insist
on doing the "wrong" thing, who is to interfere?
[...]
> I've seen quite some people (mostly unexperienced) mess up their box
> with that, most of them ending up asking for public help.
> It seems misleading to me, to make that options available.
Well, software does not grow on trees. Someone has to write it but is
it really worth the effort to ban filtering in mangle et al? Filtering
in the nat table was especially wrong because it didnot give the
expected result and I suppose that is reason for the patch/revized
behaviour.
--
Eray
next prev parent reply other threads:[~2009-04-09 13:29 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-06 11:38 [ANNOUNCE] Release of iptables-1.4.3.2 Pablo Neira Ayuso
2009-04-06 14:18 ` Dennis J.
2009-04-07 4:26 ` Eray Aslan
2009-04-09 8:31 ` Mart Frauenlob
2009-04-09 13:27 ` Eray Aslan
2009-04-09 17:02 ` Payam Chychi
2009-04-09 19:27 ` Vincent Bernat
2009-04-09 13:29 ` Eray Aslan [this message]
2009-04-10 7:21 ` Mart Frauenlob
2009-04-10 10:54 ` The death of policy (WAS -> Re: [ANNOUNCE] Release of iptables-1.4.3.2) Gáspár Lajos
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=49DDF84E.2010302@caf.com.tr \
--to=eray.aslan@caf.com.tr \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.