Following some tutorials to disable ipv6 in my laptop (Ubuntu 16.04), I needed to write in /etc/sysctl.d/99-sysctl.conf
the following lines:
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
I run sudo sysctl -p
and ipv6 is disabled. Fine.
After some time, or if I restart NetworkManager, or reboot my computer, I find in ifconfig that my ipv6 address got back, and I have to run sudo sysctl -p
again.
So I cannot understand why my configuration is not definitive and something ignores my kernel parameters at runtime.
sudo service procps start
? – Charles Green Nov 09 '17 at 16:59sysctl.d/99-sysctl.conf
andsysctl.conf
are identical. So there is no difference. – DdD Nov 09 '17 at 17:25sudo service procps status
I can see that is already active, moreover I can restart it and it fix ipv6 temporarily, until NetworkManager is restarted, then it gets back its ipv6. – DdD Nov 09 '17 at 17:29/etc/sysctl.d/99-sysctl.conf
, if it is identical to/etc/sysctl.conf
? The reason for my suggestion ofprocps
can be found in/etc/sysctl.d/README
– Charles Green Nov 09 '17 at 17:43