macOS
brew install bgpq4local Homebrew formula metadata
brew
BGP filtering automation for Cisco, Juniper, BIRD and OpenBGPD routers. Version 1.16 via Homebrew; verified from local package data.
install
brew install bgpq4local Homebrew formula metadata
sudo apk add bgpq4Alpine Linux edge package indexes · bgpq4 · source: dl-cdn.alpinelinux.org
sudo apt install bgpq4Debian stable package indexes · bgpq4 · source: deb.debian.org
sudo dnf install bgpq4Fedora Rawhide package metadata · bgpq4 · source: dl.fedoraproject.org
nix profile install nixpkgs#bgpq4nixpkgs package indexes · pkgs/by-name/bg/bgpq4/package.nix · source: api.github.com
overview
BGP filtering automation for Cisco, Juniper, BIRD and OpenBGPD routers
history
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.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
bgpq4 | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
install metadata
| Package key | brew:bgpq4 |
|---|---|
| Version | 1.16 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/bgpq4 |
| Homepage | https://github.com/bgp/bgpq4 |
| Repository | https://github.com/bgp/bgpq4 |
| Upstream docs | https://github.com/bgp/bgpq4#readme |
| License | BSD-2-Clause |
| Source archive | https://github.com/bgp/bgpq4/archive/refs/tags/1.16.tar.gz |
| Build dependencies | autoconf, automake, libtool |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| 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 |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
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 bgpq4source trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.