Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
start firewall script by placing here (edited the subject)?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
shanenin
Guru
Guru


Joined: 28 Nov 2003
Posts: 578
Location: Rochester, MN U.S.A

PostPosted: Sat Dec 06, 2003 6:10 pm    Post subject: start firewall script by placing here (edited the subject)? Reply with quote

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
View user's profile Send private message
madmango
Guru
Guru


Joined: 15 Jul 2003
Posts: 507
Location: PA, USA

PostPosted: Sat Dec 06, 2003 6:46 pm    Post subject: Reply with quote

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
View user's profile Send private message
bmichaelsen
Veteran
Veteran


Joined: 17 Nov 2002
Posts: 1277
Location: Hamburg, Germany

PostPosted: Sat Dec 06, 2003 6:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
shanenin
Guru
Guru


Joined: 28 Nov 2003
Posts: 578
Location: Rochester, MN U.S.A

PostPosted: Sat Dec 06, 2003 7:15 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum