0%

Disable IPV6 on Ubuntu

Disable IPv6 in APT

1
echo 'Acquire::ForceIPv4 "true";' | sudo tee /etc/apt/apt.conf.d/99force-ipv4

Disable IPv6 on all

1
2
3
4
5
6
sudo tee -a /etc/sysctl.d/99-sysctl.conf > /dev/null << EOL
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
EOL
sudo sysctl -p

Reference