the rc-local file problem

Daniel Eugenin deugenin at inf.uach.cl
Tue Oct 5 16:44:37 UTC 2004


El mar, 05-10-2004 a las 09:48, menonrr at jmu.edu escribió:
> 10/5
> 
> Hello,
> 
> I used to make my static routes 'permanent' in Redhat 9 by
> putting the 'route add' command in the rc.local file. But I
> note that in one machine the route is not automatically added.
> What could be the reason?
> 

maybe with /sbin/route add ......

Or create the /etc/sysconfig/network-scripts/route-ethX file with:

subnet/netmask via gateway

For example:

192.168.0.0/24 via 192.168.0.254


> The same problem for the firwall script. I have entered the
> path /etc/rc.d/rc.ipmasq in the rc.local file. The script
> should have executed to flush the iptable and give it the
> rules. But now it does not seem to work. I have to run
> ./ipmasq in rc.d for the firewall after restarting.
> 

Move your rc.ipmasq script into /etc/rc.d/init.d and execute chkconfig
command for add your script.

> Please advise.
> 
> Thanks  lot for the support.
> 
> Menon
--
Daniel Eugenin M.




More information about the redhat-list mailing list