On Mon, Oct 16, 2000 at 02:45:49PM +1000, Alister Waller wrote:

> I did some looking around and found in /etc/rc.d/init.d an ipchains file. I
> guessed that this would be run at startup, but I don't know linux well
> enough to know this for sure.

Possibly.  In /etc/rc.d/rc3.d, you'll see several files starting with `S' and
several starting with `K'.  Those starting with `S' are started on entry to run
level 3; those with `K' are killed.  These files are merely symbolic links to
the scripts in /etc/rc.d/init.d.

Run level 3 is one of the two most likely run levels your system enters on
boot.  The other is 5 (xdm).  Have a look for a line like this in /etc/inittab:

id:3:initdefault:
   ^
This is the default run level.

To change what's started or stopped in any particular run level, see `man
chkconfig'.  You could just change the links yourself, but the order is
important so if you're not sure what you're doing, just use chkconfig.

> I added a file called /etc/sysconfig/ipchains and added in the two ipchains
> lines from above....minus the ipchains bit of course.

This file should contain the output of ipchains-save, which is merely a listing
of the ipchains rules minus the command name, in other words, exactly what
you've done.

> if I now run  /etc/rc.d/init.d/ipchains start      it reads my
> /etc/sysconfig/ipchains file and does not give any errors so I guess this
> part is OK.

You guess right.

> hmmm...now how do I start ipchains or ipforwarding now at boot time?

I don't know about ip forwarding, I don't have a RH6.2 installation here to
look at.  Someone else will surely be able to answer that for you.


Cheers,

John
-- 
whois [EMAIL PROTECTED]


--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug

Reply via email to