boxvector

BGP configuration for BIRD, from one YAML file.

boxvector generates and manages BIRD 2 and 3 configuration for you. Describe your ASN, templates and peers once. Every change is validated, reviewed and applied safely, with a web UI for day-to-day operations.

boxvector web UI: peers with session state and route counts

Built for people who run real BGP

Small tool, strict defaults. It does the repetitive and error-prone part, and leaves BIRD and your network design in your hands.

One source of truth

ASN, prefixes, templates and peers live in a single YAML file. Templates are inherited, so a new peer is a few lines.

Filters that are on by default

IRR (bgpq4), RPKI, bogon prefixes and ASNs, prefix length, first-AS enforcement and max-prefix from PeeringDB, per peer or per template.

Validated before reload

Every generated config is checked with bird -p first. A broken change never reaches the running daemon.

BIRD 2 and BIRD 3

The installed version is detected on every run and the config is generated for it. Move from 2 to 3 when you are ready.

Review, apply, roll back

See a diff and a dry-run before applying. Each apply takes a snapshot, and one click restores a previous version.

Unprivileged by design

The web service runs as a dedicated user under a hardened systemd unit. It requires an OS login and listens on localhost by default.

How it works

Write the intent, let boxvector produce and verify the BIRD configuration.

  1. DescribeEdit /etc/boxvector.yml by hand, in the web UI, or paste raw syntax for a new peer.
  2. Generateboxvector builds the BIRD files, including IRR and RPKI filters and per-peer limits.
  3. VerifyThe result is parsed by BIRD itself. Errors stop the run before anything is reloaded.
  4. ApplyBIRD is reloaded, a snapshot is stored, and the change shows up in the history.
asn: 65501
router-id: 192.0.2.1
prefixes:
  - 192.0.2.0/24
  - 2001:db8:98::/48

templates:
  upstream:
    filter-rpki: true
    filter-bogon-routes: true
    filter-max-prefix: true

peers:
  Transit A:
    asn: 65510
    template: upstream
    neighbors: [203.0.113.1, 2001:db8::1]
    description: "Primary transit"

A web UI for daily operations

Look at sessions, change a peer, review a diff. A WinBox-like layout that stays out of the way, and everything still ends up in plain YAML.

Peers

Session state, imported and exported route counts, toolbar to enable, disable, comment or remove a peer, and a filter bar to find what you need.

Add peer

Fill in a form, or switch to Syntax and paste raw YAML. Either way the change is checked and shown as a diff before it is applied.

Config editor

Edit the full configuration with a dry-run, automatic snapshots and one-click restore.

Routes

Live routing table and route lookup straight from BIRD.

Install

A single .deb package for amd64 and arm64. Your configuration is kept across upgrades.

# 1. BIRD and bgpq4
sudo apt update
sudo apt install bird2 bgpq4

# 2. boxvector
sudo apt install ./boxvector_<version>_amd64.deb

# 3. check and generate
sudo boxvector --help
OSMinimum
Debian12 (bookworm)
Ubuntu22.04 (jammy)
BIRD2.0.7 or newer, or 3.x

Download the package from GitHub Releases. Full steps, BIRD 3 setup and upgrade notes are in the README.