I want to set to 1 the value of the sysctl parameter net.netfilter.nf_conntrack_tcp_be_liberal on some Debian 11-based systems I have, but I'm finding it impossible to do so. I've tried the following:
- Setting the value in the
/etc/sysctl.conffile, then executingsudo sysctl -p. For some reason, only when I set the value in that filesysctlseems to be aware of the change and truly applies it. After a reboot the value returns to its original0value. - The command
sudo sysctl -w net.netfilter.nf_conntrack_tcp_be_liberal=1works but, as expected, the change is lost after a reboot. - The command
echo '1' | sudo tee /proc/sys/net/netfilter/nf_conntrack_tcp_be_liberalworks too but also the change is lost after rebooting. - I've used
sudo grep -rwn nf_conntrack_tcp_be_liberal /folder-nameto try finding any other file that may have thenf_conntrack_tcp_be_liberalvalue set as0, but it seems there's none. - I've also checked with
sudo modprobe -cif the parameter happened to be also a module one, but it doesn't seem to be the case. I was inspired to check this by the answer to this other question.
After all of the above, I ran out of ideas. I hope anyone here can help me with this issue.