setting up firewall
dj at linuxfromscratch.org
Sat Aug 13 18:40:21 PDT 2005
> Hi everyone!
> I have installed iptables.
> I created the file rc.iptables in /etc/rc.d
> root@[lfs]:/etc/rc.d/init.d# ls ../
> init.d rc0.d rc1.d rc2.d rc3.d rc4.d rc5.d rc6.d rc.iptables
> After this I run:
> root@[lfs]:/etc/rc.d/init.d# iptables start
> Bad argument `start'
> Try `iptables -h' or 'iptables --help' for more information.
> The BFLS 6.0 says:
> For instance when you run:
> /etc/rc.d/init.d/iptables start
> the firewall will be restarted just as it is upon system startup. The
> status target will present a list of all currently implemented rules.
> Do I have to do something else to start iptables?
This will not work if you don't have './' in your path....and generally
speaking you should not have './' in the path. Do what the book tells
you and execute '/etc/rc.d/init.d/iptables start' else you are calling
the iptables binary in /sbin, and start is an invalid argument.
-- DJ Lucas
More information about the blfs-support