* general policy question
@ 2002-06-06 21:44 patrick conlin
2002-06-07 16:50 ` Ramin Alidousti
0 siblings, 1 reply; 4+ messages in thread
From: patrick conlin @ 2002-06-06 21:44 UTC (permalink / raw)
To: netfilter
does one generally set the -P on their mangle table chains to DROP, even if
you're not using them for anything?
usual procedure says set -P on all chains to DROP and allow what's
necessary, but if you're not using your mangle table chains for anything and
you set -P to DROP (on the iptables -t mangle PREROUTING chain, for example)
all packets get dropped.
you guessed it, I just did this and got booted from the machine. Now I have
to wait until I can go home and reboot my firewall before I can play with it
any more.
Just wondering how everyone else handles this.
-=p=-
^ permalink raw reply [flat|nested] 4+ messages in thread
* general policy question
@ 2002-06-07 14:35 patrick conlin
2002-06-07 15:23 ` Antony Stone
0 siblings, 1 reply; 4+ messages in thread
From: patrick conlin @ 2002-06-07 14:35 UTC (permalink / raw)
To: netfilter
does one generally set the -P on their mangle table chains to DROP, even if
you're not using them for anything?
usual procedure says set -P on all chains to DROP and allow what's
necessary, but if you're not using your mangle table chains for anything and
you set -P to DROP (on the iptables -t mangle PREROUTING chain, for example)
all packets get dropped.
you guessed it, I just did this and got booted from the machine. Now I have
to wait until I can go home and reboot my firewall before I can play with it
any more.
Just wondering how everyone else handles this.
-=p=-
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: general policy question
2002-06-07 14:35 patrick conlin
@ 2002-06-07 15:23 ` Antony Stone
0 siblings, 0 replies; 4+ messages in thread
From: Antony Stone @ 2002-06-07 15:23 UTC (permalink / raw)
To: netfilter
On Friday 07 June 2002 3:35 pm, patrick conlin wrote:
> does one generally set the -P on their mangle table chains to DROP, even if
> you're not using them for anything?
No. Mangle tables are for mangling. Nat tables are for address
translating, and Filter tables are for filtering. DROP is a filter
operation, therefore it belongs only in the filter tables.
> usual procedure says set -P on all chains to DROP and allow what's
> necessary,
Yes, but that's just being being sloppy in their description and not saying
"all chains in the filter table"...
> but if you're not using your mangle table chains for anything
> and you set -P to DROP (on the iptables -t mangle PREROUTING chain, for
> example) all packets get dropped.
Yes :-)
The reason ? All packets have to pass through the mangle, nat and filter
tables in order to traverse the entire system. If any one of those tables
DROPsthe packet, that's it - it's DROPped !
> Just wondering how everyone else handles this.
Don't try to filter using the mangle table :-)
Antony.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: general policy question
2002-06-06 21:44 general policy question patrick conlin
@ 2002-06-07 16:50 ` Ramin Alidousti
0 siblings, 0 replies; 4+ messages in thread
From: Ramin Alidousti @ 2002-06-07 16:50 UTC (permalink / raw)
To: patrick conlin; +Cc: netfilter
On Thu, Jun 06, 2002 at 05:44:21PM -0400, patrick conlin wrote:
> does one generally set the -P on their mangle table chains to DROP, even if
> you're not using them for anything?
>
> usual procedure says set -P on all chains to DROP and allow what's
> necessary,
Apparently they meant the "filter" table and not mangle or nat.
Ramin
> but if you're not using your mangle table chains for anything and
> you set -P to DROP (on the iptables -t mangle PREROUTING chain, for example)
> all packets get dropped.
>
> you guessed it, I just did this and got booted from the machine. Now I have
> to wait until I can go home and reboot my firewall before I can play with it
> any more.
>
> Just wondering how everyone else handles this.
>
> -=p=-
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2002-06-07 16:50 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-06 21:44 general policy question patrick conlin
2002-06-07 16:50 ` Ramin Alidousti
-- strict thread matches above, loose matches on Subject: below --
2002-06-07 14:35 patrick conlin
2002-06-07 15:23 ` Antony Stone
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox