Files
notes/divers/disable_IPV6.md
2026-03-12 22:01:38 +01:00

297 B

Create a sysctl config file:

tee /etc/sysctl.d/99-disable-ipv6.conf >/dev/null <<'EOF'
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
EOF

Apply the settings:

sudo sysctl --system

Verify:

cat /proc/sys/net/ipv6/conf/all/disable_ipv6