p4gefau1t / trojan-go

Go实现的Trojan代理,支持多路复用/路由功能/CDN中转/Shadowsocks混淆插件,多平台,无依赖。A Trojan proxy written in Go. An unidentifiable mechanism that helps you bypass GFW. https://p4gefau1t.github.io/trojan-go/
GNU General Public License v3.0
7.71k stars 1.67k forks source link

Trojan-go安装成功,客户端链接报错 tls failed to handshake with remote server #474

Open zhychen1173 opened 1 year ago

zhychen1173 commented 1 year ago

服务器套了cloudflare,域名网址可正常打开,但客户端连接时报错。 非常诡异的是,客户端报错的情况下,浏览器可以打开google,但却打不开facebook、 twitter等网站。

客户端日志如下: [TrojanGo] [ERROR] 2022/11/23 20:37:09 github.com/p4gefau1t/trojan-go/proxy.(Proxy).relayConnLoop.func1.1:proxy.go:66 proxy failed to dial connection | websocket cannot dial with underlying client | tls failed to handshake with remote server | read tcp 192.168.1.206:59134->172.67.148.151:443: wsarecv: An existing connection was forcibly closed by the remote host. 2022/11/23 20:37:14 tcp:127.0.0.1:59150 accepted tcp:www.googleapis.com:443 [PROXY] [TrojanGo] [INFO] 2022/11/23 20:37:14 socks connection from 127.0.0.1:59151 metadata www.googleapis.com:443 [TrojanGo] [ERROR] 2022/11/23 20:37:14 github.com/p4gefau1t/trojan-go/proxy.(Proxy).relayConnLoop.func1.1:proxy.go:66 proxy failed to dial connection | websocket cannot dial with underlying client | tls failed to handshake with remote server | read tcp 192.168.1.206:59152->172.67.148.151:443: wsarecv: An existing connection was forcibly closed by the remote host. 2022/11/23 20:37:14 tcp:127.0.0.1:59153 accepted tcp:www.googleapis.com:443 [PROXY] [TrojanGo] [INFO] 2022/11/23 20:37:14 socks connection from 127.0.0.1:59154 metadata www.googleapis.com:443 [TrojanGo] [ERROR] 2022/11/23 20:37:15 github.com/p4gefau1t/trojan-go/proxy.(Proxy).relayConnLoop.func1.1:proxy.go:66 proxy failed to dial connection | websocket cannot dial with underlying client | tls failed to handshake with remote server | read tcp 192.168.1.206:59155->172.67.148.151:443: wsarecv: An existing connection was forcibly closed by the remote host. 2022/11/23 20:37:24 tcp:127.0.0.1:59160 accepted tcp:www.googleapis.com:443 [PROXY] [TrojanGo] [INFO] 2022/11/23 20:37:24 socks connection from 127.0.0.1:59161 metadata www.googleapis.com:443 [TrojanGo] [ERROR] 2022/11/23 20:37:24 github.com/p4gefau1t/trojan-go/proxy.(Proxy).relayConnLoop.func1.1:proxy.go:66 proxy failed to dial connection | websocket cannot dial with underlying client | tls failed to handshake with remote server | read tcp 192.168.1.206:59162->172.67.148.151:443: wsarecv: An existing connection was forcibly closed by the remote host. 2022/11/23 20:37:24 tcp:127.0.0.1:59163 accepted tcp:www.googleapis.com:443 [PROXY] [TrojanGo] [INFO] 2022/11/23 20:37:24 socks connection from 127.0.0.1:59164 metadata www.googleapis.com:443 [TrojanGo] [ERROR] 2022/11/23 20:37:24 github.com/p4gefau1t/trojan-go/proxy.(*Proxy).relayConnLoop.func1.1:proxy.go:66 proxy failed to dial connection | websocket cannot dial with underlying client | tls failed to handshake with remote server | read tcp 192.168.1.206:59165->172.67.148.151:443: wsarecv: An existing connection was forcibly closed by the remote host.

fengmikaelson commented 1 year ago

解决了吗?我也是这样。 一开始还以为是系统换了,重装了还不行 最后发现,是我这个IP下的所有设备连接都报这个错

fengmikaelson commented 1 year ago

我也全是这句话wsarecv: An existing connection was forcibly closed by the remote host.

服务端就是一直报SSL 握手错误