1、拿最新的文件

wget  https://github-production-release-asset-2e65be.s3.amazonaws.com/48378947/f686c000-88ac-11ea-92b9-624ceb8724b3?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20200619%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20200619T015149Z&X-Amz-Expires=300&X-Amz-Signature=f30a32fdfc3396d408382e82259b1b011ed6ca5713497ab1498b019a0cf46995&X-Amz-SignedHeaders=host&actor_id=0&repo_id=48378947&response-content-disposition=attachment%3B%20filename%3Dfrp_0.33.0_linux_386.tar.gz&response-content-type=application%2Foctet-stream

 

2、解压

tar xf  frp_0.33.0_linux_386.tar.gz

mv frp_0.33.0_linux_386 /usr/local/frp

 

服务端修改 frps.ini

[root@zabbix frp]# cat frps.ini
[common]
# frp 监听地址
bind_port = 7000  
#访问客户端web服务自定义的端口号(我这里是jenkins的端口)
vhost_http_port = 30081
token = 12345678

#frp 控制面板
dashboard_port = 7500
# dashboard 用户名密码可选,默认都为 admin
dashboard_user = admin
dashboard_pwd = admin

 

客户端配置

[root@bakreg frp]# cat frpc.ini
[common]
server_addr = 192.168.127.210
server_port = 7000
token=12345678

[ssfsdveh]    #标签名可以随便起
type = tcp  #代理的协议
local_ip = 192.168.10.9  #本地的ip地址,也可以是127.0.0.1
local_port = 22  #要代理的端口
remote_port = 9009  #在服务端代理的端口

[sshsdvqwefv1]
type = tcp
local_ip = 192.168.10.13
local_port = 22
remote_port = 9013

[sshsdveqv2]
type = tcp
local_ip = 192.168.10.14
local_port = 22
remote_port = 9014

[sshsdvae3]
type = tcp
local_ip = 192.168.10.15
local_port = 22
remote_port = 9015

[sssdvcqweh4]
type = tcp
local_ip = 192.168.10.16
local_port = 22
remote_port = 9016

[sshsdcer5]
type = tcp
local_ip = 192.168.10.11
local_port = 22
remote_port = 9011

[sshsdcersdfve]
type = http
local_ip = 192.168.10.16
local_port = 30081
remote_port = 30081
custom_domains=192.168.127.210