net.ipv6.conf.all.disable_ipv6 = 1
and run sysctl -p as root. With Debian 11 this generates the error message sysctl: cannot stat /proc/sys/net/ipv6/conf/all/disable_ipv6: No such file or directorybecause directory /proc/sys/net/ipv6 doesn't exist. What is the new way of disabling IPv6?
Roger