Frp启动p2p打洞
上篇笔记写到利用服务器中转,但是中转延迟比较高,网速取决于服务器,所以又研究了以下p2p点对点传输配置
两边都是启动frpc!!!!
1.这是家里的树莓派设置
[guozheng]
type = xtcp
sk = guozheng123
local_ip = 127.0.0.1
local_port = 22
2.这是远程的windows配置
[p2p_ssh_visitor]
type = xtcp
role = visitor
server_name = guozheng
sk = guozheng123
bind_addr = 127.0.0.1
bind_port = 6001
# when automatic tunnel persistence is required, set it to true
keep_tunnel_open = false
3.两边启动后输入命令即可
ssh -oPort=6001 127.0.0.1
如果失败可以多试几次,家中树莓派是移动网络,远程windows是电信,成功率非常高延迟很低
评论区