[CentOS] Start scripts ordering
ivazquez at ivazquez.net
Sat Nov 26 15:34:07 UTC 2005
On Sat, 2005-11-26 at 10:25 -0500, Phil Savoie wrote:
> Hi All,
> Was wondering if you could help me out. At work we are running CentOS 4.2 as
> our mailserver/firewall. The script in question is /etc/rc3.d/S08iptables.
> As this starts before the network adapters are set up, it hoses our iptables
> script resulting in denying our internal hosts internet access.
> What I would like to do is mv the script to /etc/rc3.d/S11iptables so the the
> interfaces are up and then the iptables script kicks in. It is in this way
> that we find it works best for us.
> However on a reboot we found that the "system" moved the script back to it's
> original name of /etc/rc3.d/S08iptables.
> How would I "tell the system" to keep the script named
> as /etc/rc3.d/S11iptables so that it does not automatically rename it back
> to /etc/rc3.d/S08iptables?
Edit the chkconfig line in /etc/init.d/iptables to read 11 instead of
08, then run:
chkconfig iptables reset
Ignacio Vazquez-Abrams <ivazquez at ivazquez.net>
gpg --keyserver hkp://subkeys.pgp.net --recv-key 38028b72
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 189 bytes
Desc: This is a digitally signed message part
More information about the CentOS