Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
echo 1 > /proc/sys/net/ipv4/ip_forward
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
wizardofos
Apprentice
Apprentice


Joined: 20 Jul 2004
Posts: 201

PostPosted: Sat Nov 20, 2004 4:07 pm    Post subject: echo 1 > /proc/sys/net/ipv4/ip_forward Reply with quote

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


Joined: 05 Jul 2003
Posts: 54845
Location: 56N 3W

PostPosted: Sat Nov 20, 2004 4:13 pm    Post subject: Reply with quote

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


Joined: 20 Jul 2004
Posts: 368
Location: back from SE Asia

PostPosted: Sat Nov 20, 2004 5:50 pm    Post subject: Reply with quote

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


Joined: 30 Aug 2002
Posts: 636

PostPosted: Sat Nov 20, 2004 7:14 pm    Post subject: Reply with quote

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
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