How do I deactivate IPv6 under Linux?

Since CyberGhost solely routes IPv4 traffic, Linux users with activated IPv6 need to deactivate it to avoid data leaks: 

[Debian (Squeeze)]   [Ubuntu (10.05/12.04 LTS)]   [Red Hat Linux]   [Red Hat Linux 6 und < 5.4]

 

Debian (Squeeze)

Open a terminal and enter: 

echo net.ipv6.conf.all.disable_ipv6=1 > /etc/sysctl.d/disableipv6.conf

Now open the file '/etc/modprobe.d/ipv6.conf' and adapt the following lines:

# alias net-pf-10 ipv6
alias net-pf-10 off
alias ipv6 off

Restart your system, e. g. by typing 'reboot' in your terminal window.

 

Ubuntu (10.04/12.04 LTS)

Under Ubuntu, IPv6 is implemented directly into the kernel and can be deactivated temporarily by typing the following line in an open terminal window:

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

If you prefer a permanent solution, create a file called '01-disable-ipv6.conf' inside the folder 'etc/sysctl.d' ('etc/sysctl.d/01-disable-ipv6.conf') and add these lines:

net.ipv6.conf.all.disable_ipv6 = 1

Restart your system, e. g. by typing 'reboot' in your terminal window.

 

Red Hat Linux

Open the file '/etc/modprobe.conf' and add the following lines (resp. adapt existing ones): 

alias net-pf-10 off
alias ipv6 off

Now open the file '/etc/sysconfig/network' and add this line:

NETWORKING_IPV6=off

Restart your system.

 

Red Hat Linux 6 and < 5.4

Create the file '/etc/modprobe.conf' and add this line:

options ipv6 disable=1

Now open the file '/etc/sysconfig/network' and add this line:

NETWORKING_IPV6="no"

Restart your system.

 

Have more questions? Submit a request

Comments

0 Comments
Article is closed for comments.
Powered by Zendesk