Insights

WireGuard and IPv6: Endpoints, routes and public access

Learn how WireGuard carries IPv6 over either IP version, how to check which route a destination uses, and when a service may be public.

Illustration of square conduit with round inner bore.
On this page

WireGuard supports Internet Protocol version 6 (IPv6) both outside and inside the encrypted tunnel. The peer endpoint can use IPv4 or IPv6, and the packets inside can use either version or both. An IPv4 connection to your peer can carry IPv6 traffic, and an IPv6 connection can carry IPv4 traffic.

In short:

  • Check the endpoint. It needs a usable path over its own IP version.
  • Check destination routes. Your device can send IPv6 through the tunnel or through another interface.
  • Check inbound access. A working tunnel doesn't make a public service private.

The endpoint and the tunnel can use different IP versions

WireGuard uses User Datagram Protocol (UDP) to send encrypted packets to a peer, the device at the other end of the tunnel. The outer packet uses the IP version needed to reach the peer's endpoint. The packet inside can use a different version.

For example, a laptop on an IPv4-only connection can reach its peer over IPv4. That same tunnel can carry IPv6 packets to a service on the peer's IPv6 tunnel address.

How to choose an endpoint and tunnel prefixes

1. Choose an endpoint your device can reach. An IPv6 endpoint needs a usable IPv6 path to the peer. If your device can reach the peer over IPv4 instead, the tunnel can still carry IPv6 traffic.

2. Choose your tunnel addresses and peer prefixes. A local tunnel address is the address your device uses inside the tunnel. AllowedIPs lists the prefixes, or blocks of addresses, assigned to each peer. Your operating system must first route a packet to the WireGuard interface. WireGuard then matches the destination to a peer's prefixes and checks that packets received from that peer have a source address in its list.

3. Use the documented connection path. The doxx.net app manages the connection on supported platforms. On Windows and Linux, you can use the standard WireGuard client with a per-device download from My Network → Tunnel List → Tunnel Settings → Configuration. Keep the downloaded file private.

The download includes IPv4 and IPv6, but that doesn't tell you which address family the peer endpoint uses. On an IPv6-only uplink, check that the endpoint is reachable over IPv6 separately from checking which IPv6 destinations are routed into the tunnel.

Why a working tunnel doesn't tell you where all traffic goes

A tunnel configured to carry only IPv4 doesn't capture IPv6 traffic. If your device has a usable IPv6 route outside WireGuard and policy allows it, traffic can go out directly. If that path is missing or blocked, the traffic may fail instead.

Use a device and peer you administer. Pick one IPv6 destination you want to reach through the tunnel. For a split tunnel, which carries only selected traffic, also pick an IPv6 destination that should stay outside it.

1. Record the current peer endpoint. Note whether the address in use is IPv4 or IPv6. That tells you which version carries the encrypted packets to the peer, not which traffic goes inside.

2. Check the effective route to each destination. While connected, use your operating system's route lookup to see which interface it selects for each address. Traffic sent through another interface doesn't go through WireGuard's AllowedIPs check. That's expected for a destination you meant to leave outside the tunnel, but it's a gap for one you meant to tunnel.

3. Check the peer match and test for a response. For a destination routed into WireGuard, check that its address matches an AllowedIPs prefix for the intended peer. Then make a request the destination should answer. If the route and peer match are right but a destination beyond the peer doesn't respond, check that traffic can reach it from the peer and come back.

The check passes when the endpoint uses the expected IP version and each sampled destination uses the intended interface. A route lookup shows the selected path, not whether the packet arrived. A successful response confirms a round trip for that flow at that time, not that other destinations take the same path.

How to tell if an IPv6 service is private

A successful connection from an authorized peer shows that the service works through the tunnel. It doesn't show who can reach the service from outside it. The AllowedIPs source check applies to packets received through WireGuard, not to traffic arriving through another interface.

Before treating a service as peer-only, check which addresses the service listens on and what the inbound firewall allows. A public IPv6 address doesn't make every service reachable, but a service listening on that address can accept internet connections if the inbound policy permits them.

Where doxx.net fits. You can reach IPv6-enabled services through the doxx.net private network while keeping IPv4 connectivity. If you download the app and connect a device, remember that the displayed IPv6 address is public, so an inbound allowance can permit connections from the internet.

Ask an AI assistant

Share this article

Private Everywhere

Stop giving the internet everything

Keep your browsing, messages, files, and agents private.