Log inSign up

Working with the IPv6 address on your server

Every BitcoinVPS server comes with one dedicated IPv4 address and IPv6. Run ip -6 addr show scope global and ip -6 route show default to see the address and route, then test with ping -6 and curl -6. Make sure your firewall covers IPv6 too, and if the address is missing inside the operating system, open a support ticket instead of guessing the settings.

Topic: Networking and diagnostics · Tested on: Ubuntu 24.04 and 22.04, Debian 12 and 13, Rocky Linux 9, AlmaLinux 9 · Updated 2026-12-03

How do you check that IPv6 is configured?

Two commands answer the question: one shows the global address on the network interface, the other shows the default route that carries traffic out. Both need to be present for IPv6 to work.

ip -6 addr show scope global
ip -6 route show default

The first output contains a line such as inet6 2001:db8:4f2a::24/... scope global on your main interface (often eth0, ens3 or enp1s0). Addresses starting with fe80: are link local and exist on every interface; they do not count as public connectivity. The second command should print one line beginning with default via, followed by a gateway and the interface name. A short summary of every interface is available with ip -br -6 addr, and the ip command guide explains the rest of the output.

Compare the address you see with the one listed for your instance as described in server IP addresses.

How do you test outgoing IPv6 reachability?

Ping a well known dual stack host over IPv6, then fetch a page that echoes your address back. If both work, outbound IPv6 is healthy:

ping -6 -c 4 deb.debian.org
curl -6 -s https://ifconfig.co
curl -4 -s https://ifconfig.co

The curl -6 line should print your server IPv6 address and the curl -4 line your IPv4 address. A "Network is unreachable" error means there is no default IPv6 route; a timeout usually means something in between drops the traffic, which an mtr report with mtr -6 will help locate. Name resolution is a separate matter: dig AAAA example.net +short (see DNS lookups with dig) confirms that a name actually has an IPv6 record.

How do you test incoming IPv6 connections?

From a different machine with IPv6, connect to a port your server listens on. SSH is the easiest choice because it is already running:

ssh -6 deploy@2001:db8:4f2a::24
nc -6 -zv 2001:db8:4f2a::24 22

On the server, ss -tlnp must show the service bound to [::]:22 or *:22, not only 0.0.0.0:22. A daemon bound to an IPv4 address only cannot answer IPv6 visitors, even when the firewall is open. Web servers are a common case: an nginx listen 80; line covers IPv4 only, and you need listen [::]:80; as well. Your home network may lack IPv6; in that case test from another server or use an online port checker that supports IPv6.

To publish a website over IPv6, add an AAAA record next to the A record, as shown in DNS records.

How do firewall rules cover IPv6?

Treat IPv6 as a second front door: if your firewall only filters IPv4, services may be wide open over IPv6. The good news is that the standard tools on our images handle both families with one rule when configured correctly.

On Ubuntu and Debian with ufw, confirm IPv6 support is on, then add rules as usual. Each ufw allow creates a matching (v6) rule:

grep IPV6 /etc/default/ufw
sudo ufw allow 443/tcp
sudo ufw status verbose

The grep should print IPV6=yes. On Rocky Linux and AlmaLinux, firewalld zones apply to both families automatically:

sudo firewall-cmd --permanent --add-service=https
sudo firewall-cmd --reload
sudo firewall-cmd --list-all

With raw nftables, write rules in a table of family inet, which matches IPv4 and IPv6 together. Whatever tool you use, keep ICMPv6 allowed: neighbor discovery and path MTU discovery depend on it, and blocking it breaks IPv6 in confusing ways. ufw and firewalld permit the needed ICMPv6 types by default. The firewall rules tutorial has a complete dual stack nftables example.

How do you make apt or dnf prefer IPv4?

Occasionally a package mirror or a third party repository has a broken IPv6 path, and downloads hang while IPv4 would work instantly. You can force the package manager onto IPv4 without touching the rest of the system.

For apt on Ubuntu and Debian, add one small configuration file:

echo 'Acquire::ForceIPv4 "true";' | sudo tee /etc/apt/apt.conf.d/99force-ipv4
sudo apt update

For dnf on Rocky Linux and AlmaLinux, add ip_resolve=4 under the [main] section of /etc/dnf/dnf.conf:

echo 'ip_resolve=4' | sudo tee -a /etc/dnf/dnf.conf
sudo dnf makecache

For a single run, sudo apt -o Acquire::ForceIPv4=true update does the same without a file. Remove the setting once the remote side is fixed; IPv6 is the long term direction and most mirrors serve it well.

How do you prefer IPv4 for the whole system?

When many programs suffer from the same slow IPv6 destination, change the address selection policy in /etc/gai.conf. This keeps IPv6 enabled but tells the resolver library to try IPv4 first when a name has both kinds of records:

echo 'precedence ::ffff:0:0/96  100' | sudo tee -a /etc/gai.conf
getent ahosts deb.debian.org | head -n 3

The first lines of the getent output now show IPv4 addresses. This works for programs that use the system resolver (glibc), which covers apt, curl, wget, git and most languages. Tools with their own resolver ignore it. Avoid disabling IPv6 completely through sysctl; it breaks software that expects the loopback ::1 to exist and hides the real problem.

What if IPv6 is missing inside the operating system?

Open a support ticket. If ip -6 addr show scope global prints nothing, or there is no default route, the address was not applied to the system and our team can check the assignment for your server and tell you the exact values to use. Do not invent an address, gateway or prefix length; wrong values can break connectivity or clash with other servers.

Before you write, collect a few facts so the ticket can be answered quickly:

ip -br addr
ip -6 route
sysctl net.ipv6.conf.all.disable_ipv6
ls /etc/netplan/ 2>/dev/null; nmcli -t device 2>/dev/null

A value of 1 from the sysctl means IPv6 was turned off on purpose, perhaps by a hardening script; set it back to 0 in the file that set it under /etc/sysctl.d/ and reboot. Include the output above, your server label and the time you noticed the problem when you open the ticket. Reinstalling an image is another way back to the stock network setup, but it erases the disk.

How do you keep IPv6 working after changes?

Most IPv6 breakage on a running server comes from three changes: a network configuration file rewritten by hand, a hardening guide that disables IPv6, or a firewall that drops ICMPv6. After editing any of these, repeat the two checks from the first section plus curl -6 -s https://ifconfig.co. On Ubuntu, test netplan edits with sudo netplan try, which rolls the change back automatically if you lose the connection. On Rocky and Alma, NetworkManager stores the settings; inspect them with nmcli connection show before changing anything. Keep an IPv4 SSH session open while you work, so a mistake on one family never locks you out entirely.

Questions about IPv6 on your server

Does every plan include IPv6?

Yes. Every BitcoinVPS server includes one dedicated IPv4 address plus IPv6.

Can I get additional IPv4 addresses instead?

No. Each server has one dedicated IPv4 address. Running several sites on that one address works fine with name based virtual hosts and SNI for HTTPS.

Why does my website not load over IPv6 even though ping works?

Check three things: an AAAA record that points at the server, a web server listening on [::], and a firewall rule that allows the port for IPv6. All three must be in place.

How do I set reverse DNS for my IPv6 address?

Reverse DNS (PTR) is not a console setting. Open a support ticket with the address and the hostname you want, and make sure the hostname already resolves forward to that address.

Is it safe to leave IPv6 enabled?

Yes, as long as the firewall covers it. Run sudo ufw status verbose or sudo firewall-cmd --list-all and confirm the same ports are allowed for both families.