IPv6 cloudflared (zero trust tunnels)

Hi, I'm trying to run cloudflared on a IPv6 only machine, but am having some troubles. I used the --edge-ip-version 6 param. This is within docker.
cloudflared-1 | 2025-01-28T10:47:24Z ERR Failed to dial a quic connection error="failed to dial to edge with quic: INTERNAL_ERROR (local): write udp [::]:43281->[2606:4700:a0::4]:7844: sendmsg: network is unreachable" connIndex=0 event=0 ip=2606:4700:a0::4
cloudflared-1 | 2025-01-28T10:47:24Z INF Retrying connection in up to 1m4s connIndex=0 event=0 ip=2606:4700:a0::4
cloudflared-1 | 2025-01-28T10:47:24Z ERR Failed to dial a quic connection error="failed to dial to edge with quic: INTERNAL_ERROR (local): write udp [::]:43281->[2606:4700:a0::4]:7844: sendmsg: network is unreachable" connIndex=0 event=0 ip=2606:4700:a0::4
cloudflared-1 | 2025-01-28T10:47:24Z INF Retrying connection in up to 1m4s connIndex=0 event=0 ip=2606:4700:a0::4
I have changed my /etc/docker/daemon.json to:
{
"ipv6": true,
"fixed-cidr-v6": "2001:db8:1::/64"
}
{
"ipv6": true,
"fixed-cidr-v6": "2001:db8:1::/64"
}
1 Reply
Arthur
ArthurOP3d ago
(from the host i can reach 2001:4860:4860::8888) Okeyy, found the issue; had nothing to do with cloudflared itself. If anyone has the same issue, you can resolve this by changing your docker network to this:
networks:
app_network:
driver: bridge
enable_ipv6: true
ipam:
driver: default
config:
- subnet: "fd00:1234:5678::/64"
networks:
app_network:
driver: bridge
enable_ipv6: true
ipam:
driver: default
config:
- subnet: "fd00:1234:5678::/64"

Did you find this page helpful?