< 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


  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


    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


  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!


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

If something's not going according to the tutorial or you have further questions, feel free to contact our Customer Success Sharks anytime - they will help you out!

Was this article helpful?