nps icon indicating copy to clipboard operation
nps copied to clipboard

8024端口连接不上

Open chenkehao1998 opened this issue 1 year ago • 20 comments

用netstat看过了 没问题 可以telnet 通 但是npc连不上

不可能是服务器没开端口,之前一直没问题,今天突然就npc报错连不上8024端口

chenkehao1998 avatar Jul 20 '22 07:07 chenkehao1998

2022/07/20 15:15:42.409 [I] [npc.go:231] the version of client is 0.26.10, the core version of client is 0.26.0 2022/07/20 15:15:52.435 [E] [control.go:231] read tcp 192.168.31.148:64770->124.223.35.110:8024: i/o timeout 2022/07/20 15:15:52.435 [E] [client.go:63] The connection server failed and will be reconnected in five seconds, error read tcp 192.168.31.148:64770->124.223.35.110:8024: i/o timeout

chenkehao1998 avatar Jul 20 '22 07:07 chenkehao1998

重装了 不管是docker方式启动还是直接安装的方式 都试过了

chenkehao1998 avatar Jul 20 '22 07:07 chenkehao1998

image

chenkehao1998 avatar Jul 20 '22 07:07 chenkehao1998

在服务端的日志里发现了这个 2022/07/20 07:11:11.304 [I] [bridge.go:169] The client 115.236.14.158:64404 connect error%!(EXTRA string=EOF)

chenkehao1998 avatar Jul 20 '22 07:07 chenkehao1998

我有两台电脑一台可以连上 另一条不行 请问一般是什么原因 不能连的那台电脑 telnet 这个端口也是可以通的

chenkehao1998 avatar Jul 20 '22 07:07 chenkehao1998

2022/07/20 07:24:54.332 [I] [bridge.go:251] clientId 2 connection succeeded, address:223.104.244.135:4243 2022/07/20 07:24:58 mux: read session unpack from connection err read tcp 10.0.4.14:8024->223.104.244.135:4244: read: connection reset by peer 2022/07/20 07:24:58 close mux

chenkehao1998 avatar Jul 20 '22 07:07 chenkehao1998

我也是,周五开始,怎么都连不上

fengqiangboy avatar Jul 25 '22 02:07 fengqiangboy

同,最近一段时间怎么也连不上了

zhx47 avatar Jul 26 '22 09:07 zhx47

大佬们,解决了吗,我也出现这个问题了

leisurexi avatar Jul 28 '22 02:07 leisurexi

不知道是不是证书啥的过期了,反正我换其他工具了,这个搞不定

fengqiangboy avatar Jul 28 '22 02:07 fengqiangboy

不知道是不是证书啥的过期了,反正我换其他工具了,这个搞不定

诡异的是,我家里有台N1可以继续连,其他的设备全挂了

zhx47 avatar Jul 28 '22 02:07 zhx47

@fengqiangboy 大佬换什么工具了,推荐一下

leisurexi avatar Jul 28 '22 03:07 leisurexi

不知道是不是证书啥的过期了,反正我换其他工具了,这个搞不定

诡异的是,我家里有台N1可以继续连,其他的设备全挂了

我笔记本可以连 但是我的台式机连不上了 真的诡异

chenkehao1998 avatar Jul 28 '22 03:07 chenkehao1998

@fengqiangboy 大佬换什么工具了,推荐一下

https://github.com/snail007/goproxy 用这个了

fengqiangboy avatar Jul 28 '22 03:07 fengqiangboy

goproxy非专业版不能设置密码啊

zhx47 avatar Jul 28 '22 03:07 zhx47

话说这个项目,作者是不维护了吗 我看好多issue都没人管了 而且仓库好久没有commit过了

chenkehao1998 avatar Jul 28 '22 03:07 chenkehao1998

goproxy非专业版不能设置密码啊

可以吧,客户端和服务端用证书认证的

fengqiangboy avatar Jul 28 '22 06:07 fengqiangboy

老哥们,直接用frp吧

chenkehao1998 avatar Jul 31 '22 09:07 chenkehao1998

老哥们,直接用frp吧

FRP也可以,还在更新维护

fengqiangboy avatar Aug 01 '22 00:08 fengqiangboy

同样的问题,客户端和服务端版本一致:

the version of client is 0.26.10, the core version of client is 0.26.0

docker 中的客户端无法连接(之前一直正常使用,偶尔会隔几天断开一次,今天中午突然断开并无法重连,重启容器等都无效)(使用宿主机可以ping通,并且telnet及端口号都可以通,nps 服务端重启也无法重连) 另一台mac 客户端可以正常连接。

The connection server failed and will be reconnected in five seconds, error read tcp 192.168.101.15:56192->xxxxxx:8024: i/o timeout 2022/09/01 05:26:34.470 [E] [client.go:63] The connection server failed and will be reconnected in five seconds, error EOF 2022/09/01 05:26:45.247 [E] [client.go:63] The connection server failed and will be reconnected in five seconds, error EOF 2022/09/01 05:26:56.005 [E] [client.go:63] The connection server failed and will be reconnected in five seconds, error EOF 2022/09/01 05:27:06.778 [E] [client.go:63] The connection server failed and will be reconnected in five seconds, error EOF

Matzoh avatar Sep 01 '22 05:09 Matzoh

同样的问题,在公司网络Telnet端口能通,但是就不能连接,换成手机热点就可以连接。 公司网络报错: '''' 2022/10/08 12:36:35.922 [E] [control.go:231] read tcp ####:13954->####:8024: wsarecv: An existing connection was forcibly closed by the remote host. 2022/10/08 12:36:35.923 [E] [client.go:63] The connection server failed and will be reconnected in five seconds, error read tcp 10.76.35.156:13954->47.108.197.235:8024: wsarecv: An existing connection was forcibly closed by the remote host. 2022/10/08 12:36:41.167 [E] [control.go:231] read tcp ####:13957->####:8024: wsarecv: An existing connection was forcibly closed by the remote host. 2022/10/08 12:36:41.167 [E] [client.go:63] The connection server failed and will be reconnected in five seconds, error read tcp ####:13957->####:8024: wsarecv: An existing connection was forcibly closed by the remote host. ''''

DamonDBT avatar Oct 08 '22 04:10 DamonDBT

公司查 了一下,是硬件防火墙自己的规则自动触发拦截了。 image

DamonDBT avatar Oct 08 '22 06:10 DamonDBT

公司查 了一下,是硬件防火墙自己的规则自动触发拦截了。 image

深信服?

fengqiangboy avatar Oct 08 '22 07:10 fengqiangboy

具体我不知道了,这是网络部门发过来的,加了特例,可以用了。

DamonDBT avatar Oct 08 '22 07:10 DamonDBT

具体我不知道了,这是网络部门发过来的,加了特例,可以用了。

我感觉有可能是最近防火墙新增的规则,然后批量下发给全部防火墙了,然后就都突然被bang了

fengqiangboy avatar Oct 08 '22 07:10 fengqiangboy

是的,大概2个月前公司网络可以用的。但是这几天不行了。 但是另外一个客户的网络,是一直不能用,不知道为什么了。 如果是防火墙更新了规则,是根据8024端口扫的吗?那我修改默认端口是不是也可以绕过去?

DamonDBT avatar Oct 08 '22 07:10 DamonDBT

因为nps,我服务器的ip被公司防火墙拉黑了。。。现在换回frp了,可能公司防火墙对frp做了处理,到目前为止还没有问题

zhx47 avatar Oct 08 '22 07:10 zhx47

是的,大概2个月前公司网络可以用的。但是这几天不行了。 但是另外一个客户的网络,是一直不能用,不知道为什么了。 如果是防火墙更新了规则,是根据8024端口扫的吗?那我修改默认端口是不是也可以绕过去?

换端口没用吧,应该不是简单的识别端口

fengqiangboy avatar Oct 08 '22 07:10 fengqiangboy

是的,大概2个月前公司网络可以用的。但是这几天不行了。 但是另外一个客户的网络,是一直不能用,不知道为什么了。 如果是防火墙更新了规则,是根据8024端口扫的吗?那我修改默认端口是不是也可以绕过去?

换端口没用吧,应该不是简单的识别端口

确实,防火墙都是通过流量特征来识别的,不是简单的换端口这么简单。 比如很多防火墙会封堵todest、向日葵等远程桌面的流量,但是我发现rustdesk基本上没有封堵的

zhx47 avatar Oct 08 '22 07:10 zhx47

@fengqiangboy大佬换什么工具了,推荐一下

https://github.com/snail007/goproxy用这个了

不知道会不会被校园网拦截,我使用frp和nps都被校园网拦截

jsgzsjskj avatar May 14 '23 11:05 jsgzsjskj