It is in "rc.local", IS THAT CORRECT ? #!/bin/sh # # This script will be executed *after* all the other init scripts. # You can put your own initialization stuff in here if you don't # want to do the full Sys V style init stuff.
touch /var/lock/subsys/local # Anañdir Rutas Staticas route add marc gw 192.168.2.1 route add idms gw 192.168.2.1 # Añadir FireWall iptables -A INPUT -j DROP iptables -A FORWARD -j DROP iptables -I INPUT -d 127.0.0.1 -i lo -j ACCEPT iptables -I INPUT -s ds00 -i eth0 -j ACCEPT # ximo iptables -I INPUT -s ds04 -i eth0 -j ACCEPT # ana iptables -I INPUT -s ds03 -i eth0 -j ACCEPT # javi iptables -I INPUT -s marc -i eth1 -j ACCEPT # marc iptables -I INPUT -s idms -i eth1 -j ACCEPT # idms iptables -I FORWARD -s 192.168.200.0/24 -i eth0 -j ACCEPT iptables -I FORWARD -s marc -i eth1 -j ACCEPT iptables -I FORWARD -s idms -i eth1 -j ACCEPT iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE # montaje volumnes smbmount //ds00/CONF_LINUX /mnt/CONF_LINUX -o username=xxxx,password=xxxx -----Mensaje original----- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] En nombre de Death Enviado el: jueves, 18 de julio de 2002 13:41 Para: [EMAIL PROTECTED] Asunto: Re: keep parameters. send me the firewall script !! and i look at it so i can help out !! ----- Original Message ----- From: Ximo Llacer To: [EMAIL PROTECTED] Sent: Wednesday, July 17, 2002 7:46 AM Subject: keep parameters. Hi, I have made a firewall script and it works fine , but when I booted the host disappers. Where can I put this script to load when the host re-boot and keep it? Where is the place where I can put the static routes to keep it? Un Cordial Saludo / Best regards Ximo Llácer Dpto Sistemas (GrupoInterpack ) G 0034 61767050 • 0034 61767158 0<mailto:[EMAIL PROTECTED]> _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list