View previous topic :: View next topic |
Author |
Message |
Legshot n00b
Joined: 15 Jul 2002 Posts: 16 Location: Austria
|
Posted: Sun Aug 11, 2002 2:19 am Post subject: Wrote my own firewall script. Where do I put it now? :) |
|
|
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
_________________ regards, Legshot |
|
Back to top |
|
|
rfru n00b
Joined: 30 Jun 2002 Posts: 11
|
Posted: Sun Aug 11, 2002 5:26 am Post subject: |
|
|
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 |
|
|
alleycat n00b
Joined: 02 Jul 2002 Posts: 6
|
Posted: Sun Aug 11, 2002 9:44 am Post subject: |
|
|
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 |
|
|
|