Files
ferrix/docs/lab/prod/ferrix.textpb
T

28 lines
1.1 KiB
Protocol Buffer Text Format

# ferrix_bgp on a laptop, peering with the production router over WireGuard.
# Counterpart of bird-ferrix.conf. Run: cargo run --release -- docs/lab/prod/ferrix.textpb --level info
router_id: "10.255.0.2" # must differ from the production router's
local_asn: 4200000001 # private; stripped by the production router
# IPv6 prefixes are only announced over an IPv6 session, and the next hop is
# our end of it, so listen and dial on the tunnel's IPv6 address.
# Port 179 on a specific address needs root on macOS. The listener is unused
# here anyway: the router is passive and we dial out to its port 179.
listen_endpoints { address: "2a0d:d747:1::" port: 9179 }
peers {
name: "prod"
endpoint { address: "2a0d:d747:1::1" port: 179 }
remote_asn: 210036
hold_time_seconds: 90
}
connect_retry_seconds: 5
collision_detect_established_state: true
local_route_policy {
allowed_prefixes: "2a0d:d741::/40"
max_routes_per_owner: 1
}
# No authentication on this API: keep it on loopback or the classroom LAN.
http_endpoint { address: "127.0.0.1" port: 8080 }