Exception日常 - 2025年9月
type: channel
link: https://two.yanchus.com/2025/09/
description: 记录自己如何从入门到放弃的全部过程！
items: Docker 安装frps服务端实现内网穿透

Docker 安装frps服务端实现内网穿透
type: item
date: 2025-09-20T21:09:00+08:00
description: docker命令docker run --restart=always --network host -d -v /root/frps/frps.ini:/etc/frp/frps.ini --name frps snowdreamtech/frps -c /etc/frp/frps.ini frps.ini 配置文件bind_port = 7000 # http端口 #vhost_http_port = 8080 # https端口 #vhost_https_port = 8081 dashboard_addr = 0.0.0.0 # 控制面板端口,用户名,密码 dashboard_port = 7500 dashboard_user = admin dashboard_pwd = xxxxx # 自己用于frp服务的域名 #subdomain_host = frp.yourdomain.com # frps服务token,拥有此token的客户端才允许连接 token = youtoken 飞牛nas安装好frpc，配置文件。serverAddr = "公网IP或者域名" serverPort = 7000 #不能删除, 否则连接不上会闪退 loginFailExit=false auth.method = "token" auth.token = "you_token" [[proxies]] name = "飞牛nas" type = "tcp" localIP = "192.168.21.xx" localPort = 5666 remotePort = 5666 [[proxies]] name = "远程桌面" type = "tcp" localIP = "192.168.21.xx" localPort = 3389 remotePort = 9001 localIP 宿主机IPlocalPort 3389宿主机应用端口remotePort 9001是暴露出来的公网端口