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

Re: Where to place firewall files?



On Sat, Jan 18, 2003 at 08:53:42AM +0100, Leszek Szczepanowski wrote:
> My question is about, where in Debian place firewall files ?

Depends on the package used for setting up the firewall.  If
none, anywhere, probably in /etc.  I have ipchains.rules in
/etc and a script "packetfilter" in /etc/init.d.  If using
ipmasq, /etc/ipmasq.

> And what is better - some plain file with set of 'iptables' commands,
> or more complicated set of scripts which interpretes rules from
> file?

I've done it both ways, and I feel better about using
ipmasq.

> And related question, just in case, where to define ethernet aliases,
> to be more smart than 'slackware' set of "autoexec" files...

You mean /etc/network/interfaces?

auto eth0:1
iface eth0:1 inet static
	address 192.168.0.2
	netmask 255.255.255.0
	network 192.168.0.0
	broadcast 192.168.0.255

-- 
Michael J. Micek,  CyberStrategies, Inc.  sysadmin



Reply to: