What is the name of the domain?
db-app.de
What is the error number?
500
What is the error message?
Jan 29 16:48:49 db cloudflared[749]: 2025-01-29T16:48:49Z ERR Unable to establish connection with Cloudflare edge error=“DialContext error: dial tcp 198.41.200.13:7844: connect: network is unreachable” connIndex=0 event=0 ip=198.41.200.13 Jan 29 16:48:49 db cloudflared[749]: 2025-01-29T16:48:49Z ERR Serve tunnel error error=“DialContext error: dial tcp 198.41.200.13:7844: connect: network is unreachable” connIndex=0 event=0 ip=198.41.200.13
What is the issue you’re encountering
cloudflared not able to connect on IPv6 only server
What steps have you taken to resolve the issue?
I used NAT64 (provided by nat64.net ) to be able to download and install the cloudflared deb
But, 2. cloudflared is not able to connect as it seems to try to connect only to IPv4 addresses.
What are the steps to reproduce the issue?
Install cloudflared tunnel on Ubuntu 24.04 with IPv6 only network settings. Use nat64.net provided nameservers for solving part 1 (download from GitHub)
Screenshot of the error
fritex
February 10, 2025, 2:42am
2
dietmar.scharf:
7844
Maybe your ISP doesn’t support QUIC at some point or restricted connections on ports?
Could you select other protocol e.g. http2
, using the command and retry again as follows on the instructions from below article?
How are you setting up this tunnel?
Could you please let us know the steps you have taken and what documentation you have followed this far?
Have this tunnel previously worked before? Or is this a first time implementation of it?
Given the log messages you have shared with us, it appears that there is a connection refused occurring.
Could you please confirm that the endpoints below are not getting blocked on your network where you are trying to run the tunnel?
dietmar.scharf:
IPv6 only
Below edit to the service might help:
opened 11:28AM - 08 Dec 22 UTC
closed 07:33PM - 19 Dec 22 UTC
Type: Bug
Priority: Normal
**Describe the bug**
When trying to install cloudflared with the command and to… ken given on the Zero Trust dashboard (When creating and managing the tunnel via the web interface), on a IPv6 only server, the service tries to connect to IPv4 addresses. From what I've tried so far, it's impossible to specify somehow (similar to the --edge-ip-version flag in the tunnel command) to use IPv6, or ideally detects that it's a IPv6 only server.
**To Reproduce**
Steps to reproduce the behavior:
1. Go to Zero Trust Dashboard (https://one.dash.cloudflare.com/)
2. Navigate to "Access" --> "Tunnels". Click "Create Tunnel". Give some name. Click "Save Tunnel". In "Choose your environment" select Debian. Copy command displayed underneath "If you don’t have cloudflared installed on your machine:".
3. Go to IPv6 only Debian machine. Paste command.
4. Now the command will hang indefinitely after "2022-12-08T11:09:18Z INF Using Systemd" is displayed in CLI.
5. Cancel hanging command with STRG + C
6. Run "systemctl status cloudflared"
7. See Error "Dec 08 11:20:09 ****** cloudflared[4582]: 2022-12-08T11:20:09Z ERR Serve tunnel error error="DialContext error: dial tcp 198.41.200.63:7844: connect: network is unreachable" connIndex=0 ip=198.41.2"
**Expected behavior**
cloudflared automatically detects the server does not have IPv4 connectivity and connects via IPv6. Similar to the "cloudflared tunnel --edge-ip-version" command.
**Environment and versions**
- OS: Tested with Debian 11 and Ubuntu 22.04
- Architecture: x86_64
- Version: 2022.11.1
**Logs and errors**
root@***redacted-hostname***:~# curl -L --output cloudflared.deb https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64.deb &&
>
> sudo dpkg -i cloudflared.deb &&
>
> sudo cloudflared service install ***redacted-connector-token***
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 16.2M 100 16.2M 0 0 24.0M 0 --:--:-- --:--:-- --:--:-- 24.0M
Selecting previously unselected package cloudflared.
(Reading database ... 30573 files and directories currently installed.)
Preparing to unpack cloudflared.deb ...
Unpacking cloudflared (2022.11.1) ...
Setting up cloudflared (2022.11.1) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
2022-12-08T11:25:18Z INF Using Systemd
^C
root@***redacted-hostname***:~# systemctl status cloudflared
● cloudflared.service - cloudflared
Loaded: loaded (/etc/systemd/system/cloudflared.service; enabled; vendor preset: enabled)
Active: activating (start) since Thu 2022-12-08 11:25:19 UTC; 6s ago
Main PID: 5210 (cloudflared)
Tasks: 7 (limit: 2300)
CGroup: /system.slice/cloudflared.service
└─5210 /usr/bin/cloudflared --no-autoupdate tunnel run --token ***redacted-token***
Dec 08 11:25:19 ***redacted-hostname*** cloudflared[5210]: 2022-12-08T11:25:19Z INF Starting metrics server on 127.0.0.1:41293/metrics
Dec 08 11:25:19 ***redacted-hostname*** cloudflared[5210]: 2022/12/08 11:25:19 failed to sufficiently increase receive buffer size (was: 208 kiB, wanted: 2048 kiB, got: 416 kiB). See https://github.com/lucas-clemen
Dec 08 11:25:19 ***redacted-hostname*** cloudflared[5210]: 2022-12-08T11:25:19Z ERR Failed to create new quic connection error="failed to dial to edge with quic: INTERNAL_ERROR: write udp [::]:45317->198.41.200.73:
Dec 08 11:25:19 ***redacted-hostname*** cloudflared[5210]: 2022-12-08T11:25:19Z INF Retrying connection in up to 2s connIndex=0 ip=198.41.200.73
Dec 08 11:25:19 ***redacted-hostname*** cloudflared[5210]: 2022-12-08T11:25:19Z ERR Failed to create new quic connection error="failed to dial to edge with quic: INTERNAL_ERROR: write udp [::]:45317->198.41.200.73:
Dec 08 11:25:19 ***redacted-hostname*** cloudflared[5210]: 2022-12-08T11:25:19Z INF Retrying connection in up to 4s connIndex=0 ip=198.41.200.73
Dec 08 11:25:20 ***redacted-hostname*** cloudflared[5210]: 2022-12-08T11:25:20Z ERR Failed to create new quic connection error="failed to dial to edge with quic: INTERNAL_ERROR: write udp [::]:45317->198.41.200.73:
Dec 08 11:25:20 ***redacted-hostname*** cloudflared[5210]: 2022-12-08T11:25:20Z INF Retrying connection in up to 8s connIndex=0 ip=198.41.200.73
Dec 08 11:25:23 ***redacted-hostname*** cloudflared[5210]: 2022-12-08T11:25:23Z ERR Failed to create new quic connection error="failed to dial to edge with quic: INTERNAL_ERROR: write udp [::]:45317->198.41.200.73:
Dec 08 11:25:23 ***redacted-hostname*** cloudflared[5210]: 2022-12-08T11:25:23Z INF Retrying connection in up to 16s connIndex=0 ip=198.41.200.73
root@***redacted-hostname***:~#
root@***redacted-hostname***:~# cloudflared --version
cloudflared version 2022.11.1 (built 2022-11-30-1048 UTC)
**Additional context**
In order to be able to download cloudflared from github I had to add the following to /etc/hosts (Because Github is still IPv4 only...):
2a01:4f8:c010:d56::2 github.com
2a01:4f8:c010:d56::3 api.github.com
2a01:4f8:c010:d56::4 codeload.github.com
2a01:4f8:c010:d56::5 objects.githubusercontent.com