From f1cd86d2e12eb6f317bef8c5ac47617f91b5b351 Mon Sep 17 00:00:00 2001 From: gaoyuheng Date: Thu, 14 May 2026 14:37:52 +0800 Subject: [PATCH] a --- bird-lgproxy.yml | 36 ++++-------------------------------- 1 file changed, 4 insertions(+), 32 deletions(-) diff --git a/bird-lgproxy.yml b/bird-lgproxy.yml index 5b886bd..b66d32f 100644 --- a/bird-lgproxy.yml +++ b/bird-lgproxy.yml @@ -1,35 +1,7 @@ -# BIRD 核心配置 -# BIRD 控制套接字路径。OpenWrt 默认通常在 /var/run/bird.ctl 或 /var/run/bird/bird.ctl bird_socket: "/var/run/bird.ctl" - -# 是否限制 BIRD 命令。开启后只允许 "show protocols" 和 "show route",增强安全性。 bird_restrict_cmds: true - -# 代理服务监听配置 -# 格式为 "IP:端口","0.0.0.0:8000" 表示监听所有网卡的 8000 端口 listen: "0.0.0.0:8000" - -# 访问控制 (白名单) -# 允许访问此代理的 IP 或网段,用逗号分隔。 -# 如果不设置,则任何 IP 都能访问该 Proxy。 -# 建议只填写 Frontend (前端网页端) 所在的服务器 IP。 -allowed_ips: "10.188.0.0/16" - -# Traceroute 工具配置 -# 自动寻找系统中的 traceroute 命令路径 -traceroute_bin: "/etc/birdlg/nexttrace" - -# Traceroute 运行参数 (例如使用 ICMP 而非 UDP,或者指定探测次数) -# 如果不确定,可以保持为空 "" -traceroute_flags: "-q 1 -w 2" - -# 是否显示原始输出 -# 设置为 false 则会经过格式化,更美观 -traceroute_raw: false - -# 最大并发 traceroute 请求数,防止路由器 CPU 被瞬间撑爆 -traceroute_max_concurrent: 5 - -# VRF 配置 (仅限 Linux) -# 如果你的 BIRD 运行在特定的 VRF 实例中,请填写 VRF 接口名 -# vrf: "mgmt" \ No newline at end of file +traceroute_bin: "/etc/bird-lg/nexttrace" +traceroute_flags: "-C -n -M -q 1" +traceroute_raw: true +traceroute_max_concurrent: 5 \ No newline at end of file