View previous topic :: View next topic |
Author |
Message |
wizardofos Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/36812764141021fac1bfcf.jpg)
Joined: 20 Jul 2004 Posts: 201
|
Posted: Sat Nov 20, 2004 4:07 pm Post subject: echo 1 > /proc/sys/net/ipv4/ip_forward |
|
|
Hello
Is there a default init-skript in which I should put the commandline above?
I need it to start my NAT, and i don't know where to place it .
Greetings
Fabian |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
NeddySeagoon Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/3946266373f47d606a2db3.jpg)
Joined: 05 Jul 2003 Posts: 54847 Location: 56N 3W
|
Posted: Sat Nov 20, 2004 4:13 pm Post subject: |
|
|
wizardofos,
When all else fails, put it in /etc/conf.d/local.start _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
nightblade Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/10423315640fcee34691a3.jpg)
Joined: 20 Jul 2004 Posts: 368 Location: back from SE Asia
|
Posted: Sat Nov 20, 2004 5:50 pm Post subject: |
|
|
Alternatively, in /etc/sysctl.conf: Code: |
net.ipv4.ip_forward = 1 |
Or even in /etc/init.d/local... _________________ In God we trust. All the others must provide a valid X.509 certificate |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
splooge l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
Joined: 30 Aug 2002 Posts: 636
|
Posted: Sat Nov 20, 2004 7:14 pm Post subject: |
|
|
As nightblade said ... /etc/sysctl.conf is the way it's _meant_ to be done (that's not to say there isn't more than one way to skin a cat, though). _________________ http://get.a.clue.de |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|