You are not logged in.
Hi,
I'm using two machine as gateways and Keepalive HA load balancers, so I've enabled some kernel options, but after some time (the next day or so), these options have been reset to their default (disabled) values.
Why does that happen, and how to stop that from happening?
I have to reset the parameters each time. I could set up a script to run on a schedule, but I would like to prevent it from happening in the first place.
These are the values which get reset to 0 (this time):
net.ipv4.conf.all.accept_redirects
net.ipv4.vs.conntrack
net.ipv4.vs.expire_nodest_conn
net.ipv4.vs.expire_quiescent_template
Thank you.
Offline
so I've enabled some kernel options,
How? I suspect the problem might be here.
You should define those options in a script file on /etc/sysctl.d/. See http://www.freedesktop.org/software/sys … ctl.d.html
Offline
That is how I did it: I wrote them in the configuration file "/etc/sysctl.d/99-sysctl.conf".
Offline
Anything in the journal about the changes?
Maybe it's related to
Notes
Please note that modules loaded after sysctl is run may override the settings (example: sunrpc.* settings are overridden when the sunrpc module is loaded)...
Offline
I didn't find anything in the journal, but I am curious about what I did find: every 1-3 seconds, there is an entry which is repeated: "sshd[<Number>]: Set /proc/self/oom_score_adj to 0". What does it mean? I've been scrolling for the last few days-worth of this message, and there is still more... I also have many attempts to log in via ssh from China, from multiple IP addresses, with various user names and many unsuccessful authentication attempts for root; maybe the entry is related to these attempts...
Going back to the original discussion, I think I've seen someone mention a systemd service or something like that which resets kernel settings, or some other things, to their default values, in a post (here), but I didn't find it again. Is there such a service that does something like that?
It is strange that since I started this thread, and since I reset the settings to 1, they have remained at 1. I notice that it happens irregularly.
Offline
Note the quote in my post above was from "man sysctl.conf". If it is a module changing them and the module was loaded before you re-ran your 99-sysctl.conf, this would explain they stay put.
Offline
How can I check if there is anything that may be resetting the values? It seems that they have not changed after I set them again (after startup), this time.
Thank you.
Offline