On Wed, Jan 15, 2003 at 12:35:59AM +0100 or thereabouts, Jorge Luis Hernández Valdivia wrote: > Hi there; > > I've added some new rules to my iptables and everytime > I restart the iptables service or my PC this rules > desappear. > I'd like to know how can I do permanent changes on my > iptables.
$ service iptables save will save your current rules to /etc/sysconfig/iptables. They will be reloaded next time the service is started. > I also want to know how can I make some services to > run automatically each time I restart my PC. Things > like mounting units, changing the property of some > directories, basically some scripts I've made. > I work with RH 7.3 > You can put your scripts in /etc/rc.d/rc.local. This will be executed after all the other init scripts. Otherwise, you can use create a script in /etc/init.d that can be added to the appropriate runlevels using the chkconfig -add <scriptname> command. See the scripts in that directory for examples on how to do this. -- Andrew Pasquale -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list