官方:https://github.com/fatedier/frp
1.和服务端类似,上传并解压软件。
2.编辑客户端frpc的配置文件 frpc.toml:
--------------------------------------------------------------------
user = "fc"
# frps的地址和通信端口
serverAddr = "47.92.25.139"
serverPort = 7100
# 与frps通信的认证方式和token值
auth.method = "token"
auth.token = "12345dfFDFERDFDF678"
[[proxies]]
name = "ssh_local_linux01"
type = "tcp"
localIP = "127.0.0.1"
localPort = 22
# If remotePort is 0, frps will assign a random port for you
remotePort = 6001
---------------------------------------------------------------------
3.启动客户端配置:
--------------------------------------------------------------------
./frpc -c frpc.toml
# 一般会使用 nohup命令,后台运行:
nohup ./frpc -c frpc.toml &
--------------------------------------------------------------------
windows 64位