a2f3410e42
Add per-site and per-box inventories, consolidate shared network design, and relocate the switch and access-point references under the home site.
2.8 KiB
2.8 KiB
britway
A Vultr VPS in London (lon1) acting as the network edge node: the self-hosted Tailscale
control plane, a tailnet exit node, and the BGP speaker for AS211024.
- Source:
nixos/boxes/britway/ - Host: VPS at Vultr (London,
lon1) - nixpkgs:
mine
Role
- Headscale — the self-hosted Tailscale control plane at
hs.nul.ie; every other box'stailscaledlogs in here (--login-server=https://hs.nul.ie). Google OIDC for auth, SQLite state, MagicDNS underts.nul.ie, and split DNS pointing the colony/home domains at their internal resolvers. - Tailscale exit node — advertises
--advertise-exit-nodeplus routes to the home v4/v6 prefixes; tailnet traffic is SNATed outveth0(v4 to the Vultr public IP, v6 to theas211024mesh address). - BGP edge —
bird2speaks BGP as AS211024 to Vultr transit (AS64515, separate v4/v6 sessions authenticated with a password frombritway/bgp-password-vultr.conf) and exports everything to abgp.toolsmonitoring session. It originates the internal, colony and home IPv6 prefixes documented in networking. - nginx — reverse proxy fronting headscale (
hs.nul.ie→localhostheadscale port), with a wildcard ACME cert fornul.ieissued via Cloudflare DNS.
Network assignments
See the consolidated network assignments table (this box: britway).
Platform
| Component | Allocation |
|---|---|
| Virtualisation | Vultr VC2 virtual guest on a QEMU-compatible platform |
| Compute | 2 vCPUs and 2 GiB RAM |
| Storage | 65 GiB virtio disk with separate ext4 filesystems for /boot, /nix and /persist; root is tmpfs |
Networking
- Two assignments:
vultron the provider interfaceveth0(renamed by MAC), andas211024on thel2meshVXLAN interface (my.vpns.l2) — member of the shared mesh (see The AS211024 L2 mesh). - Static routes steer colony/home v4 traffic over the
as211024mesh. A separatets-extrarouting table with a policy rule ontailscale0ingress sends Tailscale-sourced v6 traffic for colony viaestuary, while the box's own v6 uses WAN. - The firewall trusts the
as211024prefixes (lib.my.c.as211024.nftTrust) andtailscale0;iperf3runs with an open port for bandwidth testing.
Notable config files
nixos/boxes/britway/default.nix— system, assignments, networkd, firewall/SNAT.nixos/boxes/britway/bgp.nix—bird2config (Vultr transit,bgp.tools).nixos/boxes/britway/nginx.nix— nginx vhosts + ACME.nixos/boxes/britway/tailscale.nix— headscale + the tailnet node itself.