question about table filter, nat and mangle with chain default policy
--- On Sun, 4/12/09, Mart Frauenlob <[email protected]> wrote:
From: Mart Frauenlob <[email protected]>
Subject: Re: question about table filter, nat and mangle with chain default policy
To: [email protected]
Date: Sunday, April 12, 2009, 7:11 AM
Quoted 7 lines
Don't set the policy to DROP in mangle and nat table. Put the drop policy only in filter table.greets
Mart
thanks for your help, but why i can't set policy DROPT in mangle and nat table? is the mangle and nat table share chain with filter table or why?
because as i remember process from INPUT will not pass the rule for OUTPUT and FORWARD
it's right or i have wrong from understand the iptables rule?
thx again...
Quoted 16 lines · my mail
--- On Sun, 4/12/09, Mart Frauenlob <[email protected]> wrote:
From: Mart Frauenlob <[email protected]>
Subject: Re: question about table filter, nat and mangle with chain default policy
To: [email protected]
Date: Sunday, April 12, 2009, 7:11 AMQuoted 7 lines
Don't set the policy to DROP in mangle and nat table. Put the drop policy only in filter table.
greets
Mart
Quoted 9 lines
thanks for your help, but why i can't set policy DROPT in mangle and nat table? is the mangle and nat table share chain with filter table or why?
because as i remember process from INPUT will not pass the rule for OUTPUT and FORWARD
it's right or i have wrong from understand the iptables rule?
thx again...
The packet flows diagram can explain a lot more than any amount of text:
http://l7-filter.sourceforge.net/PacketFlow.png
... now imagine that the boxes labled mangle::PREROUTING and nat::PREROUTING had a DROP for all packets.
Which is configured like this:
$IPT -t mangle --policy PREROUTING DROP
$IPT -t nat --policy PREROUTING DROP
AYJ