cloudflare / cloudflare/cloudflared
🐛 cloudflared chooses wrong active interface
- Dominant language
- Go
- Stars
- 15.6k
- Forks
- 1.4k
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
cloudflared uses my docker's network instead of tun or enp6s0
**To Reproduce**
Steps to reproduce the behavior:
1. run cloudflared
2. check "ICMP proxy will use"
3. see error "in zone br-1744e4cf9e20 as source"
**Expected behavior**
it would use actual active interface like enp6s0 or tun
**Environment and versions**
- OS: Arch Linux 6.14.4-zen1-1-zen
- Architecture: AMD E1-6010 with AMD Radeon R2 Graphics (2) @ 1.35 GHz
- Version: 2025.4.0
**Logs and errors**
```
Nov 02 20:11:42 cirno cloudflared[1702483]: 2025-11-02T16:11:42Z INF Generated Connector ID: xxxxxxxx-xxxx-xxxxx-xxxx-xxxxxxxxxxxx
Nov 02 20:11:42 cirno cloudflared[1702483]: 2025-11-02T16:11:42Z INF Initial protocol http2
Nov 02 20:11:42 cirno cloudflared[1702483]: 2025-11-02T16:11:42Z INF ICMP proxy will use 172.19.0.1 as source for IPv4
Nov 02 20:11:42 cirno cloudflared[1702483]: 2025-11-02T16:11:42Z INF ICMP proxy will use fe80::7083:eff:fe51:f83c in zone br-1744e4cf9e20 as source for IPv6
Nov 02 20:11:43 cirno cloudflared[1702483]: 2025-11-02T16:11:43Z INF ICMP proxy will use 172.19.0.1 as source for IPv4
Nov 02 20:11:43 cirno cloudflared[1702483]: 2025-11-02T16:11:43Z INF ICMP proxy will use fe80::7083:eff:fe51:f83c in zone br-1744e4cf9e20 as source for IPv6
Nov 02 20:11:43 cirno cloudflared[1702483]: 2025-11-02T16:11:43Z INF Starting metrics server on 127.0.0.1:20241/metrics
Nov 02 20:11:44 cirno cloudflared[1702483]: 2025-11-02T16:11:44Z ERR Unable to establish connection with Cloudflare edge error="TLS handshake with edge error: EOF" connIndex=0 event=0 ip=198.41.200.233
Nov 02 20:11:44 cirno cloudflared[1702483]: 2025-11-02T16:11:44Z ERR Serve tunnel error error="TLS handshake with edge error: EOF" connIndex=0 event=0 ip=198.41.200.233
Nov 02 20:11:44 cirno cloudflared[1702483]: 2025-11-02T16:11:44Z INF Retrying connection in up to 2s connIndex=0 event=0 ip=198.41.200.233
Nov 02 20:11:45 cirno cloudflared[1702483]: 2025-11-02T16:11:45Z ERR Unable to establish connection with Cloudflare edge error="TLS handshake with edge error: EOF" connIndex=0 event=0 ip=198.41.192.167
Nov 02 20:11:45 cirno cloudflared[1702483]: 2025-11-02T16:11:45Z ERR Serve tunnel error error="TLS handshake with edge error: EOF" connIndex=0 event=0 ip=198.41.192.167
Nov 02 20:11:45 cirno cloudflared[1702483]: 2025-11-02T16:11:45Z INF Retrying connection in up to 4s connIndex=0 event=0 ip=198.41.192.167
Nov 02 20:11:48 cirno cloudflared[1702483]: 2025-11-02T16:11:48Z ERR Unable to establish connection with Cloudflare edge error="TLS handshake with edge error: EOF" connIndex=0 event=0 ip=198.41.192.227
Nov 02 20:11:48 cirno cloudflared[1702483]: 2025-11-02T16:11:48Z ERR Serve tunnel error error="TLS handshake with edge error: EOF" connIndex=0 event=0 ip=198.41.192.227
Nov 02 20:11:48 cirno cloudflared[1702483]: 2025-11-02T16:11:48Z INF Retrying connection in up to 8s connIndex=0 event=0 ip=198.41.192.227
Nov 02 20:11:54 cirno cloudflared[1702483]: 2025-11-02T16:11:54Z ERR Unable to establish connection with Cloudflare edge error="TLS handshake with edge error: EOF" connIndex=0 event=0 ip=198.41.192.77
Nov 02 20:11:54 cirno cloudflared[1702483]: 2025-11-02T16:11:54Z ERR Serve tunnel error error="TLS handshake with edge error: EOF" connIndex=0 event=0 ip=198.41.192.77
Nov 02 20:11:54 cirno cloudflared[1702483]: 2025-11-02T16:11:54Z INF Retrying connection in up to 16s connIndex=0 event=0 ip=198.41.192.77
Nov 02 20:12:08 cirno cloudflared[1702483]: 2025-11-02T16:12:08Z ERR Unable to establish connection with Cloudflare edge error="TLS handshake with edge error: EOF" connIndex=0 event=0 ip=198.41.200.53
...
```
**Additional context**
this happened after moving from amneziawg's tun interface into singbox/xray tun interface (both wont work, and both http2 and quic)
Contributor guide
Assessment
This issue has not been assessed yet.