natfrp / launcher-windows

SakuraFrp 启动器 Windows 用户界面
https://doc.natfrp.com/launcher/usage.html#windows
GNU Affero General Public License v3.0
143 stars 27 forks source link

i/o deadline reached 启动器是否可以在 [common] 中添加 tls_enable #14

Closed dora-cmon closed 3 years ago

dora-cmon commented 3 years ago

启动器报错内容

2021/09/26 21:18:56 I Tunnel/TCP_38392 Service running, frpc version: 0.37.0-sakura-1 (built: 2021-06-05 22:57)
2021/09/26 21:19:16 W Tunnel/TCP_38392 登录节点失败, 请检查网络连接: i/o deadline reached
                      Tunnel/TCP_38392 i/o deadline reached
2021/09/26 21:19:16 I Tunnel/TCP_38392 frpc 已退出

使用配置文件启动

配置文件

[common]
protocol = tcp
server_addr = cn-zz-bgp-1.natfrp.cloud
server_port = 7000

user = xxxxxxxxxxxxxxxxx
token = SakuraFrpClientToken
sakura_mode = true
use_recover = true

tcp_mux = true
pool_count = 1

[TCP_38392]
type = tcp

local_ip = 127.0.0.1
local_port = 3389

remote_port = 38392

启动方式

./frpc.exe -c frp.ini

其中 frp.ini 为以上配置文件,报错同以上错误

解决方案

在配置文件的 [common] 中 添加 tls_enable = true

[common]
...
tls_enable = true

启动 frpc.exe -c frp.ini,正常启动,输出:

C:\Program Files\SakuraFrpLauncher>frpc.exe -c frpc.ini
2021/09/26 21:25:39 [I] [root.go:229] 检查更新中
2021/09/26 21:25:39 [I] Service running, frpc version: 0.37.0-sakura-1 (built: 2021-06-05 22:57)
2021/09/26 21:25:39 [I] [jek**2ty-455ce8ec] 连接节点成功, 获得 run ID [jek**2ty-455ce8ec], 节点 UDP 端口 [7001]
2021/09/26 21:25:39 [I] [jek**2ty-455ce8ec] 隧道连接中: [jek**2ty.TCP_38392]
2021/09/26 21:25:39 [I] [jek**2ty-455ce8ec] 限速已更新: 10 Mibit/s
TCP 类型隧道启动成功
使用 [cn-zz-bgp-1.natfrp.cloud:38392] 来连接到你的隧道
或使用 IP 地址连接(不推荐):[43.249.193.233:38392]
2021/09/26 21:25:39 [I] [jek**2ty-455ce8ec] [jek**2ty.TCP_38392] 隧道启动成功

出现该问题的原因不是很明确,网上检索后可能与网络环境有关?(本人为校园网,切手机热点有同样问题)。 目前可以手动添加该配置,并使用命令的方式启动成功,但还是想使用启动器(方便好用且可以远程管理),想请问启动器是否可以修改 [common] 中的配置,或者能否添加 tls_enable 的开关?

fakeboboliu commented 3 years ago

https://github.com/natfrp/SakuraFrpLauncher/commit/8966f7deec1f57ac2669957ff1cb53efdfd2252f 已经加了,将在下个 release 中包含。

但是,请注意:tls 并不是一个好的 workaround。 在你的网管不想你使用 frp 类软件时,使用 tls 来绕过只会加大网络的整体风险和你被网管上门快打的风险。 请仅在你确认使用 frp 无风险,相关的连接失败是误伤时使用这个方案。