Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gentoo Home Router question
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
yarug
Tux's lil' helper
Tux's lil' helper


Joined: 01 Dec 2004
Posts: 104

PostPosted: Sun Mar 08, 2015 9:21 am    Post subject: Gentoo Home Router question Reply with quote

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


Joined: 27 Aug 2013
Posts: 1729

PostPosted: Sun Mar 08, 2015 9:52 am    Post subject: Reply with quote

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
View user's profile Send private message
yarug
Tux's lil' helper
Tux's lil' helper


Joined: 01 Dec 2004
Posts: 104

PostPosted: Sun Mar 08, 2015 4:08 pm    Post subject: Reply with quote

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