Files
birdlgp/bird-lgproxy.yml
2026-05-14 13:46:57 +08:00

35 lines
1.2 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 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"