View previous topic :: View next topic |
Author |
Message |
yarug Tux's lil' helper

Joined: 01 Dec 2004 Posts: 117 Location: NL
|
Posted: Sun Mar 08, 2015 9:21 am Post subject: Gentoo Home Router question |
|
|
Hi everyone,
I've configured one of my servers as a Home Router using the guide at http://wiki.gentoo.org/wiki/Home_Router.
Everything is up and running.
I just wondered about one thing. Every time I restart the server (and I think even after some emerge updates) I have to re-apply the following configuration:
Code: | root #echo 1 > /proc/sys/net/ipv4/ip_forward |
Is there a way to make this configuration more permanent?
Note that I never applied the configuration step directly following in the guide as it was working for me without this. Could it be that this configuration that I did not have to apply:
Code: | root #for f in /proc/sys/net/ipv4/conf/*/rp_filter ; do echo 1 > $f ; done |
makes the configuration step just before it permanent as I want?
Thanks,
Nes |
|
Back to top |
|
 |
szatox Advocate

Joined: 27 Aug 2013 Posts: 2020
|
Posted: Sun Mar 08, 2015 9:52 am Post subject: |
|
|
This is where you make it permanent:
Quote: | # grep ipv4 /etc/sysctl.conf
net.ipv4.ip_forward = 1
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.all.rp_filter = 1
|
|
|
Back to top |
|
 |
yarug Tux's lil' helper

Joined: 01 Dec 2004 Posts: 117 Location: NL
|
Posted: Sun Mar 08, 2015 4:08 pm Post subject: |
|
|
Thanks! |
|
Back to top |
|
 |
|