Permanently Disable IPv6 on Ubuntu Server June 6, 2026 - by mahmood sudo nano /etc/sysctl.conf # Disable IPv6 globally net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.default.disable_ipv6 = 1 net.ipv6.conf.lo.disable_ipv6 = 1 sudo sysctl -p Related