This commit is contained in:
2026-05-14 14:37:52 +08:00
parent 8ee10a622e
commit f1cd86d2e1

View File

@@ -1,35 +1,7 @@
# BIRD 核心配置
# BIRD 控制套接字路径。OpenWrt 默认通常在 /var/run/bird.ctl 或 /var/run/bird/bird.ctl
bird_socket: "/var/run/bird.ctl" bird_socket: "/var/run/bird.ctl"
# 是否限制 BIRD 命令。开启后只允许 "show protocols" 和 "show route",增强安全性。
bird_restrict_cmds: true bird_restrict_cmds: true
# 代理服务监听配置
# 格式为 "IP:端口""0.0.0.0:8000" 表示监听所有网卡的 8000 端口
listen: "0.0.0.0:8000" listen: "0.0.0.0:8000"
traceroute_bin: "/etc/bird-lg/nexttrace"
# 访问控制 (白名单) traceroute_flags: "-C -n -M -q 1"
# 允许访问此代理的 IP 或网段,用逗号分隔。 traceroute_raw: true
# 如果不设置,则任何 IP 都能访问该 Proxy。 traceroute_max_concurrent: 5
# 建议只填写 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"