目 录CONTENT

文章目录

frp内网穿透

smallkun
2022-09-07 / 0 评论 / 0 点赞 / 86 阅读 / 192 字 / 正在检测是否收录...
温馨提示:
本文最后更新于 2022-09-09,若内容或图片失效,请留言反馈。部分素材来自网络,若不小心影响到您的利益,请联系我删除。

服务器

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
0

评论区