TorGuard Account Area

Add to Favourites    Print this Article

Disable IPv6 in Linux/Ubuntu

Below is the guide how to disable IPv6 Linux/Ubuntu:

1) Open Terminal

2) Enter gksudo gedit /etc/sysctl.conf and open the configuration file and add the following lines at the end

net.ipv6.conf.all.disable_ipv6 = 1

net.ipv6.conf.default.disable_ipv6 = 1

net.ipv6.conf.lo.disable_ipv6 = 1

3) After that run $ cat /proc/sys/net/ipv6/conf/all/disable_ipv6

If it reports ‘1′ means you have disabled IPV6. If it reports ‘0‘ then please follow Step 4 and Step 5.  

4) Type command sudo sysctl -p you will see this in terminal.

net.ipv6.conf.all.disable_ipv6 = 1

net.ipv6.conf.default.disable_ipv6 = 1

net.ipv6.conf.lo.disable_ipv6 = 1

5) Repeat above “Step 3” and it will now report 1.