mack-a / v2ray-agent

Xray、Tuic、hysteria2、sing-box 八合一一键脚本
https://www.v2ray-agent.com
GNU Affero General Public License v3.0
13.49k stars 4.44k forks source link

connect: network is unreachable dial tcp #913

Closed zsp108 closed 6 months ago

zsp108 commented 6 months ago

不按照模版提交,一律关闭,反馈之前请仔细阅读脚本异常处理客户端使用教程、建议使用20卸载后重新尝试

1.问题描述

纯IPV6机器,参考文档个性化安装后,通过cloudflare 的API申请TLS,cloudflare 开启小云朵,还有关闭了Security => Settings => Security Level,设置为 Essentially Off(默认是 Medium,个人实测改为 Low 仍被拦截)。一直到安装匹配结束都是正常的,但是导入V2ray的时候测试速度提示The SSL could not be established,see inner exception.

服务端日志显示:

2024/01/14 16:37:59 [Info] [10537594] app/proxyman/outbound: failed to process outbound traffic > proxy/freedom: failed to open connection to tcp:speed.cloudflare.com:443 > common/retry: [dial tcp 104.16.68.38:443: connect: network is unreachable dial tcp 104.16.67.38:443: connect: network is unreachable dial tcp 104.16.68.38:443: connect: network is unreachable dial tcp 104.16.67.38:443: connect: network is unreachable] > common/retry: all retry attempts failed
2024/01/14 16:37:59 [Info] [10537594] app/proxyman/inbound: connection ends > proxy/vless/inbound: connection ends > io: read/write on closed pipe

通过ping.pe 测试我的IPV6如下,没有发现有china的探测,端口测试换了几个都是一片红的 image image

2.安装失败的log或者截图

安装过程没有异常,配置代理的时候异常了,异常日志如上描述

3.系统版本

[root@vm765458 ~]# uname -a
Linux vm765458.u186534.kvm.centos.7.64 6.6.10-bbrplus.el7.x86_64 #1 SMP PREEMPT_DYNAMIC Sun Jan  7 10:15:47 CST 2024 x86_64 x86_64 x86_64 GNU/Linux

4.脚本版本

当前版本:v3.1.32
zsp108 commented 6 months ago

对了,补充个信息,我使用的客户端是v2rayN。从机器上ping 我的域名和ssh链接是可以通的,就是订阅的地址测试速度是-1 v2ray的xray core 也更新了,总感觉是脚本或者是cf哪里出了问题,导致这个请求发过来转化成IPV4了

mack-a commented 6 months ago

如果你想用cloudflare转发ws或者grpc则需要修改 SSL/TLS encryption mode 为Full。