[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] [OT] Re: ipchains firewall blocking own c-clas s



-----Original Message-----
From: Bruce Timberlake 
Subject: [cobalt-users] [OT] Re: ipchains firewall blocking own c-class

and so on.  Remember it works from the top down, so the first rule the 
packet matches is where it "exits"... so specifically allow anything 
you _do_ want at the top, then start blocking stuff you don't want 
after that.

- -- 
Bruce Timberlake

_____________________________________


Sorry, I am bound to do this ... just for what I actually do during 
the course of a day.

I would actually BLOCK everything, and only allow in certain traffic!  
Why?

There are 65,535 TCP ports and 65,535 UDP ports.  That is just way to 
many to want to have open!  Especially with all of the kiddie scripters 
these days.

So, using IP chains, this is what I do.	

ipchains -F 
ipchains -P input DENY 
ipchains -P forward DENY 
ipchains -P output DENY 
ipchains -A input -i lo -j ACCEPT 
ipchains -A output -i lo -j ACCEPT 
ipchains -A forward -i lo -j ACCEPT 
ipchains -A input -i eth0 -j ACCEPT 
ipchains -A output -i eth0 -j ACCEPT