ehang-io / nps

一款轻量级、高性能、功能强大的内网穿透代理服务器。支持tcp、udp、socks5、http等几乎所有流量转发,可用来访问内网网站、本地支付接口调试、ssh访问、远程桌面,内网dns解析、内网socks5代理等等……,并带有功能强大的web管理端。a lightweight, high-performance, powerful intranet penetration proxy server, with a powerful web management terminal.
https://ehang.io/nps/documents
GNU General Public License v3.0
30.47k stars 5.5k forks source link

每5分钟会出现一次断流,已排除服务器和客户端环境问题 #1068

Open peaceanddemocracy opened 2 years ago

peaceanddemocracy commented 2 years ago

2022/05/30 10:33:16.235 [E] [client.go:92] Accept server data error read tcp 10.0.0.2:52534->8.8.8.8:8888: read: connection reset by peer, end this service 2022/05/30 10:33:16.236 [W] [client.go:165] accpet error,the conn has closed 2022/05/30 10:33:16.237 [I] [npc.go:236] Client closed! It will be reconnected in five seconds 2022/05/30 10:33:16.237 [E] [client.go:177] get connection info from server error EOF

zhangsean commented 1 year ago

我的部分客户服务器上的npc遇到这个情况,怀疑是客户防火墙策略,禁止长时间的连接,强制关闭长链接导致的。

peaceanddemocracy commented 1 year ago

同样环境下frp没问题,可能是npc的mux默认开启导致的,mux无法关闭