View previous topic :: View next topic |
Author |
Message |
huepfmonster n00b

Joined: 06 Oct 2004 Posts: 2
|
Posted: Wed Oct 06, 2004 7:54 pm Post subject: Home Router - Kernel "forgets" settings |
|
|
I have used my PC as a home router with Gentoo for quite a while, following the Home Router Howto. Then, some day, it didn't work anymore. I figured out this was because the settings in /proc/sys/net/ipv4/ip_forward and /proc/sys/net/ipv4/conf/*/rp_filter (each has to be set to 1) are set to 0 again if I reboot the System. Any ideas why the settings were stored before and now get lost after each reboot? Yes, I could write a little script launched at startup, but I want to figure why the behaviour of the kernel has changed. By the way, I used the latest gentoo-sources and because of this problem switched to gentoo-dev-sources, but it didn't change anything.
regards, jakob |
|
Back to top |
|
 |
WarpFlyght n00b


Joined: 04 May 2003 Posts: 38 Location: Atlanta, GA
|
Posted: Wed Oct 06, 2004 8:02 pm Post subject: |
|
|
It's always been my understanding that those settings in /proc just work that way. Those settings represent parameters you have set in memory, and they aren't stored permanently, so when you reboot and the memory is cleared those settings get lost.
Writing a script to set those values as you would like them on each boot is probably your best bet short of patching the kernel to change default values or something of that sort. Others may have other options, but I've always used (and seen others use) /etc/conf.d/local.start for setting those types of things. _________________ Help save the world. Adopt an unanswered post.
·····························
Gentoo Linux 1.4 no more. SGI Indy R4400 on 2.6.13-mipscvs |
|
Back to top |
|
 |
tuxmin l33t


Joined: 24 Apr 2004 Posts: 838 Location: Heidelberg
|
Posted: Wed Oct 06, 2004 8:02 pm Post subject: |
|
|
That's absolutely normal, that ip_forward defaults to 0. My guess is, that you recently updated iptables and your /etc/conf.d/iptables got overwritten.
Alex!!! _________________ ALT-F4 |
|
Back to top |
|
 |
|
|
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
|
|