I added these lines to a
.conf file in the directory
net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.default.disable_ipv6 = 1 net.ipv6.conf.lo.disable_ipv6 = 1
I then do
sudo systemctl restart systemd-sysctl
So far so good, as I can verify, e.g.
cat /proc/sys/net/ipv6/conf/lo/disable_ipv6 returns
and I can see that ipv6 addresses are not assigned in output of
But, if I put my computer to sleep, the setting does not persist (unless I repeat the above
sudo systemctl restart systemd-sysctl). I am running Fedora 32. I thought that this setting should persist. Am I missing something here?