On Wed, 22 Dec 1999,  Wilczek, Scott wrote about,  Boot and Init files:
> I come from a DOS evironment and am used to having all my system
> configuration in one place (AUTOEXEC.BAT and CONFIG.SYS).  Is there a
> document or URL that explains how and what files the Linux boot process
> uses??

Undoubably, but i am at a los there so i will explain or at least try to
explain how Redhat boots, it uses what called sysvinit scripts, there are
quite a few systems that use the same method. I think its beter to say one
that does not is slackware.

Upon bootup the file /etc/inittab is read, this file contains the init
runlevel in which to start, normaly that would be 3 unless the user has
choosen otherwise.
Then the system gets told the next file to read is /etc/rc.d/rc.sysinit but
first the consoles are defined, it now goes to rc.sysinit.

Here networking is started amounst other things, if you look at the file
you might be able to see what gets started and what does not.
The networking configuration files are in /etc/sysconfig/* swap and other
filesystems now get loaded.
Modules get loaded if configured properly.
Read the file i think you will see many more things that get started,
configured and loaded.
Now the system goes into /etc/rc.d/rc3.d here you will find symbolic links
to different files contained in /etc/rc.d/init.d scripts get read and
programs now get loaded and started.

When all that is done rc.local gets called you can define a personal
configuration file from there as follows.

if [ -f /etc/rc.d/rc.firewall ]; then
        /etc/rc.d/rc.firewall
fi

The file rc.firewall now gets called, so you create your own rc.firewall
and eneter something like the following, which is __very__ basic.

/sbin/ipchains -M -S 7200 10 160
/sbin/ipchains -P forward DENY
/sbin/ipchains -A forward -s 10.0.0.2/32 -j MASQ   

Thats how i do it, but of course there are other ways. I am sure others
will give you other opinions.

> I've been trying to setup up IP forwarding using ipchains.  I need to know
> where to put my ipchains commands so that IP forwarding is enabled for all
> user on the Linux box.
> 
> I'm using Red Hat 6.1.
> 
> Thanks,
> STW
-- 
Regards Richard
[EMAIL PROTECTED]
http://people.zeelandnet.nl/pa3gcu/
Merry Xmas.

Reply via email to