Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Wrote my own firewall script. Where do I put it now? :)
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
Legshot
n00b
n00b


Joined: 15 Jul 2002
Posts: 16
Location: Austria

PostPosted: Sun Aug 11, 2002 2:19 am    Post subject: Wrote my own firewall script. Where do I put it now? :) Reply with quote

I've written my own firewall / masquerading script and wonder where the optimal place under Gentoo would be? Also, can I add it with rc-update to the system startup?

I've this line
Code:
echo 1 > /proc/sys/net/ipv4/ip_forward
in my script, is there another way to enable this via a Gentoo config script maybe? (like rc.config under suse?)

Thanks in advance again!

P.S.: arghl, 11 posts and still a n00b :cry:

:lol:
_________________
regards, Legshot
Back to top
View user's profile Send private message
rfru
n00b
n00b


Joined: 30 Jun 2002
Posts: 11

PostPosted: Sun Aug 11, 2002 5:26 am    Post subject: Reply with quote

try putting the script in /etc/init.d. then, like you said, you can use rc-update add script_name default to add it to the default runlevel. as for the ip_forward option, I don't know of a special way to do it in gentoo.
Back to top
View user's profile Send private message
alleycat
n00b
n00b


Joined: 02 Jul 2002
Posts: 6

PostPosted: Sun Aug 11, 2002 9:44 am    Post subject: Reply with quote

you can also put one or both in /etc/conf.d/local.start

good place for hdparm optimizations as well, if you need those.
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