服务器配置frps.ini
[common]
bind_port = 7000
token = 12314 #客户端连接需要配置使用的令牌
vhost_http_port = 8080 # 客户端配置http 转发的时候必须配置该项。端口号为云端服务器端口号
vhost_https_port = 443 #https请求
tcp_mux = false #去掉速度限制
# frp管理后台端口,请按自己需求更改
dashboard_port = 7500
# frp管理后台用户名和密码,请改成自己的
dashboard_user = admin
dashboard_pwd = admin
enable_prometheus = true
# frp日志配置
log_file = /var/log/frps.log
log_level = info
log_max_days = 3
客户端配置 frpc.ini
[common]
server_addr = test.com #此处为自己购买的域名,域名需要解析到云端服务器(或者可以直接填写服务器ip地址)
server_port = 7000
token=12314
tcp_mux = false #去掉速度限制
[ssh]
type = tcp
local_ip = 127.0.0.1
local_port = 22
remote_port = 6000
[web]
type = http
local_ip = 127.0.0.1
local_port = 8080 #本地服务器web服务端口
custom_domains = test.com
bandwidth_limit = 1000MB
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)