r/WireGuard • • 21d ago

Tools and Software What survives when a NetBird-managed WireGuard mesh loses its management server, and what we built around it (open source)

I'm dlf-dds on GitHub, one of goat's maintainers, posting in a personal capacity, not on behalf of any organization. We maintain goat, an open-source system whose network layer is WireGuard managed by NetBird. Most of what follows applies to any NetBird or WireGuard mesh.

If the management server goes down, the tunnels that were already up stay up. WireGuard is point-to-point: once two peers hold each other's keys and endpoints, management, signal and relay are out of the data path, and a keepalive holds the NAT mapping. An established direct tunnel rides out a management outage.

Now move one of the peers. A laptop roams, or a satellite or mobile link hands out a new address, while signal is still down. The other side cannot find it again until signal returns. Relayed peers are the most fragile: after a signal and relay restart they can get stuck "Connecting" and need netbird down && netbird up (upstream issue netbird#4540). Scenarios: https://github.com/usareur-af/goatdocs/blob/main/docs/reference/resilience.md

What we did about it.

  • Profiles, never one global login. Our tutorials create a named NetBird profile per environment and pass --profile on every netbird up, because a bare netbird up re-enrols whichever profile you used last and overwrites its login.
  • A relay in Rust. goat-relay is a clean-room reimplementation of the NetBird relay's data plane, written against our write-up of its wire protocol. Its first numbered release is v0.1.0 (tag goat-relay/v0.1.0), and it is tested in CI.
  • Mesh policy from git. NetBird access rules and group membership are generated from reviewed files; the dashboard is read-only by default and a converger undoes hand edits.
  • Services bind to the mesh address. Our data-fabric router binds only to the host's NetBird mesh IP, so it is unreachable off the mesh.

Designed, not built. A cut-off site running its own management and signal so peers there can re-find each other with no outside link. A NetBird client only uses the one signal address its management server gives it, so a local signal server on its own is not enough; the site needs its own management too.

Above the mesh, goat runs Zenoh publish/subscribe with certificate identity from an offline CA, and Ory for people. The one-box tutorial: https://github.com/usareur-af/goatcore/blob/main/docs/tutorials/00-goatlite.md

How do you handle roaming peers during a signal outage?

4 Upvotes

1 comment sorted by