下载地址:https://github.com/fatedier/frp/releases
客户端:
[common]
server_addr = text.com
server_port = 7000
[ssh_ubuntu]
type = tcp
local_ip = 127.0.0.1
local_port = 22
remote_port = 22
[web1_ubuntu]
type = http
local_port = 8080
custom_domains =web1.text.com
[web2_ubuntu]
type = http
local_port = 8888
custom_domains =web2.text.com
服务端:
[common]
bind_port = 7000
#当代理出来的是web服务时,在外网访问http://vps的IP:7001
# vhost_https_port = 7001
vhost_http_port = 8888
#状态以及代理统计信息展示,网址:7500可查看详情
dashboard_port = 7500
#访问用户dashboard_pwd访问密码
dashboard_user = xxx
dashboard_pwd = xxx
#日志文件
log_file = ./frps.log
# 记录的日志级别
log_level = info
#日志留存3天
log_max_days = 3
#超时时间
authentication_timeout = 0
#最大链接池,每个代理预先与后端服务器建立起指定数量的最大链接数
max_pool_count = 50
评论