下载对应版本的frp
https://github.com/fatedier/frp/releases/download/v0.38.0/frp_0.38.0_linux_amd64.tar.gz
tar -zxvf frp_0.38.0_linux_amd64.tar.gz
解压后修改服务器端配置文件frps.ini
[common]
#服务器监听端口
bind_port = 7000
#对网穿透http端口
vhost_http_port =80
#管理页面防访问端口
dashboard_port = 7500
# dashboard's username and password are both optional,if not set, default is admin.
dashboard_user = admin
dashboard_pwd = 123456
在服务器开启服务
./frps -c ./frps.ini
修改客户端配置文件frpc.ini
[common]
server_addr = 111.67.207.112
server_port = 7000
[test]
type = tcp
local_ip = 127.0.0.1
local_port = 8088
remote_port = 6000
[rdp]
type = tcp
local_ip = 127.0.0.1
local_port = 3389
remote_port = 6001
需要开启映射在客户端的配置文件中配置即可,这里配置了两个 test rdp
在需要穿透的pc端启动客户端./frpc -c ./frpc.ini