frps 与基础运维组件(部署于 tx-bianque 腾讯云扁鹊)
frp 服务端 + 监控/保活/出墙等基础组件合集。
访问方式
- frps 控制端口:7000(公网);管理面板地址待确认(frpc/frps 在 /opt/frp)
- server-agent:127.0.0.1:9101(经香港反向隧道 19xxx 暴露)
- node-exporter:0.0.0.0:9100(docker)
技术架构
- frps:systemd frps.service(/opt/frp/frps -c /opt/frp/frps.toml)
- server-agent:/opt/server-agent/agent.py --port 9101 --bind 127.0.0.1(token 鉴权)
- wb-agent:/home/ubuntu/wb-agent(agent.py + keeper.sh,cron */5 与 @reboot)
- wb-hk-tunnel:systemd,反向隧道连香港 18080 端口
- xray-client:systemd,本地代理 7890/7891(/etc/xray-client/client.json)
- octop-guard.sh:每分钟保活 octop
- watchdog.sh:case-platform 每 15 分钟自检
- 宝塔:面板 28803(公网)、BT-FirewallServices、site_total
数据
- 各组件状态文件(state.json);无核心业务数据
使用方法
- 监控链路:本机 agent(9101)→ 香港反向端口(hk 127.0.0.1:19xxx)供查看
维护方式
- 启停:systemctl restart frps xray-client wb-hk-tunnel
- 日志:journald -u ;keeper.sh 日志在 wb-agent/logs
现状与风险
- 全部运行中;9100 与宝塔 28803 公网暴露
- 系统连续 224 天未重启
优化建议
- 安全:9100 改 127.0.0.1 映射;宝塔面板限源
- 可维护性:磁盘 84%,执行 docker system prune -f 与 journalctl --vacuum-size=200M
- 备份:/opt/frp/frps.toml、/etc/xray-client/ 打包备份
- 可维护性:低峰期 reboot 更新内核(224 天)