hysteria
hysteria copied to clipboard
[请求帮助] socks5搭配clash fow windows使用无法实现FullCone
问题详情
用Clash For Windows通过socks5连接本地hysteria客户端,NatTypeTester测试为UdpBlocked,hysteria客户端、服务端均设置了"disable_udp": false,clash配置文件中也设置了udp: true
服务端安装信息或者一键脚本信息
hysteria version v1.3.1 2022-11-26 09:35:46 7a7fda67f2658dd1cad777689dcfa2bda2dcdeca
VPS 信息
rfchost 香港CMI 1 core 1G
服务端配置
{ "listen": ":5353", "protocol": "wechat-video", "acme": { "domains": [ "xxxx.xxxxxx.cc" ], "email": "[email protected]" }, "cert": "/xxx.pem", "key": "/xxx.key", "up_mbps": 1000, "down_mbps": 1000, "disable_udp": false, "max_conn_client": 8192, "obfs": "xxxxxx" }
服务端日志
Dec 04 00:20:49 RFCHOST-xxxxx-HW hysteria[31912]: 2022-12-04T00:20:49+08:00 [INFO] [addr::5353] Server up and running Dec 04 00:21:11 RFCHOST-xxxxx-HW hysteria[31912]: 2022-12-04T00:21:11+08:00 [INFO] [src:199.x.x.x:34191] Client connected
客户端安装信息
hysteria version v1.3.1 2022-11-26 09:35:46 7a7fda67f2658dd1cad777689dcfa2bda2dcdeca
客户端配置
{ "server": "199.x.x.x:5353", "protocol": "wechat-video", "server_name": "xxxx.xxxxxx.cc", "obfs": "xxxxxx", "up_mbps": 100, "down_mbps": 100, "socks5": { "listen": "127.0.0.1:10808", "disable_udp": false }, "fast_open": true }
客户端运行环境(操作系统)
Windows 10
客户端日志
NatTypeTester测试时只有一行,没有后文
2022-12-04T00:16:55+08:00[37m [DEBU] [src:127.0.0.1:19143] [0mSOCKS5 UDP associate
服务器端口开放了吗
服务器端口开放了吗
防火墙卸了,端口全开,trojan-go FullCone没问题,似乎不是服务器那边的事
@Natsuki-Kaede 使用nekoray客户端会表现出另外一种情况,如果是使用v2ray内核加hysteria.exe的vpn模式,NatTypeTester测试显示UdpBlocked 如果切换使用sing-box内核,没有hysteria.exe情况下的vpn模式,同样的hysteria服务端,NatTypeTester测试显示FullCone 怀疑是无论clash内核加hysteria.exe或v2ray内核加hysteria.exe的情况下,有某些限制导致vpn模式(或叫tun模式)下UdpBlocked 而单内核客户端如sing-box连接hysteria服务端就会处理得比较完善,可以测试出FullCone 另外这边测试只是用了udp协议,没有使用wechat-video协议
@Natsuki-Kaede 使用nekoray客户端会表现出另外一种情况,如果是使用v2ray内核加hysteria.exe的vpn模式,NatTypeTester测试显示UdpBlocked 如果切换使用sing-box内核,没有hysteria.exe情况下的vpn模式,同样的hysteria服务端,NatTypeTester测试显示FullCone 怀疑是无论clash内核加hysteria.exe或v2ray内核加hysteria.exe的情况下,有某些限制导致vpn模式(或叫tun模式)下UdpBlocked 而单内核客户端如sing-box连接hysteria服务端就会处理得比较完善,可以测试出FullCone 另外这边测试只是用了udp协议,没有使用wechat-video协议
刚刚尝试了nekoray sing-box内核,同配置无法连接orz(v2ray内核+hysteria内核下正常) 同时也试了试Clash Meta内核,测出UnsupportedServer,或许是我配置有问题,我再试试
@Natsuki-Kaede 使用nekoray客户端会表现出另外一种情况,如果是使用v2ray内核加hysteria.exe的vpn模式,NatTypeTester测试显示UdpBlocked 如果切换使用sing-box内核,没有hysteria.exe情况下的vpn模式,同样的hysteria服务端,NatTypeTester测试显示FullCone 怀疑是无论clash内核加hysteria.exe或v2ray内核加hysteria.exe的情况下,有某些限制导致vpn模式(或叫tun模式)下UdpBlocked 而单内核客户端如sing-box连接hysteria服务端就会处理得比较完善,可以测试出FullCone 另外这边测试只是用了udp协议,没有使用wechat-video协议
刚刚修改了Clash Meta的tun配置,覆盖掉了原本的tun配置,现在支持fullcone了
客户端用的是Clash Verge,但是不知道为什么,auto-route如果改为false或者去掉了 auto-detect-interface项的注释时,就连不上了emmm
tun: enable: true device: meta stack: system dns-hijack: - 'any:53' auto-route: true #auto-detect-interface: false mtu: 9000 endpoint_independent_nat: true