-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 17-Jul-2002/08:46 +0200, Ximo Llacer <[EMAIL PROTECTED]> wrote:
>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?

Add this command to the end of the script:

  service [ipchains or iptables] save

That will save the rules to a file under /etc/sysconfig. That file is read
by the initscript that starts ipchains or iptables, whichever you're
using.

Then you can edit the script and run it and your rulews will always be
updated.

>Where is the place where I can put the static routes to keep it?

If I were doing this, I would put the commands in a script in
/usr/local/sbin and call the script by adding a line to the "start"
section of /etc/rc.d/init.d/network.

That would keep your static route configuration through upgrades (I put
/usr/local on a separate partition that I do not touch during upgrades).
I would just have to add that one line to the network initscript after the
upgrade.

Tony
- -- 
Anthony E. Greene <mailto:[EMAIL PROTECTED]%3E>
OpenPGP Key: 0x6C94239D/7B3D BD7D 7D91 1B44 BA26  C484 A42A 60DD 6C94 239D
AOL/Yahoo Messenger: TonyG05    HomePage: <http://www.pobox.com/~agreene/>
Linux. The choice of a GNU generation <http://www.linux.org/>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Anthony E. Greene <mailto:[EMAIL PROTECTED]> 0x6C94239D

iD8DBQE9NYEhpCpg3WyUI50RAulyAJ9tkLLIrCOO4mlSjTpk9rwm5Kc/agCg5gzS
ENxOH3e8Tbu6/U65/F2vqsU=
=GS0s
-----END PGP SIGNATURE-----



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to