/proc/sys/net/ipv4/ip_forward resets to 0 after reboot
Can anyone tell me how to prevent /proc/sys/net/ipv4/ip_forward from
resetting to 0 after a reboot. I do have /etc/network/options set as
follows:
ip_forwared=yes
spoofprotect=yes
syncookies=no
and I do the following manually to allow ip forwarding:
sudo sh -c 'echo 1 > /proc/sys/net/ipv4/ip_forward'
whereupon
cat /proc/sys/net/ipv4/ip_forward
produces
1
and port forwarding is enabled. After reboot though
/proc/sys/net/ipv4/ip_forward
produces
0
Regards,
Tom Wolfe
---
Tom Wolfe, IT Specialist twolfe@sawback.com
Stoney Educational Authority tel: (403) 881-2650
Box 238, Morley AB, T0L 1N0 fax: (403) 881-2793
Morley Community School | Chief Jacob Bearspaw School | Ta-otha School
--
edubuntu-users mailing list
edubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/edubuntu-users
12-05-2007, 08:17 PM
Daniel Kahn Gillmor
/proc/sys/net/ipv4/ip_forward resets to 0 after reboot
On Wed 2007-12-05 14:35:17 -0500, Tom Wolfe wrote:
> Can anyone tell me how to prevent /proc/sys/net/ipv4/ip_forward from
> resetting to 0 after a reboot. I do have /etc/network/options set as
> follows:
>
> ip_forwared=yes
This entry appears to be misspelled. Maybe that's part of the problem?
Most GNU/Linux distros allow setting values under /proc/sys by adding
entries in /etc/sysctl.conf, which is read at boot time.
On an ubuntu gutsy system (i don't have an edubuntu system handy to
try, and i don't know what version you're running anyway), i see this:
0 dkg@leonard:~$ grep forward /etc/sysctl.conf
# Uncomment the next line to enable packet forwarding for IPv4
#net.ipv4.conf.default.forwarding=1
# Uncomment the next line to enable packet forwarding for IPv6
#net.ipv6.conf.default.forwarding=1
0 dkg@leonard:~$
hth,
--dkg
--
edubuntu-users mailing list
edubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/edubuntu-users
12-06-2007, 05:52 PM
Tom Wolfe
/proc/sys/net/ipv4/ip_forward resets to 0 after reboot
Hi Daniel, thanks for the ideas.
That was a misspelling (I typed it in, not cut & paste)
I swtiched to using sysctl.conf after reading that the
/etc/network/options is deprecated
Still the same problem.
I've resorted to a cron job that sets it to 1 ever minute.... quite a hack
so I'd love to know the real cause of the problem.
NOte that I didn't do a standard Edubuntu install, I had Edubuntu
workstation, and then installed LTSP, etc. on top of it. I imagine I have
a config missing somewhere.
Regards,
Tom Wolfe
---
Tom Wolfe, IT Specialist twolfe@sawback.com
Stoney Educational Authority tel: (403) 881-2650
Box 238, Morley AB, T0L 1N0 fax: (403) 881-2793
Morley Community School | Chief Jacob Bearspaw School | Ta-otha School
On Wed, 5 Dec 2007, Daniel Kahn Gillmor wrote:
> On Wed 2007-12-05 14:35:17 -0500, Tom Wolfe wrote:
>
>> Can anyone tell me how to prevent /proc/sys/net/ipv4/ip_forward from
>> resetting to 0 after a reboot. I do have /etc/network/options set as
>> follows:
>>
>> ip_forwared=yes
>
> This entry appears to be misspelled. Maybe that's part of the problem?
>
> Most GNU/Linux distros allow setting values under /proc/sys by adding
> entries in /etc/sysctl.conf, which is read at boot time.
>
> On an ubuntu gutsy system (i don't have an edubuntu system handy to
> try, and i don't know what version you're running anyway), i see this:
>
> 0 dkg@leonard:~$ grep forward /etc/sysctl.conf
> # Uncomment the next line to enable packet forwarding for IPv4
> #net.ipv4.conf.default.forwarding=1
> # Uncomment the next line to enable packet forwarding for IPv6
> #net.ipv6.conf.default.forwarding=1
> 0 dkg@leonard:~$
>
> hth,
>
> --dkg
>
--
edubuntu-users mailing list
edubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/edubuntu-users
12-06-2007, 07:39 PM
Daniel Kahn Gillmor
/proc/sys/net/ipv4/ip_forward resets to 0 after reboot
On Thu 2007-12-06 13:52:09 -0500, Tom Wolfe wrote:
> I swtiched to using sysctl.conf after reading that the
> /etc/network/options is deprecated
right, good call.
> Still the same problem.
>
> I've resorted to a cron job that sets it to 1 ever minute.... quite a
> hack so I'd love to know the real cause of the problem.
>
> NOte that I didn't do a standard Edubuntu install, I had Edubuntu
> workstation, and then installed LTSP, etc. on top of it. I imagine I
> have a config missing somewhere.
on my debian lenny system here, /etc/sysctl.conf is initially read by
/etc/init.d/procps from the procps package during system
initialization (linked from /etc/rcS.d/S30procps). lenny uses
traditional sysvinit, though -- i think edubuntu is using upstart now,
so maybe it does something differently? or maybe yer distro
migrations broke your initscripts somehow?
If a stock edubuntu install were to not initialize /proc/sys from
/etc/sysctl.conf, that would be a serious bug worth reporting.
--dkg
PS no need to CC me, i read the list.
--
edubuntu-users mailing list
edubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/edubuntu-users
12-07-2007, 06:57 PM
"R. Scott Belford"
/proc/sys/net/ipv4/ip_forward resets to 0 after reboot
Daniel Kahn Gillmor wrote:
> On Thu 2007-12-06 13:52:09 -0500, Tom Wolfe wrote:
>
>> I swtiched to using sysctl.conf after reading that the
>> /etc/network/options is deprecated
>
> right, good call.
I was told differently on this list. The Edubuntu Wiki suggests that it
is a solution. If it is in fact deprecated, and I believe you, then we
really need to get on the same page of what *does* work with 7.10.
>
>> Still the same problem.
>>
>> I've resorted to a cron job that sets it to 1 ever minute.... quite a
>> hack so I'd love to know the real cause of the problem.
>>
>> NOte that I didn't do a standard Edubuntu install, I had Edubuntu
>> workstation, and then installed LTSP, etc. on top of it. I imagine I
>> have a config missing somewhere.
>
> on my debian lenny system here, /etc/sysctl.conf is initially read by
> /etc/init.d/procps from the procps package during system
> initialization (linked from /etc/rcS.d/S30procps). lenny uses
> traditional sysvinit, though -- i think edubuntu is using upstart now,
> so maybe it does something differently? or maybe yer distro
> migrations broke your initscripts somehow?
>
> If a stock edubuntu install were to not initialize /proc/sys from
> /etc/sysctl.conf, that would be a serious bug worth reporting.
I definitely need to echo that making changes to /etc/sysctl.conf *do*
*not* have any affect on ip_forwarding. It is annoying, it does not
make sense, but I thought that it was just me. I enable ip_forwarding
through a line in rc.local.
>
> --dkg
>
> PS no need to CC me, i read the list.
>
--scott
--
edubuntu-users mailing list
edubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/edubuntu-users
12-07-2007, 09:19 PM
Karl Goetz
/proc/sys/net/ipv4/ip_forward resets to 0 after reboot
On Fri, 2007-12-07 at 09:57 -1000, R. Scott Belford wrote:
> Daniel Kahn Gillmor wrote:
> > On Thu 2007-12-06 13:52:09 -0500, Tom Wolfe wrote:
> >
> >> I swtiched to using sysctl.conf after reading that the
> >> /etc/network/options is deprecated
> >
> > right, good call.
>
> I was told differently on this list. The Edubuntu Wiki suggests that it
> is a solution. If it is in fact deprecated, and I believe you, then we
> really need to get on the same page of what *does* work with 7.10.
As i understand, its been depreciated since '05.
i have a memory of the man page being wrong on this too (it was a while
ago when i checked though)
kk
>
> >
> >> Still the same problem.
> >>
> >> I've resorted to a cron job that sets it to 1 ever minute.... quite a
> >> hack so I'd love to know the real cause of the problem.
Thats overkill - set once, and it stays like that until reboot (unless
theres a new upstartism involved.
> >>
> >> NOte that I didn't do a standard Edubuntu install, I had Edubuntu
> >> workstation, and then installed LTSP, etc. on top of it. I imagine I
> >> have a config missing somewhere.
doesnt matter, this is roughly how i setup my LTSP network (admitedly
back on 6.06)
> >
> > on my debian lenny system here, /etc/sysctl.conf is initially read by
> > /etc/init.d/procps from the procps package during system
> > initialization (linked from /etc/rcS.d/S30procps). lenny uses
> > traditional sysvinit, though -- i think edubuntu is using upstart now,
> > so maybe it does something differently? or maybe yer distro
> > migrations broke your initscripts somehow?
> >
> > If a stock edubuntu install were to not initialize /proc/sys from
> > /etc/sysctl.conf, that would be a serious bug worth reporting.
>
> I definitely need to echo that making changes to /etc/sysctl.conf *do*
> *not* have any affect on ip_forwarding. It is annoying, it does not
> make sense, but I thought that it was just me. I enable ip_forwarding
> through a line in rc.local.
did you uncomment the ipv4 line, or try adding a new one? perhaps a typo
in your new line? otherwise file a bug report imo.
kk
>
>
> >
> > --dkg
> >
> > PS no need to CC me, i read the list.
> >
>
> --scott
--
Karl Goetz,
Debian user / Ubuntu contributor / gNewSense contributor
http://www.kgoetz.id.au
--
edubuntu-users mailing list
edubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/edubuntu-users