DROP

Jason Opperisano opie at 817west.com
Fri Apr 22 16:28:45 CEST 2005


On Fri, Apr 22, 2005 at 08:54:05AM -0500, Stephen J. McCracken wrote:
> Jason Opperisano wrote:
> >On Mon, Apr 18, 2005 at 07:37:22AM +0200, Brent Clark wrote:
> 
> >>I was wondering, if was adviseable to set the default policy for tables 
> >>nat and mangle to DROP.
> >
> >no.  *all* packets traverse the filter chains--do your filtering
> >there.
> 
> Just to better understand, don't all packets also pass the mangle table 
> and only the first packet of a connection the nat table?

yes--all packets will traverse mangle, and --state NEW packets traverse
nat.

there's nothing wrong with doing some pre-filter scrubbing of absolute
stupidity in mangle, but the filter table is there for a reason
(filtering).

-j

--
"Bad Cockroach: Man, I'm going to cut you up so bad, that you... you
 gonna wish I didn't cut you up so bad."
        --Family Guy



More information about the netfilter mailing list