I've been wrestling with sysctl
to get it to keep iPv6 disabled and find it works fine if I set it up like so:
$ cat /etc/sysctl.d/10-ipv6-off.conf
net.ipv6.conf.all.disable_ipv6=1
net.ipv6.conf.default.disable_ipv6=1
net.ipv6.conf.lo.disable_ipv6=1
net.ipv6.conf.eth0.disable_ipv6=1
And then reload sysctl
:
$ sysctl --system
But after rebooting I find that IPv6 gets re-enabled. How can I permanently disable IPv6?