Re: Settings in /etc/sysctl.conf not sticking at boot



On 29/09/2007, Jonathan Underwood <jonathan.underwood@xxxxxxxxx> wrote:
Hi,

On a fully updated F7 box I have added this line to /etc/sysctl.conf:

net.netfilter.nf_conntrack_tcp_be_liberal = 1

However, on reboot, this seems to have no effect. Eg. On a freshly
rebooted system:

# cat /proc/sys/net/netfilter/nf_conntrack_tcp_be_liberal
0

And so that setting doesn't seem to have been applied. Without editing
that file, if I do:

# /sbin/sysctl -p
net.ipv4.ip_forward = 0
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.default.accept_source_route = 0
kernel.sysrq = 0
kernel.core_uses_pid = 1
net.ipv4.tcp_syncookies = 1
net.netfilter.nf_conntrack_tcp_be_liberal = 1

then, the setting sticks:

# cat /proc/sys/net/netfilter/nf_conntrack_tcp_be_liberal
1

For the benefit of the archives, and anyone in the future searching
for this issue - the reason is that, during boot, sysctl is called by
the /etc/init.d/network service. Any values in /etc/sysctl.conf set
for kernel modules not loaded at that point will be ignored.

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list



Relevant Pages

  • Re: SOS computer keeps rebooting.
    ... you can't get the reboot loop to stop. ... No body gets real for real boot CDs, ... Plan A ... The only way to unlock the keyboard was a complete power down. ...
    (microsoft.public.windowsxp.general)
  • Re: XP Suddenly Slow to Boot [Long/Detailed]
    ... You said the systweak fixed a "bunch of things" but no joy. ... Every time you do a boot or reboot, ... | and decided to just reboot and see if the sound situation would ...
    (microsoft.public.windowsxp.basics)
  • Re: New XP box will only boot in safe mode?
    ... I too can reboot this PC and during the boot up process I see the post. ... to install a symantec upgrade at http://tinyurl.com/yckf2z. ... You can access Event Viewer by selecting Start, ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Any Way to Run Windows 2000 From Read-Only CD?
    ... Bart's PE is a popular choice for making a boot CD. ... every now and then at reboot. ... files and/or ghost images to automate the process of hardening machines? ... Most adware is prevented by doing one or more of the following: ...
    (microsoft.public.windows.server.security)
  • Re: XP Pro boot hanging
    ... Database Developer ... in the boot ini once ... After cloning, reboot, I forgot to remove the Acronis CD and USB connected ... Neither drive will boot into Windows. ...
    (microsoft.public.windowsxp.general)