Frp 内网穿透配置

frps.ini 配置

[common]
bind_addr = 0.0.0.0
#cs通信端口
bind_port = 4443 
#http 端口
vhost_http_port = 8082
#https 端口
vhost_https_port = 4432
dashboard_port = 7500
#log_file = ./frps.log
# debug, info, warn, error
#log_level = info
#log_max_days = 3
# 验证
token = 123
#privilege_mode = true
#privilege_token = 456
#privilege_allow_ports = 60000-60009
max_pool_count = 100

服务端运行

./frps -c frps.ini

frpc.ini 配置

[common]
server_addr = x.x.x.x
server_port = 7000
#log_file = ./frpc.log
# debug, info, warn, error
#log_level = info
#log_max_days = 3
token = 123
#privilege_token = 456

[www]
# tcp | http | https
type = http
local_ip = n.n.n.n
local_port = 80
#remote_port = 54678
use_gzip = true
#use_encryption = true
pool_count = 2
#privilege_mode = true
custom_domains = www.doname.com
#host_header_rewrite = dev.doname.com

客户端运行

./frpc -c frpc.ini

你可能感兴趣的:(Frp 内网穿透配置)