View previous topic :: View next topic |
Author |
Message |
shanenin Guru
Joined: 28 Nov 2003 Posts: 578 Location: Rochester, MN U.S.A
|
Posted: Sat Dec 06, 2003 6:10 pm Post subject: start firewall script by placing here (edited the subject)? |
|
|
I used guarddog to write my firewall script. It makes a shellscript stored at /etc/rc.firewall . I wanted the script run at boot. I put this in my /etc/conf.d/local.start
Code: | # /etc/conf.d/local.start:
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/conf.d/local.start,v 1.4 2002/11/18 19:39:22 azarah Exp $
# This is a good place to load any misc.
# programs on startup ( 1>&2 )
sh /etc/rc.firewall |
It seems to be working well, is their a better way to do this? _________________ http://brighteyedcomputer.com |
|
Back to top |
|
|
madmango Guru
Joined: 15 Jul 2003 Posts: 507 Location: PA, USA
|
Posted: Sat Dec 06, 2003 6:46 pm Post subject: |
|
|
I don't think so... Maybe make yourself a /etc/init.d script? Using start-stop-daemon? I don't know if that will work. _________________ word. |
|
Back to top |
|
|
bmichaelsen Veteran
Joined: 17 Nov 2002 Posts: 1277 Location: Hamburg, Germany
|
Posted: Sat Dec 06, 2003 6:48 pm Post subject: |
|
|
Why dont you use the iptables /etc/init.d-script ? It saves the iptables-ruleset on shutdown and restores them upon boot. |
|
Back to top |
|
|
shanenin Guru
Joined: 28 Nov 2003 Posts: 578 Location: Rochester, MN U.S.A
|
Posted: Sat Dec 06, 2003 7:15 pm Post subject: |
|
|
bmichaelsen wrote: | Why dont you use the iptables /etc/init.d-script ? It saves the iptables-ruleset on shutdown and restores them upon boot. |
I don't understand how it works, I will need to do some research.
thanks for your guys input. _________________ http://brighteyedcomputer.com |
|
Back to top |
|
|
|