服务器
docker run -d --name=frps --restart=always \
--network host \
-v /docker/frps/frps.ini:/frp/frps.ini \
stilleshan/frps:0.44.0
frps配置
[common]
bind_addr = 0.0.0.0
bind_port = 7000
bind_udp_port = 7001
kcp_bind_port = 7000
vhost_http_port = 80
vhost_https_port = 443
dashboard_addr = 0.0.0.0
dashboard_port = 7500
dashboard_user = admin
dashboard_pwd = admin
log_file = ./frps.log
log_level = info
log_max_days = 3
disable_log_color = false
token = 12345678
allow_ports = 0-65535
max_pool_count = 5
max_ports_per_client = 0
tcp_mux = true
客户端
docker run -d --name=frpc --restart=always \
-v /docker/frpc/frpc.ini:/frp/frpc.ini \
stilleshan/frpc:0.44.0
frpc
[common]
server_addr = frp.freefrp.net
server_port = 7000
token = freefrp.net
[web1_xxxxx]
type = http
local_ip = 192.168.1.2
local_port = 5000
custom_domains = yourdomain.com
[web2_xxxxx]
type = https
local_ip = 192.168.1.2
local_port = 5001
custom_domains = yourdomain.com
[tcp1_xxxxx]
type = tcp
local_ip = 192.168.1.2
local_port = 22
remote_port = 22222
custom_domains = yourdomain.com
评论区