INTERNET , NETWORKING

IPv6 Simply Explained

    7.2 minute read  

IPv6 is the current version of the internet. We simply ran out of space on the old IPv4 system.

The technology is actually really good, but even after all these years, adoption has still not completed across the internet.

I'm not entirely sure why this is, but, there is a surprising learning curve to use IPv6 and not-so-great support on consumer/retail grade routers.

It's rather similar to IPv4 but still seems shrouded in mystery and incantations.

TODOs

As it seems with the IPv6 implementation in general, there's a lot of "todo" floating around. This doc has them too, I'll update this as a living document as I can.

Update 2026-06-10: I recently came across an article from Christian at Larvitz Blog that beautifully covers the IPv6 basics. I've updated this article to reflect some of the parts I've learnt from there.

IPv6 in the UK

In the UK, it seems like IPv6 is not yet the common standard. No mobile ISPs officially support it, but they will sometimes silently provide IPv6 only addresses to phones sporadically.

TODO: Update this, Christain says some do now?

Github does not support IPv6 (last time I checked) and Docker does not support it by default internally for container networking as of the docker.io package on Debian 12.

The rest of the world seems to have adopted IPv6 a little more, especially in developing countries and areas with rapid growth for online devices.

IPv4 to IPv6 Crash Course

Coming from IPv4 Basics

Here's an IPv4 practical recap:

127.0.0.1 is this computer, or loopback address often named "localhost".

192.168.1.1 is likely your home router address. It controls access to the internet for all your devices on Wifi and Ethernet.

192.168.1.42 (or what ever other number than "42") could be your devices internal network IP address, or another device on the internal network.

Your router likely manages local network device IP's using DHCP and advertises itself as the DNS resolver, which it resolves from an upstream DNS resolver provided by your ISP (Internet Service Provider).

It also handles port forwarding through NAT, routing traffic across your network and the firewall which prevents unauthorized traffic following in or out of the network.

IPv4 Port Forwarding

A web service running on your local computer could be served at :8080, accessible only from that local computer.

However, you could then forwarded the port on your router's public IPv4 address at :80, to allow traffic from the internet onto this computer's local IPv4 address e.g. 192.168.1.43:8080.

Note: assuming your service is bound to all assigned IP's e.g. 0.0.0.0 rather than 127.0.0.1 specifically.

But... If you're behind a CGNAT (i.e. a shared IPv4 address across multiple ISP customers), this will prevent port forwarding from the public IP as your router does not have access to it.

Unless.. you have Universal Plug and Play (UPnP) or have services that use trickery and incantations to attempt "NAT traversal".

Your router's NAT, routing and firewall are often misunderstood to be the same thing on small IPv4 networks...

...But, they're not!

IPv6 Usage Basics

IPv6 addresses are essentially IPv4 addresses with more digits (numbers and letters). They use colons : instead of dots ..

You may be used to entering in an IPv4 address directly into a web browser like "https://1.1.1.1/", thus bypassing the DNS system, and going directly to that service on that public IP.

With IPv6 though, you'll need to "escape" the IPv6 address with square brackets for it to work. e.g. "http://[2606:4700:4700::1111]/" (this IPv6 http link does not actually work as Cloudflare don't serve their website over IPv6 address like they do with the well-known IPv4 address).

TODO: Get a better raw IPv6 website example!

IPv6 has a bunch of extra technology under-the-hood that makes the internet better, but here are a few other "gotcha's" that may be helpful to know about.

Empty, or zero, parts of an IPv6 address, in a segment between the colons like ":0000:" 2606:4700:4700:0000:1111 can be short-hand written with nothing between the colons, like this 2606:4700:4700::1111].

You'll often see this when referring to the "root" of your network which is usually your router, and DNS server. Although this is not actually a requirement. e.g. Device IP 2a0b:c230:35:204c::7a6 -> Likely router IP 2a0b:c230:35:204c::1.

Several IPv6 addresses are actually assigned to your device instead of just one like in IPv4. One normal public IP which you'll likely use for public IPv6 services (incoming traffic), and usually also several other public "outgoing traffic" addresses to limit tracking your activity by your unique IP on the internet.

There's also "link-local" addresses... This is essentially how devices on the network reach eachother under-the-hood as an IPv6 network can operate without a router.

TODO: Explain and clarify the IPv6 prefixes and what addresses are usually assigned.

IPv4 inside of IPv6

IPv6 is actually such a large space that all of IPv4 addresses can fit inside a small chunk of it.

You'd be right to think that if you're on an IPv4, network you cannot talk to a device with an IPv6 address (without some sort of terminating proxy) but IPv6 actually has a copy of all IPv4 addresses inside it under a special IPv6 prefix, and your ISP should allow you to talk to IPv4 addresses via IPv6.

This is done via NAT64 plus DNS64. DNS64 is a domain-name resolver trick; when a client asks for a name that only has an IPv4 address, the resolver synthesizes a fake IPv6 address by embedding the IPv4 address into a special IPv6 prefix 64:ff9b::/96. Then, when the IPv6 client connects to that fake IPv6 address, the packet lands on a NAT64 gateway run by your ISP, and the gateway translates it into a real IPv4 connection.

This isn't built into the IPv6 protocol itself, you need a NAT64 gateway. ISPs and mobile carriers run them at scale, but at home you can run "Jool" a NAT64 server.

TODO: how to discover and use a NAT64 on your network provided by ISP?

IPv6 Assignment and Forgetting About "Port Forwarding"

The key thing to note with IPv6 is that we no longer need a "NAT", but this is actually separate from a routers firewall and traffic routing - which we still need.

If your router and ISP are set up well, your router will likely be assigned a public IPv6 address just like a public IPv4 address, but it also comes with "the rights" to a bunch more than just that one public IPv6 address.

This is denoted by a "/56" (or smaller group, represented by a larger number) at the end of the IPv6 address settings in your router ISP config.

This allows your router to assign many "public" IPv6 address to all your devices, just like your ISP assigned the router an IPv4 address beforehand.

So no more port forwarding required. You don't use your routers IP with a predefined port, just the long-lived public IPv6 assigned of your device directly (with whatever port number, but this is the same on the internal network and outside).

You may be thinking.. "This sounds less secure! Isn't the whole point of NAT and port forwarding to control access of all internal network devices?"

Well... technical no, that's the job of the router's firewall and routing tables which are still used in an IPv6 environment - just no more external to internal port mappings know as NAT.

i.e. Although all your internal devices now have their own public IPv6 address, to actually send data you need to "allow" or set up a route on the routers' firewall to allow traffic on that devices public IPv6 address and port though the router to the destination - but technically it's not forwarding traffic from one IP (the public) to another (internal) any more.

Internal IPv6ing

A IPv6 the router can assign IP addresses with DHCPv6 but devices can also setup their own IPv6 address(s) without the router deciding using SLAAC. Note that Android refuses to support DHCPv6 at all, and so even if your ISP needs it to get your connection up, you'll likely want to use SLAAC internally.

How do advertise a DNS server without DHCP? Many consumer routers send an RDNSS option over the network pointing at themselves without ever exposing it in the UI. A good IPv6 router will let oyu set this like a DHCPv4 DNS setting.

IPv6 from your ISP

If you're lucky enough to have an ISP that "supports" IPv6, such as Hyperoptic in London, don't expect it to work well or reliably.

For me in 2025. HyperOptic's IPv6 DNS resolver would often not work causing connection issues when using IPv6-only, when browsing using their stock/default router, and the routers Web UI did not support IPv6 configuration, so you could not change the IPv6 DNS IP either!

To IPv6 working on a different router using Hyperoptic, I need to clone the default routers MAC address, and configure some mystical incantation on my own router... and then... hope.

TODO: Specify the Hyperoptic configs I used.

Sometimes Hyperoptic decides I've met the requirements, and after a week or two of IPv4-only, I'll be granted an IPv6 address space. I've only seen it being taken away during a reboot, but never during in active connection.

There are several ways of distributing IPv6 unlike IPv4, which has has the most common DHCP or static methods. You have to know the right config for your specific ISPs setup.

Don't expect UK ISP's support staff to support or even acknowledge IPv6 on their network, even if it is supported. A lot of router software does not treat IPv6 well, it's often a janky add-on that often lacks features needed to make it work in some instances with little to no configuration via a web UI.

Even Ubiquity Unifi (the "prosumer" range of networking equipment) does not support IPv6 perfectly on Unifi Express, or the Unifi Gateway. It's often treated as a second class citizen in the UI when it comes to reporting and features like on-router VPN servers or clients etc.

Hosting on IPv6

DNS... You may already know that when you set an IPv4 address on a domain name via its name server records you set an "A" record.

When you set an IPv6 address you use an "AAAA" record. They can point to the same server or a different server.

Some hosting providers even provide a terminating proxy for common traffic like HTTPS to allow older IPv4 networks to connect to new and cheaper IPv6 only servers. But this is a protocol level proxy rather a real direct network connection.

You can sometimes use a VPN service provider like Mullvad or CDN's like Cloudflare to "fake" having an IPv6 connection if you need to confirm that a remote connection is online via IPv6 when you only have IPv4-only from your ISP.

Docker (docker.io on Debian 12) does not support IPv6 internally by default, containers get an IPv4 internal address.

The internal Docker network will use IPv4 by default, and Docker runs an external IPv6 to internal IPv4 user-land proxy behind the curtain. This means external connections into Docker containers can be via IPv6 just like IPv4 (assuming the host supports it). The one catch is that your containers can't reach out to IPv6 networks from inside the container and all external IPv6 connections look like a normal internal IPv4 address on traffic logs.

So far, I've not managed to get IPv6 working reliability inside Docker networks on Debian 12 using Debian's packaged Docker Engine.

TODO: Understand and test Christains Docker IPv6 notes to find a solution for this.

Self-hosting under IPv4 CGNAT

A lot of home or even business ISP's will provide a shared IPv4 address to servers or residential connections called CGNAT (Carrier Grade Network Access Translation) which essentially disables port forwarding, however they often charge extra for a dedicated IPv4 address which you could port-forward.

Having a static IPv4 address is much easier for setting up public services but comes with the downside of all your outgoing traffic being trackable under one public IPv4 address that never changes.

I get around this downside by using a GL-iNet Brume 3 security gateway, which is like a mini-router that sits in-front of your usual router to allow VPN cascading. You can VPN into your networking from the outside using the static IPv4, but cascade all outgoing traffic though a privacy VPN like Mullvad (both internal network devices and those on the VPN).

In the past I've tried Zerotier and Tailscale but both have their downsides. Tailscale has sketchy authentication and identity management and overreaches with a rootfull ssh server but into the client and Zerotier can be janky on android.

But, IPv6-only could be the solution if you can't get a static IPv4! Even if you have a shared IPv4 address it's unlikely that you'll have a shared IPv6 address, and so should be able to open ports as needed for your IPv6 only devices.


Comments & Questions

to send in your thoughts.

Comments may be featured here unless you say otherwise. You can encrypt emails with PGP too, learn more about my email replies here.

PGP: 9ba2c5570aec2933970053e7967775cb1020ef23

Recent posts