Your IP: 34.239.154.240 • ISP: Amazon.com, Inc. • Your Status: Unprotected

How to disable IPv6 on a Linux device?

Last Updated: October 7, 2021

IPv6 or Internet Protocol Version 6 was designed to take the place of IPv4. However, it comes with existing IP options for customizing your VPN. Therefore, disabling IPv6 might be a good first step toward a solid setup with better speed. To effectively disable IPv6 on Linux, follow the instructions below.

  1. Using the Ctrl+Alt+T keyboard shortcut, open the Terminal.
  2. Enter this sudo nano /etc/sysctl.conf command in the Terminal window.
  3. The above command will open a conf file in the Terminal.
  4. Copy and paste the below lines at the bottom of the conf file.
ipv6.conf.all.disable_ipv6 = 1
ipv6.conf.default.disable_ipv6 = 1
ipv6.conf.lo.disable_ipv6 = 1
ipv6.conf.tun0.disable_ipv6 = 1
  1. After that, press Ctrl+O and Ctrl+X to save the changes.
  2. Use sudo sysctl -p in the conf file to apply the modifications.
  3. Enter this sudo cat /proc/sys/net/ipv6/conf/all/disable_ipv6 command in the Terminal to check the status of IPv6.
  4. If you get a one as a response, you have disabled IPv6 on your Linux device.
  5. Once you are done with the steps, you’ve successfully disabled IPv6 on your Windows computer.

In case the troubleshooting tips fail, simply take a screenshot and submit your concerns to our customer support team via live chat or email to have your problem resolved sooner!