Premium VPN Security and Unrestricted Access from Just $1.99/month Get the VPN Deal Now

Buy Now
  • Why VPN?
    • What is VPN?
    • VPN for Security
    • VPN for Wi-Fi
    • VPN for Unblocking Websites
    • VPN for Streaming
  • Features
  • Apps
    VPN Apps
    • Windows
    • MacOS
    • Linux
    • iOS
    • Android
    • FireTV
    Browser extensions
    • Chrome
    • Firefox
    • Edge
    Tools
    • What is my IP?
    • DNS Leak Test
  • Servers
  • Blog
  • Support
Buy NowLogin
OysterVPN
  • Why VPN?
    • What is VPN?
    • VPN for Security
    • VPN for Wi-Fi
    • VPN for Unblocking Websites
    • VPN for Streaming
  • Features
  • Apps
    • VPN Apps
      • Windows
      • MacOS
      • Linux
      • iOS
      • Android
    • Browser extensions
      • Chrome
      • Firefox
      • Edge
    • Tools
      • What is my IP?
      • DNS Leak Test
  • Servers
  • Blog
  • Support
Sign In
  • Home
  • Support
  • Connectivity Issues
  • How to disable IPv6 on a Linux device?

How to disable IPv6 on a Linux device?

  • AccountsAccounts
  • ApplicationsApplications
  • BillingBilling
  • Connectivity IssuesConnectivity Issues
  • Manual SetupManual Setup
  • Other GuidesOther Guides
  • Routers TutorialsRouters Tutorials
  • Streaming & DNS IssuesStreaming & DNS Issues
  • FAQsFAQs
  • Server ListServer List

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.
1
2
3
4
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 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 Linux.

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!

Download OysterVPN On All Platforms
  • Windows
  • macOS
  • Linux
  • Android
  • iOS
  • Chrome
  • Firefox
  • Edge
  • Android TV
  • Other
PRODUCTS
  • VPN for Android
  • VPN for iPhone
  • VPN for Windows
  • VPN for Mac
  • VPN for Linux
  • VPN for Routers
  • VPN for Chrome
  • VPN for Firefox
  • VPN for Kodi
  • VPN for Travel
  • VPN for Gaming
LEARN MORE
  • What is a VPN?
  • VPN for Streaming
  • VPN for Security
  • VPN for Unblocking Websites
  • Plans & Pricing
  • Money-Back Guarantee
TOOLS
  • What is My IP?
  • DNS Leak Test
  • IPv6 Leak Test
  • Password Generator
FEATURES
  • VPN Features
  • VPN Servers
PROGRAMS
  • Affiliate Program
  • YouTube Creators
ABOUT
  • Terms of Services
  • Privacy Policy
  • Refund Policy
  • Affiliate Policy
  • Sitemap
Help
  • Support Center
  • FAQs
Available on
  • Google Play
  • Apple Store

© 2026 OysterVPN. All rights reserved.