一直使用 Cloudflare Tunnel 作为家里服务器的访问入口,但是从春节开始,周期性出现无法访问,可用性一度为 0 ;查看日志发现是连接断开了
WRN Serve tunnel error error="connection with edge closed" connIndex=2 event=0 ip=198.41.192.67
INF Retrying connection in up to 1s connIndex=2 event=0 ip=198.41.192.67
INF Unregistered tunnel connection connIndex=2 event=0 ip=198.41.192.67
WRN Connection terminated error="connection with edge closed" connIndex=2
1
yaott2020 88 天前 via Android
试试 IPv6
|
3
goodman111 88 天前
@matony 你开 ipv6 不意味着访问别的网站是通过 ipv6 ,只是和 cloud flare 时间连接是 v6 的。
应该稳定并且快一点的。 |
4
fantastM 88 天前
春节期间遇到同样的问题,我做了下面操作之后,tunnel 状态几乎都是 healthy 了。。
1. cloudflared 启动参数里加 --protocol http2 2. clash 分流规则里添加 - DOMAIN-SUFFIX,argotunnel.com ,需要确保 tunnel 的连接是经过 clash 代理的 |
5
totoro625 88 天前
检查 clash 日志是否有 argotunnel.com 的连接,实在不会就直接用 ShellClash ,或者起一个 openwrt 虚拟机,在下面挂一个 vm 跑 Cloudflared Tunnel (我用的这个方案)
|
6
matony OP @fantastM @totoro625
用的是路由器上的 shellclash, 规则里添加了 `- DOMAIN-SUFFIX,argotunnel.com,🔰 节点选择`,查看 clash 面板,使用 curl 请求 region1.v2.argotunnel.com ,确认 region1.v2.argotunnel.com 和 update.argotunnel.com 走了代理,但是连接依然在断开,clash 没有发现连接一直在保持,请问是 clash 配置的不对吗; cloudflared 部署在 docker 容器中,启动命令 `tunnel --loglevel info --metrics 0.0.0.0:19991 --protocol http2 run --token ${TOKEN}` |
7
fantastM 87 天前
@matony #6 我的配置规则是自己维护的,你可以参考一下 https://github.com/fantasticmao/clash-rules/blob/main/common.yaml
另外,我确认了一下我这边和 tunnel 的连接,已经建立两天多了。。属实稳定 |