Re: the rc-local file problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



El mar, 05-10-2004 a las 09:48, menonrr@xxxxxxx 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.

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux