Frp 是一个Go语言开发的开源端口映射工具,感觉蛮好用的。平时偶尔需要用到,但是因为记不住怎么用,就非常麻烦
下载
https://github.com/fatedier/frp/releases
服务端配置
[common]
bind_port = 7000
简直了,看文档咋就这么简单呢,然后就是配置客户端
客户端配置
[common]
server_addr = x.x.x.x
server_port = 7000
[ssh]
type = tcp
local_ip = 127.0.0.1
local_port = 22
remote_port = 6000
type是支持的协议名称,
local_port是本地需要映射的端口
remote_port就是你这个服务映射到服务器滴什么端口
然后就没有然后了、、、、、、
暂无评论