[GH-ISSUE #1834] 传输流量似乎会受GFW干扰? #1447

Closed
opened 2026-05-05 12:55:04 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @Jinnrry on GitHub (Jun 1, 2020).
Original GitHub issue: https://github.com/fatedier/frp/issues/1834

Version: 0.33.0

客户端运行在Deeplinux上面,服务端运行在Ubuntu18.04上面,客户端位于北京,服务端在洛杉矶

客户端配置文件

[common]
server_addr = *******
server_port = 7000
token = *****


[qunhuiHttp]
type = tcp
local_ip = 127.0.0.1
local_port = 80
remote_port = 1122
use_encryption = true
use_compression = true

服务端配置文件:

[common]
bind_port = 7000
bind_addr = 0.0.0.0

authentication_method = token

token = *****

authenticate_heartbeats = true

客户端日志:

2020/06/01 15:53:33 [I] [service.go:282] [0721f4ae5c41b9b0] login to server success, get run id [0721f4ae5c41b9b0], server udp port [0]
2020/06/01 15:53:33 [I] [proxy_manager.go:144] [0721f4ae5c41b9b0] proxy added: [qunhuiHttp]
2020/06/01 15:54:03 [I] [control.go:267] [0721f4ae5c41b9b0] control writer is closing
2020/06/01 15:54:03 [I] [service.go:174] [0721f4ae5c41b9b0] try to reconnect to server...
2020/06/01 15:54:03 [E] [control.go:157] [0721f4ae5c41b9b0] work connection closed before response StartWorkConn message: EOF

我将服务端在本地运行,然后客户端连接127.0.0.1,结果能够正常代理。但是当服务端放到国外以后就会无法访问(调试过程中遇到几次能访问,但是很快又断开了)

请问官方是否有收到类似的GFW干扰情况呢?如果确实是GFW干扰,是否有其他加密方式抗干扰?

Originally created by @Jinnrry on GitHub (Jun 1, 2020). Original GitHub issue: https://github.com/fatedier/frp/issues/1834 Version: 0.33.0 客户端运行在Deeplinux上面,服务端运行在Ubuntu18.04上面,客户端位于北京,服务端在洛杉矶 客户端配置文件 ``` [common] server_addr = ******* server_port = 7000 token = ***** [qunhuiHttp] type = tcp local_ip = 127.0.0.1 local_port = 80 remote_port = 1122 use_encryption = true use_compression = true ``` 服务端配置文件: ``` [common] bind_port = 7000 bind_addr = 0.0.0.0 authentication_method = token token = ***** authenticate_heartbeats = true ``` 客户端日志: ``` 2020/06/01 15:53:33 [I] [service.go:282] [0721f4ae5c41b9b0] login to server success, get run id [0721f4ae5c41b9b0], server udp port [0] 2020/06/01 15:53:33 [I] [proxy_manager.go:144] [0721f4ae5c41b9b0] proxy added: [qunhuiHttp] 2020/06/01 15:54:03 [I] [control.go:267] [0721f4ae5c41b9b0] control writer is closing 2020/06/01 15:54:03 [I] [service.go:174] [0721f4ae5c41b9b0] try to reconnect to server... 2020/06/01 15:54:03 [E] [control.go:157] [0721f4ae5c41b9b0] work connection closed before response StartWorkConn message: EOF ``` 我将服务端在本地运行,然后客户端连接127.0.0.1,结果能够正常代理。但是当服务端放到国外以后就会无法访问(调试过程中遇到几次能访问,但是很快又断开了) 请问官方是否有收到类似的GFW干扰情况呢?如果确实是GFW干扰,是否有其他加密方式抗干扰?
Author
Owner

@fatedier commented on GitHub (Jun 1, 2020):

这个不在此项目的考虑范围内,类似的需求请寻找其他工具。

出于安全性考虑话,可以启用 TLS。

<!-- gh-comment-id:636684245 --> @fatedier commented on GitHub (Jun 1, 2020): 这个不在此项目的考虑范围内,类似的需求请寻找其他工具。 出于安全性考虑话,可以启用 TLS。
Author
Owner

@Jinnrry commented on GitHub (Jun 1, 2020):

感谢回复,启用TLS后能够连上,但是相当不稳定。

2020/06/01 16:21:08 [I] [service.go:282] [1dc72ffc29bc2332] login to server success, get run id [1dc72ffc29bc2332], server udp port [0]
2020/06/01 16:21:08 [I] [proxy_manager.go:144] [1dc72ffc29bc2332] proxy added: [qunhuiHttp]
2020/06/01 16:21:09 [I] [control.go:179] [1dc72ffc29bc2332] [qunhuiHttp] start proxy success
2020/06/01 16:21:39 [E] [control.go:157] [1dc72ffc29bc2332] work connection closed before response StartWorkConn message: EOF
2020/06/01 16:21:39 [E] [control.go:326] [1dc72ffc29bc2332] Pong contains error: token in heartbeat doesn't match token from configuration
2020/06/01 16:21:39 [I] [control.go:267] [1dc72ffc29bc2332] control writer is closing
2020/06/01 16:21:39 [I] [service.go:174] [1dc72ffc29bc2332] try to reconnect to server...
2020/06/01 16:21:39 [I] [visitor_manager.go:60] [1dc72ffc29bc2332] gracefully shutdown visitor manager
2020/06/01 16:21:49 [W] [service.go:177] [1dc72ffc29bc2332] reconnect to server error: i/o deadline reached
2020/06/01 16:21:50 [I] [service.go:174] [1dc72ffc29bc2332] try to reconnect to server...
2020/06/01 16:22:00 [W] [service.go:177] [1dc72ffc29bc2332] reconnect to server error: i/o deadline reached
2020/06/01 16:22:02 [I] [service.go:174] [1dc72ffc29bc2332] try to reconnect to server...
2020/06/01 16:22:03 [I] [service.go:282] [1dc72ffc29bc2332] login to server success, get run id [1dc72ffc29bc2332], server udp port [0]
2020/06/01 16:22:03 [I] [proxy_manager.go:144] [1dc72ffc29bc2332] proxy added: [qunhuiHttp]
2020/06/01 16:22:03 [I] [control.go:179] [1dc72ffc29bc2332] [qunhuiHttp] start proxy success
2020/06/01 16:22:33 [E] [control.go:157] [1dc72ffc29bc2332] work connection closed before response StartWorkConn message: EOF
2020/06/01 16:22:33 [E] [control.go:326] [1dc72ffc29bc2332] Pong contains error: token in heartbeat doesn't match token from configuration
2020/06/01 16:22:33 [I] [control.go:267] [1dc72ffc29bc2332] control writer is closing
2020/06/01 16:22:33 [I] [visitor_manager.go:60] [1dc72ffc29bc2332] gracefully shutdown visitor manager
2020/06/01 16:22:33 [I] [service.go:174] [1dc72ffc29bc2332] try to reconnect to server...
2020/06/01 16:22:43 [W] [service.go:177] [1dc72ffc29bc2332] reconnect to server error: i/o deadline reached
2020/06/01 16:22:44 [I] [service.go:174] [1dc72ffc29bc2332] try to reconnect to server...
2020/06/01 16:22:55 [W] [service.go:177] [1dc72ffc29bc2332] reconnect to server error: i/o deadline reached
2020/06/01 16:22:57 [I] [service.go:174] [1dc72ffc29bc2332] try to reconnect to server...
2020/06/01 16:23:07 [W] [service.go:177] [1dc72ffc29bc2332] reconnect to server error: i/o deadline reached
2020/06/01 16:23:11 [I] [service.go:174] [1dc72ffc29bc2332] try to reconnect to server...
2020/06/01 16:23:21 [W] [service.go:177] [1dc72ffc29bc2332] reconnect to server error: i/o deadline reached
2020/06/01 16:23:29 [I] [service.go:174] [1dc72ffc29bc2332] try to reconnect to server...
2020/06/01 16:23:40 [W] [service.go:177] [1dc72ffc29bc2332] reconnect to server error: i/o deadline reached

<!-- gh-comment-id:636694031 --> @Jinnrry commented on GitHub (Jun 1, 2020): 感谢回复,启用TLS后能够连上,但是相当不稳定。 ``` 2020/06/01 16:21:08 [I] [service.go:282] [1dc72ffc29bc2332] login to server success, get run id [1dc72ffc29bc2332], server udp port [0] 2020/06/01 16:21:08 [I] [proxy_manager.go:144] [1dc72ffc29bc2332] proxy added: [qunhuiHttp] 2020/06/01 16:21:09 [I] [control.go:179] [1dc72ffc29bc2332] [qunhuiHttp] start proxy success 2020/06/01 16:21:39 [E] [control.go:157] [1dc72ffc29bc2332] work connection closed before response StartWorkConn message: EOF 2020/06/01 16:21:39 [E] [control.go:326] [1dc72ffc29bc2332] Pong contains error: token in heartbeat doesn't match token from configuration 2020/06/01 16:21:39 [I] [control.go:267] [1dc72ffc29bc2332] control writer is closing 2020/06/01 16:21:39 [I] [service.go:174] [1dc72ffc29bc2332] try to reconnect to server... 2020/06/01 16:21:39 [I] [visitor_manager.go:60] [1dc72ffc29bc2332] gracefully shutdown visitor manager 2020/06/01 16:21:49 [W] [service.go:177] [1dc72ffc29bc2332] reconnect to server error: i/o deadline reached 2020/06/01 16:21:50 [I] [service.go:174] [1dc72ffc29bc2332] try to reconnect to server... 2020/06/01 16:22:00 [W] [service.go:177] [1dc72ffc29bc2332] reconnect to server error: i/o deadline reached 2020/06/01 16:22:02 [I] [service.go:174] [1dc72ffc29bc2332] try to reconnect to server... 2020/06/01 16:22:03 [I] [service.go:282] [1dc72ffc29bc2332] login to server success, get run id [1dc72ffc29bc2332], server udp port [0] 2020/06/01 16:22:03 [I] [proxy_manager.go:144] [1dc72ffc29bc2332] proxy added: [qunhuiHttp] 2020/06/01 16:22:03 [I] [control.go:179] [1dc72ffc29bc2332] [qunhuiHttp] start proxy success 2020/06/01 16:22:33 [E] [control.go:157] [1dc72ffc29bc2332] work connection closed before response StartWorkConn message: EOF 2020/06/01 16:22:33 [E] [control.go:326] [1dc72ffc29bc2332] Pong contains error: token in heartbeat doesn't match token from configuration 2020/06/01 16:22:33 [I] [control.go:267] [1dc72ffc29bc2332] control writer is closing 2020/06/01 16:22:33 [I] [visitor_manager.go:60] [1dc72ffc29bc2332] gracefully shutdown visitor manager 2020/06/01 16:22:33 [I] [service.go:174] [1dc72ffc29bc2332] try to reconnect to server... 2020/06/01 16:22:43 [W] [service.go:177] [1dc72ffc29bc2332] reconnect to server error: i/o deadline reached 2020/06/01 16:22:44 [I] [service.go:174] [1dc72ffc29bc2332] try to reconnect to server... 2020/06/01 16:22:55 [W] [service.go:177] [1dc72ffc29bc2332] reconnect to server error: i/o deadline reached 2020/06/01 16:22:57 [I] [service.go:174] [1dc72ffc29bc2332] try to reconnect to server... 2020/06/01 16:23:07 [W] [service.go:177] [1dc72ffc29bc2332] reconnect to server error: i/o deadline reached 2020/06/01 16:23:11 [I] [service.go:174] [1dc72ffc29bc2332] try to reconnect to server... 2020/06/01 16:23:21 [W] [service.go:177] [1dc72ffc29bc2332] reconnect to server error: i/o deadline reached 2020/06/01 16:23:29 [I] [service.go:174] [1dc72ffc29bc2332] try to reconnect to server... 2020/06/01 16:23:40 [W] [service.go:177] [1dc72ffc29bc2332] reconnect to server error: i/o deadline reached ```
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#1447
No description provided.