Skip to content

Instantly share code, notes, and snippets.

@juliojsb
Created March 23, 2016 21:24
Show Gist options
  • Save juliojsb/7519a65773e8a5448fed to your computer and use it in GitHub Desktop.
Save juliojsb/7519a65773e8a5448fed to your computer and use it in GitHub Desktop.
Disable IPv6 in Debian and derivative distros (like Ubuntu)
Put in /etc/sysctl.conf the following:
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
After that, reload config with:
sysctl -p
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment