Skip to content

Instantly share code, notes, and snippets.

@jonaskgandersson
Created September 12, 2023 13:07
Show Gist options
  • Select an option

  • Save jonaskgandersson/933136d79a096730ba44bb9f11e39e80 to your computer and use it in GitHub Desktop.

Select an option

Save jonaskgandersson/933136d79a096730ba44bb9f11e39e80 to your computer and use it in GitHub Desktop.
Linux network

Disable IPV6

Run the following to disable IPV6, reverts at reboot

echo 1 > /proc/sys/net/ipv6/conf/all/disable_ipv6

Add the following lines to /etc/sysctl.conf to make change permanent

net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1

Make active:

sysctl -p
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment