HomeHow ToHow to Disable IPv6 Permanently on Raspberry Pi

How to Disable IPv6 Permanently on Raspberry Pi

On paper, IPv6 is a great thing because there are 340 undecillion addresses available, and it can be allocated uniquely to every device connected to the internet.

But along with that, it comes with many issues. One thing that we found during our testing is that all the services that are running on your device are directly exposed to the internet if you are not using any firewall that monitors inbound connection.

The best thing we could do was turn off IPv6 network-wide using the router settings. But on our Raspberry Pi, we found one other issue. Since we are using docker to run multiple services, it has IPv6 on by default. Combining that with the Cloudflare Tunnel that we use to access the device creates a lot of conflict with IPv6, and sometimes, we cannot access the Raspberry Pi remotely even if it is connected to the internet.

Also read: How to Automatically Spin Down or Sleep HDD on Raspberry Pi

To us, disabling IPv6 was the only feasible way to go, and this is valid for most of the users.

Steps to Disable IPv6 Permanently on Raspberry Pi

Disabling IPv6 system-wide on Raspberry Pi is quite simple, using a few steps.

  1. Check if the IPv6 address is showing for any available network interfaces using the command below
Ifconfig With Ipv6
  1. Type the following to edit /boot/cmdline.txt
sudo nano /boot/cmdline.txt
  1. Add the following at the end of the file
Sudo Nano /Boot/Cmdline.txt
  1. Save the file and reboot
sudo reboot
Sudo Reboot
  1. Check again to see if the IPv6 is disabled for all network interfaces.
Ifconfig Without Ipv6

Also read: How to Setup Watchdog on Raspberry Pi

So that was all. There are various methods that you will find online, but this is the simplest and the most effective one.

“As an Amazon Associate & Affiliate Partners of several other brands we earn from qualifying purchases.” [Read More Here]

Leave a Comment

Please enter your comment!
Please enter your name here

By submitting the above comment form, you agree to our Privacy Policy and agree with the storage and handling of your data by this website.

Stay Connected

Subscribe to our Newsletter

Stay updated with all the latest news, offers and special announcements.

By signing up, you agree to our Privacy Policy and agree with the storage and handling of your data by this website.

Latest Posts

How to Monitor the Raspberry Pi’s Temperature

Raspberry Pi has gotten very powerful over the years, especially with the launch of Raspberry Pi 5. Putting things in perspective, currently, we are...

How to Uninstall a Package on Ubuntu (GUI & Terminal)

Ubuntu is one of the widely used Linux distributions. Many people, including me, started my Linux journey with it. It is one of the...

Understanding YouTube Monetization | What Do You Need to Know

Do you want your captivating content on YouTube to turn into real income? Then look no further! We have just the guide here for...

What Are The Advantages & Disadvantages Of Android TV

In today's technological age, Android TVs are all the rage. Based on the Android ecosystem, Android TVs offer a range of features and functionalities....

How to Setup Watchdog on Raspberry Pi

If you are someone who has set always-on Raspberry Pi at a remote location, then you might relate to the problems mentioned below: Raspberry Pi...

All Time Favorites

11 Best WiFi Hacking Apps for Android (2023)

Today, almost anywhere we go, we are surrounded by tons of WiFi Networks, whether at our homes, hotels, workplaces, or even public places like...

17 Best Illegal Android Apps Not on Play Store (2023)

Google Play Store has the most extensive collection of apps for Android. Almost everyone downloads apps from the Play Store. However, certain genuinely excellent...

15 Best Game Hacking Apps for Android (2023)

Are you a mobile gamer? If you are, then you've come to the right place. This post will tell you about the Best Game...

How to Download Torrent Files with IDM (Torrent to IDM)

Hey guys, you may all have heard about different ways to download torrent files. And some of you may also have downloaded them using...

11 Best Download Managers for Windows

The Internet is a vast resource of a lot of things which includes music, videos, movies and a lot of other things. The ability...