[GH-ISSUE #2865] 最近客户端连接失败,i/o timeout. frp被墙? #2287

Closed
opened 2026-05-05 13:28:33 -06:00 by gitea-mirror · 14 comments
Owner

Originally created by @SwaySZ on GitHub (Mar 22, 2022).
Original GitHub issue: https://github.com/fatedier/frp/issues/2865

Bug Description

校园网客户端,腾讯云服务端,tcping服务器端口正常,一旦执行frpc后无法再tcping;换了若干端口,出现相同现象。PS:外网(如开热点连接)客户端一切正常。难道端口被墙了?

frpc Version

0.38-0.40

frps Version

0.40

System Architecture

linux/amd64

Configurations

frcp.ini
##############
[common]
server_addr = xxx
server_port = xxx
token = xxx

[ssh]
type = tcp
local_ip = 127.0.0.1
local_port = 22
remote_port = xxx

Logs

NA

Steps to reproduce

...

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @SwaySZ on GitHub (Mar 22, 2022). Original GitHub issue: https://github.com/fatedier/frp/issues/2865 ### Bug Description 校园网客户端,腾讯云服务端,tcping服务器端口正常,一旦执行frpc后无法再tcping;换了若干端口,出现相同现象。PS:外网(如开热点连接)客户端一切正常。难道端口被墙了? ### frpc Version 0.38-0.40 ### frps Version 0.40 ### System Architecture linux/amd64 ### Configurations frcp.ini ############## [common] server_addr = xxx server_port = xxx token = xxx [ssh] type = tcp local_ip = 127.0.0.1 local_port = 22 remote_port = xxx ### Logs NA ### Steps to reproduce 1. 2. 3. ... ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [X] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
Author
Owner

@blizard863 commented on GitHub (Mar 23, 2022):

大概率是防火墙。

<!-- gh-comment-id:1075869136 --> @blizard863 commented on GitHub (Mar 23, 2022): 大概率是防火墙。
Author
Owner

@SwaySZ commented on GitHub (Mar 23, 2022):

不清楚原理是啥?为啥只墙端口?防火墙是怎么侦测到的?是frp的什么特征触发了被墙?

<!-- gh-comment-id:1075894947 --> @SwaySZ commented on GitHub (Mar 23, 2022): 不清楚原理是啥?为啥只墙端口?防火墙是怎么侦测到的?是frp的什么特征触发了被墙?
Author
Owner

@0xffffharry commented on GitHub (Mar 23, 2022):

实在不行就拿tls顶一下

<!-- gh-comment-id:1076298513 --> @0xffffharry commented on GitHub (Mar 23, 2022): 实在不行就拿tls顶一下
Author
Owner

@blizard863 commented on GitHub (Mar 23, 2022):

可以开启 KCP + TLS 试试

<!-- gh-comment-id:1076467160 --> @blizard863 commented on GitHub (Mar 23, 2022): 可以开启 KCP + TLS 试试
Author
Owner

@marcuswang6 commented on GitHub (Apr 1, 2022):

同上,不知道什么情况

<!-- gh-comment-id:1086106736 --> @marcuswang6 commented on GitHub (Apr 1, 2022): 同上,不知道什么情况
Author
Owner

@marcuswang6 commented on GitHub (Apr 1, 2022):

可以开启 KCP + TLS 试试

请问怎么开启呢?

<!-- gh-comment-id:1086106895 --> @marcuswang6 commented on GitHub (Apr 1, 2022): > 可以开启 KCP + TLS 试试 请问怎么开启呢?
Author
Owner

@SwaySZ commented on GitHub (Apr 2, 2022):

开启kcp连接不上。以上问题暂时无解,太奇怪了。

<!-- gh-comment-id:1086536947 --> @SwaySZ commented on GitHub (Apr 2, 2022): 开启kcp连接不上。以上问题暂时无解,太奇怪了。
Author
Owner

@799034552 commented on GitHub (Jun 1, 2022):

我也这样,怎么破

<!-- gh-comment-id:1143183528 --> @799034552 commented on GitHub (Jun 1, 2022): 我也这样,怎么破
Author
Owner

@SwaySZ commented on GitHub (Jun 2, 2022):

我也这样,怎么破

破不了

<!-- gh-comment-id:1144448867 --> @SwaySZ commented on GitHub (Jun 2, 2022): > 我也这样,怎么破 破不了
Author
Owner

@bitcl2 commented on GitHub (Jul 9, 2022):

国内点对点也会被封端口,换一个端口同样只能存活几十秒。

<!-- gh-comment-id:1179479216 --> @bitcl2 commented on GitHub (Jul 9, 2022): 国内点对点也会被封端口,换一个端口同样只能存活几十秒。
Author
Owner

@iSonce commented on GitHub (Aug 17, 2022):

一样的情况,阿里云的frp服务端开了,用校园网连不上

<!-- gh-comment-id:1218212871 --> @iSonce commented on GitHub (Aug 17, 2022): 一样的情况,阿里云的frp服务端开了,用校园网连不上
Author
Owner

@799034552 commented on GitHub (Aug 17, 2022):

一样的情况,阿里云的frp服务端开了,用校园网连不上

我们校园网加上tls加密就行了
tls_enable = true

<!-- gh-comment-id:1218224742 --> @799034552 commented on GitHub (Aug 17, 2022): > 一样的情况,阿里云的frp服务端开了,用校园网连不上 我们校园网加上tls加密就行了 `tls_enable = true`
Author
Owner

@iSonce commented on GitHub (Aug 17, 2022):

加上tls加密解决了(原来的7000端口墙了得换一个),十分感谢

<!-- gh-comment-id:1218241813 --> @iSonce commented on GitHub (Aug 17, 2022): > 加上tls加密解决了(原来的7000端口墙了得换一个),十分感谢
Author
Owner

@ysl2 commented on GitHub (Mar 2, 2023):

我们校园网是直接封ip

<!-- gh-comment-id:1451140918 --> @ysl2 commented on GitHub (Mar 2, 2023): 我们校园网是直接封ip
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#2287
No description provided.