In this guide, we are going to see how to disable the IPV6 Internet Protocol under Ubuntu 16.04 LTS and Linux Mint 18 "Sarah". IPv6 is a recent version of the Internet Protocol that is intended to replace IPv4.

Some users reported that IPv6 is merely a surveillance tool terrible for your own privacy. In this guide, you can see how to permanently disable it.

Disabling IPV6 Internet Protocol

You can check whether ipv6 is enabled or not using this command:

cat /proc/sys/net/ipv6/conf/all/disable_ipv6

0 --> Enabled
1 --> Disabled

If enabled, edit this file using this command:

sudo gedit /etc/sysctl.conf

Add these lines at the end:

# Disable IPv6 
net.ipv6.conf.all.disable_ipv6 = 1 
net.ipv6.conf.default.disable_ipv6 = 1 
net.ipv6.conf.lo.disable_ipv6 = 1

Save your file and exit. Run this command so that changes take effect:

 sudo sysctl -p

You can check again if ipv6 is disabled using this command:

 cat /proc/sys/net/ipv6/conf/all/disable_ipv6

You should get 1 as output.

Post a Comment