The BGP swiss army knife of networking
open sourceBSD-3-Clauseself-hostablefree
ExaBGP is a BGP implementation in Python for driving BGP from scripts and other programs: it runs your programs and exchanges messages with them over pipes, taking route announcements and withdrawals from them and passing them BGP updates as text or JSON. Unlike FRRouting or BIRD it doesn't touch the kernel's routing table, which makes it a tool for announcing service IPs and anycast addresses based on health checks (its built-in exabgp healthcheck does this with no code), pushing FlowSpec and blackhole rules against DDoS attacks, and monitoring networks through BGP-LS and Add-Path. It supports IPv4 and IPv6 unicast and multicast, VPNv4 and VPNv6, EVPN, FlowSpec, BGP-LS, MUP and SRv6. Version 5.0 is the stable release on PyPI; the main branch, the future 6.0, moves to asyncio and Python 3.12 and adds an interactive CLI. It's BSD-3-Clause, from Exa Networks, and its author's Go rewrite Ze is billed as its successor.
Ways to install
Package managers
Problems it solves
- announce a service IP over BGP from a server only while its health check passes
- fail an anycast address over between data centers automatically
- inject BGP routes from a Python or shell script without running a full routing daemon
- push FlowSpec rules to our routers to filter a DDoS attack
- announce a blackhole route for an IP under attack from a script
- receive BGP updates as JSON in my own program to watch routing changes
- collect BGP-LS topology data from our routers into our own tooling
- have each server announce its own IP to the top-of-rack switch over BGP
- move a /32 service address between servers without touching router configuration
- peer with a route server and send it crafted announcements to test it
Features
- API for external programs over pipes, with text and JSON formats
- built-in healthcheck that announces or withdraws routes from a service check
- IPv4/IPv6 unicast and multicast, VPNv4/VPNv6, EVPN, FlowSpec, BGP-LS, MUP and SRv6
- Add-Path for network monitoring
- configuration validation (exabgp configuration validate)
- RFC compliance ledger covering 24 RFCs with the tests behind each requirement
- zipapp: ExaBGP as one exabgp.pyz file run by Python
- main (future 6.0): asyncio engine, interactive CLI with shell completion, health monitoring API commands, optional mypyc-compiled build
Limitations
- Doesn't install routes into the kernel routing table (FIB or RIB): it only speaks BGP, so use BIRD or FRRouting to program routes23
Capabilities
| Has an API | plan not known |
|---|---|
| Has a command line tool | plan not known |
Alternatives
The same job
These do what ExaBGP does.
- GoBGP BGP implemented in the Go Programming Language
- OpenBGPD Free implementation of BGP-4 that lets ordinary machines act as routers
- BIRD BIRD Internet Routing Daemon: BGP, OSPF, RIP and Babel with a powerful route filtering language
- FRRouting Free and open source Internet routing protocol suite for Linux and Unix platforms
