diff options
| author | Paul Buetow <paul@buetow.org> | 2026-06-29 10:56:54 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-06-29 10:56:54 +0300 |
| commit | 70acbd00e0f235d8f257a1f23a558a66ece55e9c (patch) | |
| tree | f2ec14d6b1a5d70f1fe84499a4f248118d51cd12 /.gitignore | |
| parent | 66c23888d15f764d910945445dd00036b6d7d80e (diff) | |
Add reachable_via support so earth is durably reachable via fishfinger gateway
Adds a reachable_via: fishfinger field to the earth host entry in YAML.
In the Ruby generator, when building a gateway peer's AllowedIPs on
infra hosts, hosts declaring reachable_via: <gateway> now have their
wg0 IPv4/32 and IPv6/128 appended to that gateway peer's AllowedIPs.
This means every infra host that peers with fishfinger now routes
192.168.2.200/32, fd42:beef:cafe:2::200/128 via wg0, so traffic destined
for earth flows fishfinger -> earth without requiring a direct peer block.
The fix survives --generate and --install, replacing the prior manual
one-off edits that were reverted on each regen.
Refactors WireguardConfig#peers into peers + compute_allowed_ips +
roaming_no_gateway_ips + extra_ips_via_gateway (each under ~30 lines).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions
