Issue is only used for submiting bug report and documents typo. If there are same issues or answers can be found in documents, we will close it directly.
(为了节约时间,提高处理问题的效率,不按照格式填写的 issue 将会直接关闭。)
Use the commands below to provide key information from your environment:
You do NOT have to include this information if this is a FEATURE REQUEST
What version of frp are you using (./frpc -v or ./frps -v)?
0.20.0
What operating system and processor architecture are you using (go env)?
CentOS 7.3 64位
Configures you used:
服务端
[common]
bind_port = 7000
vhost_http_port = 8080
dashboard_port = 7500
dashboard_user = admin
dashboard_pwd = XXXXXX
max_pool_count = 5
authentication_timeout = 900
subdomain_host = nas.xxxx.com
[ssh]
listen_port = 6000
auth_token = 123210
黑群客户端
[common]
server_addr = 阿里云CES的IP
server_port = 7000
auth_token = 123210
pool_count = 1
[ssh]
type = tcp
local_ip = 192.168.10.201
local_port = 22
remote_port = 6000
[nas]
type = http
local_port = 5000
custom_domains = nas
[web]
type = http
local_port = 80
custom_domains = web
Steps to reproduce the issue:
1.已经在阿里云CES的安全组添加了7000、7500、8080端口的TCP入方向策略
2.万网已经注册并解析到阿里云CES的IP
3.服务端运行frps显示:
./frps -c ./frps.ini
2018/06/08 11:25:14 [I] [service.go:128] frps tcp listen on 0.0.0.0:7000
2018/06/08 11:25:14 [I] [service.go:161] http service listen on 0.0.0.0:8080
2018/06/08 11:25:14 [I] [service.go:205] Dashboard listen on 0.0.0.0:7500
2018/06/08 11:25:14 [I] [root.go:190] Start frps success
Describe the results you received:
黑群客户端运行会提示:
admin@DiskStation:~/frp_0.20.0_linux_amd64$ ./frpc -c ./frpc.ini
2018/06/08 11:15:29 [I] [proxy_manager.go:300] proxy removed: []
2018/06/08 11:15:29 [I] [proxy_manager.go:310] proxy added: [ssh nas web]
2018/06/08 11:15:29 [I] [proxy_manager.go:333] visitor removed: []
2018/06/08 11:15:29 [I] [proxy_manager.go:342] visitor added: []
2018/06/08 11:15:29 [W] [control.go:113] login to server failed: EOF
EOF
Describe the results you expected:
希望能成功连接上服务器端
Additional information you deem important (e.g. issue happens only occasionally):
Can you point out what caused this issue (optional)
这种网络问题,别人也无法判断,只有你自己先通过各种工具排查下网络问题,服务端客户端的日志都启用 debug 级别,然后逐一排查。
我用高版本客户端0.20 连接低版本服务端0.16 也是报这个错误,换成低版本客户端就解决问题了
如果问题已经解决请忽略下文。
可能因为你用的是黑群晖,系统时间跟实际时间不符的,在控制面板-区域 里把时间同步好应该就可以,第一个谷歌服务器会出错,第二个可用。
我也是同样症状谷歌了一圈才搜出结果
网络问题的话,可以先本地telnet一下阿里服务器的7000端口,看看能否连上,能连上则跟网络无关。
我的客户端是0.20,服务端是0.16,也是报这个错,客户端换成0.16就解决问题了。
作者说过不同版本的通信协议可能不兼容,客户端和服务端的版本要一致,不要混着用
老哥,你搞定了?
Most helpful comment
我的客户端是0.20,服务端是0.16,也是报这个错,客户端换成0.16就解决问题了。