客户端配置如下:
#客户端配置:
cat > "/tmp/frp/myfrpc.ini" <<-\EOF
[common]
server_addr = 45.123.*.*
server_port = 5555
privilege_token = 1234567890
[ROUTER]
type = http
local_ip = 192.168.123.1
local_port = 80
use_gzip = true
use_encryption = true
pool_count = 20
privilege_mode = true
custom_domains =
router.******.net
EOF
[Aria2]
type = http
local_ip = 192.168.123.1
local_port = 6800
use_gzip = true
use_encryption = true
pool_count = 20
privilege_mode = true
custom_domains =
aria2.*****.net
EOF
#服户端配置:
# [common] is integral section
[common]
# A literal address or host name for IPv6 must be enclosed
# in square brackets, as in "[::1]:80", "[ipv6-host]:http" or "[ipv6-host%zone]:80"
bind_addr = 0.0.0.0
bind_port = 5555
# if you want to configure or reload frps by dashboard, dashboard_port must be set
dashboard_port = *****
# dashboard assets directory(only for debug mode)
dashboard_user = admin
dashboard_pwd = ******
# assets_dir = ./static
vhost_http_port = 81
vhost_https_port = 443
# console or real logFile path like ./frps.log
log_file = ./frps.log
# debug, info, warn, error
log_level = info
log_max_days = 3
# if you enable privilege mode, frpc can create a proxy without pre-configure in frps when privilege_token is correct
privilege_mode = true
privilege_token = 1234567890
# only allow frpc to bind ports you list, if you set nothing, there won't be any limit
#privilege_allow_ports = 1-65535
# pool_count in each proxy will change to max_pool_count if they exceed the maximum value
max_pool_count = 200
在域名解析添加了两条 A 记录,分别是 router 和 aria2 都解析到 VPS IP
但是这样还是没法用,实在有点犯晕