LowEndBox - Cheap VPS, Hosting and Dedicated Server Deals

How to Disable IPv6 on Ubuntu

Tags: , , , , , Date/Time: August 6, 2020 @ 5:54 am, by Jon Biloh

how to disable ipv6 on your ubuntu

This article was contributed by Dustin B. Cisneros of RackNerd. If you are considering a VPS hosting solution, take a look at RackNerd. RackNerd is an established brand, reputable reputation, and is a fan favorite here. Check their latest offer here.

Are you looking to disable IPv6 on your Ubuntu-based server? Sometimes, it might make sense to do so if you don’t have a need for IPv6 yet, or if you are looking to run applications on your server such as Cloudron which does not support IPv6 yet.

This tutorial will guide you with the exact commands/steps you need to run on your server in order to disable IPv6 connectivity on your Ubuntu Server, all in under one minute!

Log into your Ubuntu server via console or SSH as root (terminal)

Open /etc/sysctl.conf using “nano” or “vi” editor.

nano /etc/sysctl.conf

Scroll all the way down, and add the following lines at the end:

net.ipv6.conf.all.disable_ipv6 = 1

net.ipv6.conf.default.disable_ipv6 = 1

net.ipv6.conf.lo.disable_ipv6 = 1

When logged in as root, run the below command to apply the changes:

sysctl -p

To verify IPv6 is now disabled on your server, run:

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

The result should return ‘1’ – which indicates that IPv6 is disabled.

Need any help? Running into any problems when trying to disable IPv6 on your server? Please leave your feedback in the comments section below!

If you are new to the community – be sure to bookmark LowEndBox.com for more server-related tutorials and hosting deals.

I'm Jon Biloh and I own LowEndBox and LowEndTalk. I've spent my nearly 20 year career in IT building companies and now I'm excited to focus on building and enhancing the community at LowEndBox and LowEndTalk.

5 Comments

  1. sebastian:

    Do! Not! Disable! IPv6!

    IPv6 is part of the Internet.

    Applications and people not supporting IPv6 are the problem.

    August 6, 2020 @ 12:36 pm | Reply
    • Yes, and when you do not know properly config all then it is very useful tool for incoming your emails to spam folders

      August 14, 2020 @ 9:31 am | Reply
    • So knowing how disable it may be useful for many poeple. Thanks for useful post.

      August 14, 2020 @ 9:34 am | Reply
  2. [img]https://imgur.com/gallery/jjdqSsb[/img]

    August 7, 2020 @ 12:50 am | Reply

Leave a Reply

Some notes on commenting on LowEndBox:

  • Do not use LowEndBox for support issues. Go to your hosting provider and issue a ticket there. Coming here saying "my VPS is down, what do I do?!" will only have your comments removed.
  • Akismet is used for spam detection. Some comments may be held temporarily for manual approval.
  • Use <pre>...</pre> to quote the output from your terminal/console, or consider using a pastebin service.

Your email address will not be published. Required fields are marked *