I can disable ipv6
as su
in /etc/sysctl.conf
on my GNU/LINUX Debian 11
with
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
and restart with
/sbin/sysctl -p
when i try to disable ipv4
in /etc/sysctl.conf
and restart with
net.ipv4.conf.all.disable_ipv4 = 1
net.ipv4.conf.default.disable_ipv4 = 1
i get error message
sysctl: cannot stat ....
there is no disable_ipv4
in /proc/sys/net/ipv4/conf/all/
How can i disable ipv4
like i do with disable ipv6
with the /etc/sysctl.conf
file ?