< Back

How to disable IPv6 on a Linux device?

At the moment Surfshark does not support IPv6, therefore sometimes users can experience issues with connection or leaks that are related specifically to IPv6.

If you are certain that you need to disable IPv6, here are a few simple steps on how to do it.

  1. Open the Terminal (Ctrl+Alt+T) and enter this command: sudo nano /etc/sysctl.conf

    image4.png


  2. Scroll down to the bottom of the window and paste these lines:

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

    image1.png

    Save the changes by pressing Ctrl+O and Ctrl+X after that.


  3. To apply the changes, enter this command to the Terminal: sudo sysctl -p

    image3.png


  4. Finally, to check if IPv6 was disabled successfully, enter this line to the Terminal:

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

    If you can see 1 after that -  success!


    image2.png

And there you have it. IPv6 was disabled and you can continue surfing the web with Surfshark!

Was this article helpful?