macOS
brew install bgpq4local Homebrew formula metadata
安装
brew install bgpq4local Homebrew formula metadata
sudo apk add bgpq4Alpine Linux edge package indexes · bgpq4 · 来源: dl-cdn.alpinelinux.org
sudo dnf install bgpq4Fedora Rawhide package metadata · bgpq4 · 来源: dl.fedoraproject.org
nix profile install nixpkgs#bgpq4nixpkgs package indexes · pkgs/by-name/bg/bgpq4/package.nix · 来源: api.github.com
概览
BGP filtering automation for Cisco, Juniper, BIRD and OpenBGPD routers
历史
bgpq4 is the modern bgpq-family CLI for generating router filters from IRR data. It keeps the operator-friendly model of bgpq3 while focusing on newer IRRd behavior, newer vendor outputs, and ongoing maintenance.
The bgpq4 changelog explicitly records version 0.0.1 in 2019 as the point where bgpq3 was forked into bgpq4. The repository preserves older bgpq3 history back to the 2007 rewrite, but the bgpq4 line is documented as the post-2019 fork.
Early bgpq4 releases removed legacy options, improved performance by using IRRd 4's A query when available, and added Mikrotik support. Later releases reorganized the source tree, adopted OpenBSD-style formatting, reduced memory use with a red-black tree for ASN storage, and added outputs such as Junos as-path-origin, Nokia SR Linux, Mikrotik RouterOS v6/v7, Arista EOS, Huawei XPL, and other router-policy formats.
The input metadata lists bgpq4 packages across Alpine, Homebrew, Debian, Fedora/DNF, Nix, and Ubuntu, and the upstream README includes a packaging-status badge. That breadth matters because bgpq4 is the sort of tool network engineers want available on jump hosts, CI runners, and laptops without hand-building it.
The README describes bgpq4 as producing prefix lists, extended access lists, policy-statement terms, and AS-path lists from IRR objects. Operators pass ASNs, AS sets, route sets, or prefixes, select sources such as RPKI, AFRINIC, ARIN, APNIC, LACNIC, and RIPE, and choose target syntax for Cisco, Juniper, BIRD, OpenBGPD, Nokia, Mikrotik, Huawei, Arista, or JSON output.
bgpq4 is a package-nerd favorite because it condenses a brittle BGP edge-operations task into a single auditable binary. It is small C code, has no daemon to operate, emits plain text suitable for config generation pipelines, and exists precisely where package managers shine: getting a boring but critical network-ops tool onto many Unix-like systems.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
bgpq4 | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:bgpq4 |
|---|---|
| 版本 | 1.16 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/bgpq4 |
| 主页 | https://github.com/bgp/bgpq4 |
| 仓库 | https://github.com/bgp/bgpq4 |
| 上游文档 | https://github.com/bgp/bgpq4#readme |
| 许可证 | BSD-2-Clause |
| 源码归档 | https://github.com/bgp/bgpq4/archive/refs/tags/1.16.tar.gz |
| 构建依赖 | autoconf, automake, libtool |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | bgpq4 |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
bgpq4 1.12-1
automatic BGP filter generator using IRR routing data
sudo apt install bgpq4bgpq4
nix profile install nixpkgs#bgpq4bgpq4 1.12-1
automatic BGP filter generator using IRR routing data
sudo apt install bgpq4bgpq4 1.16-r0
bgp filtering automation tool
sudo apk add bgpq4bgpq4-doc 1.16-r0
bgp filtering automation tool (documentation)
sudo apk add bgpq4-docbgpq4 1.16-1.fc45
Automate BGP filter generation based on routing database information
sudo dnf install bgpq4来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.