Skip to content

Instantly share code, notes, and snippets.

@IvanCl4udio
Last active October 2, 2023 14:30
Show Gist options
  • Save IvanCl4udio/bdcc0bf332119bb51c0868021c5e2b86 to your computer and use it in GitHub Desktop.
Save IvanCl4udio/bdcc0bf332119bb51c0868021c5e2b86 to your computer and use it in GitHub Desktop.
Disable IPV6 on Debian

How disable IPV6 on Debian

# Edit file /etc/sysctl.conf and add the following 
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
net.ipv6.conf.tun0.disable_ipv6 = 1

# To re-enable remove them
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment