Wire reusable dual-stack mesh and router exit configuration #293

Closed
opened 2026-10-09 18:07:28 +01:00 by nimmo · 5 comments
Owner

Shared source/configuration deliverable for milestone Dual-stack Nebula Mesh & Router Exit. Per-host deployment and acceptance belong in separate host issues; do not treat source wiring as proof of fleet rollout.

Scope:

  • Certificate recipes accepting/preserving both IPv4 and IPv6 overlay addresses with provisioning-key prompts.
  • IPv6-capable UDP listeners and dual-family hostname resolution.
  • Shared lighthouse/relay/bootstrap configuration, preserving the existing VPS and stable IPv6 endpoint handling.
  • OpenWrt router service, scoped forwarding/NAT and phone DNS support, now maintained separately in ~/Projects/router-nebula per user preference.
  • Android Mobile Nebula phone bundle with IPv4/IPv6 default routes via router, with Vega internet exit and legacy bundle mode retired at the user's request.
  • Repo address/name metadata and appropriate README updates.

Checklist:

  • Confirm v2 CA and current phone v2 certificate.
  • Prepare and lint dual-address certificate creation/reissue and ordinary bundle changes.
  • Prepare router procd service and dual-stack listener.
  • Preserve private bundle directories from Git tracking.
  • Finish and validate router IPv4/IPv6 exit/NAT/DNS configuration.
  • Validate router phone bundle and rejection of unsupported certificate/address inputs.
  • Update shared NixOS mesh configuration and resolver/hostname metadata for opt-in rollout.
  • Resolve public router bootstrap endpoint handling using the NixOS /etc/hosts maintenance workflow and direct endpoint literals on non-NixOS peers.
  • Run all applicable shell regressions/lint and Nix flake checks.
  • Publish an MR when requested, reference the milestone, and make outstanding host evidence explicit (MR #307).

Existing live evidence: the router has both overlay addresses; the phone has connected over IPv6 on Wi-Fi and IPv4 on cellular. Phone DNS, Electra/Nova SSH, and IPv4 internet routing through the router are accepted; #294 is closed. Public IPv6 bootstrap and phone IPv6 internet egress remain tracked in #306. Existing fleet clients do not automatically register with the router lighthouse: optional router bootstrap configuration is prepared for per-host rollout. Shared NixOS wiring is validated in local commit 60eb26c; Vega will deploy through its normal pull-only NixOS auto-update after the changes reach main; live acceptance remains pending that deployment. Router host work: #292. Branch feat/router-nebula is published at 1d9c3ad via MR #307, with milestone 32 and fleet/project/validation labels. CI and automated review are pending; merge and remaining fleet acceptance have not occurred.

Shared source/configuration deliverable for milestone Dual-stack Nebula Mesh & Router Exit. Per-host deployment and acceptance belong in separate host issues; do not treat source wiring as proof of fleet rollout. Scope: - Certificate recipes accepting/preserving both IPv4 and IPv6 overlay addresses with provisioning-key prompts. - IPv6-capable UDP listeners and dual-family hostname resolution. - Shared lighthouse/relay/bootstrap configuration, preserving the existing VPS and stable IPv6 endpoint handling. - OpenWrt router service, scoped forwarding/NAT and phone DNS support, now maintained separately in ~/Projects/router-nebula per user preference. - Android Mobile Nebula phone bundle with IPv4/IPv6 default routes via router, with Vega internet exit and legacy bundle mode retired at the user's request. - Repo address/name metadata and appropriate README updates. Checklist: - [x] Confirm v2 CA and current phone v2 certificate. - [x] Prepare and lint dual-address certificate creation/reissue and ordinary bundle changes. - [x] Prepare router procd service and dual-stack listener. - [x] Preserve private bundle directories from Git tracking. - [x] Finish and validate router IPv4/IPv6 exit/NAT/DNS configuration. - [x] Validate router phone bundle and rejection of unsupported certificate/address inputs. - [x] Update shared NixOS mesh configuration and resolver/hostname metadata for opt-in rollout. - [x] Resolve public router bootstrap endpoint handling using the NixOS /etc/hosts maintenance workflow and direct endpoint literals on non-NixOS peers. - [x] Run all applicable shell regressions/lint and Nix flake checks. - [x] Publish an MR when requested, reference the milestone, and make outstanding host evidence explicit ([MR #307](https://git.nimmog.uk/nimmo/nixos-config/pulls/307)). Existing live evidence: the router has both overlay addresses; the phone has connected over IPv6 on Wi-Fi and IPv4 on cellular. Phone DNS, Electra/Nova SSH, and IPv4 internet routing through the router are accepted; #294 is closed. Public IPv6 bootstrap and phone IPv6 internet egress remain tracked in #306. Existing fleet clients do not automatically register with the router lighthouse: optional router bootstrap configuration is prepared for per-host rollout. Shared NixOS wiring is validated in local commit 60eb26c; Vega will deploy through its normal pull-only NixOS auto-update after the changes reach main; live acceptance remains pending that deployment. Router host work: #292. Branch feat/router-nebula is published at 1d9c3ad via MR #307, with milestone 32 and fleet/project/validation labels. CI and automated review are pending; merge and remaining fleet acceptance have not occurred.
Author
Owner

User clarified the IPv6 requirement: both public IPv6 transport and IPv6 addressing inside the mesh. Keep existing IPv4 addressing while adding private IPv6 mesh addressing. The address plan is documented in README and the shared recipes, with a randomly generated ULA /64. Existing CA and phone certificate are already v2; no CA replacement is required on this evidence. Verify live client versions before rollout.

Recipe preparation supports comma-separated explicit certificate networks, preserves all addresses on reissue, and optionally replaces the address list for migration. IPv6-equipped bundles include IPv6 mesh firewall policy, dual-stack listeners, and dual-family hostname resolution. Actual IPv4-only and dual-stack lighthouse/client/mobile bundle branches pass Nebula configuration tests using disposable credentials. Router's installed binary validates a dual-address certificate and the IPv6 firewall renders the expected echo-request rule.

Remaining integration includes host-by-host certificate provisioning, IPv6 hostname/DNS records, IPv6-capable NixOS listeners/configuration, reachable stable IPv6 lighthouse bootstrap endpoints, and genuine IPv4+IPv6 connectivity/relay canaries. Router service and WAN ingress remain disabled pending real credentials. IPv4 mobile full-tunnel routes remain as configured; IPv6 mesh addressing and IPv6 internet exit routing are separate capabilities.

User clarified the IPv6 requirement: both public IPv6 transport and IPv6 addressing inside the mesh. Keep existing IPv4 addressing while adding private IPv6 mesh addressing. The address plan is documented in README and the shared recipes, with a randomly generated ULA /64. Existing CA and phone certificate are already v2; no CA replacement is required on this evidence. Verify live client versions before rollout. Recipe preparation supports comma-separated explicit certificate networks, preserves all addresses on reissue, and optionally replaces the address list for migration. IPv6-equipped bundles include IPv6 mesh firewall policy, dual-stack listeners, and dual-family hostname resolution. Actual IPv4-only and dual-stack lighthouse/client/mobile bundle branches pass Nebula configuration tests using disposable credentials. Router's installed binary validates a dual-address certificate and the IPv6 firewall renders the expected echo-request rule. Remaining integration includes host-by-host certificate provisioning, IPv6 hostname/DNS records, IPv6-capable NixOS listeners/configuration, reachable stable IPv6 lighthouse bootstrap endpoints, and genuine IPv4+IPv6 connectivity/relay canaries. Router service and WAN ingress remain disabled pending real credentials. IPv4 mobile full-tunnel routes remain as configured; IPv6 mesh addressing and IPv6 internet exit routing are separate capabilities.
nimmo changed title from Integrate router mesh roles and validate client fallback to Wire reusable dual-stack mesh and router exit configuration 2026-10-09 18:49:04 +01:00
Author
Owner

Shared NixOS wiring now prepared: dual-stack listen.host=[::], static_map.network=ip, confirmed router/phone IPv4 and IPv6 hosts metadata, and CoreDNS AAAA records. routerBootstrapAddresses opts each host into router discovery/relay alongside VPS without baking dynamic public endpoints into fleet defaults. Removed phantom Vega lighthouse metadata; lighthouses do not register via other lighthouses, and relay nodes do not list other relays. Vega exitNode remains disabled in source while its resolver is retained.

Validation: full nix flake check passes. Evaluated ordinary client, router opt-in, lighthouse, and relay configurations. Ran the actual generated CoreDNS configuration on a temporary loopback port on Vega and verified router/phone AAAA plus Electra A queries; test process removed afterward. Existing upstream platform deprecation warnings reviewed.

Source wiring is distinct from live deployment. Public endpoint/DDNS work remains #306/#292; per-host certificate and activation issues remain open. Awaiting authenticated Vega activation; no publication/merge claimed.

Shared NixOS wiring now prepared: dual-stack listen.host=[::], static_map.network=ip, confirmed router/phone IPv4 and IPv6 hosts metadata, and CoreDNS AAAA records. routerBootstrapAddresses opts each host into router discovery/relay alongside VPS without baking dynamic public endpoints into fleet defaults. Removed phantom Vega lighthouse metadata; lighthouses do not register via other lighthouses, and relay nodes do not list other relays. Vega exitNode remains disabled in source while its resolver is retained. Validation: full nix flake check passes. Evaluated ordinary client, router opt-in, lighthouse, and relay configurations. Ran the actual generated CoreDNS configuration on a temporary loopback port on Vega and verified router/phone AAAA plus Electra A queries; test process removed afterward. Existing upstream platform deprecation warnings reviewed. Source wiring is distinct from live deployment. Public endpoint/DDNS work remains #306/#292; per-host certificate and activation issues remain open. Awaiting authenticated Vega activation; no publication/merge claimed.
Author
Owner

Per user preference, moved the one-shot router setup source from nebula/openwrt/ and both Nebula regression tests into /home/nimmo/Projects/router-nebula (openwrt/ and tests/). Added a local README and private-key/bundle exclusions; no Git/Forgejo repository has been created yet. Tests accept the nixos-config repository path and continue to exercise its shared provisioning/bundle recipes rather than duplicating them. Both regression suites, ShellCheck, and shell syntax validation pass from the new location. Public certificates, encrypted secrets, shared Just recipes and NixOS wiring remain in nixos-config. README ownership references updated; the router's live installed configuration is unaffected.

Per user preference, moved the one-shot router setup source from nebula/openwrt/ and both Nebula regression tests into /home/nimmo/Projects/router-nebula (openwrt/ and tests/). Added a local README and private-key/bundle exclusions; no Git/Forgejo repository has been created yet. Tests accept the nixos-config repository path and continue to exercise its shared provisioning/bundle recipes rather than duplicating them. Both regression suites, ShellCheck, and shell syntax validation pass from the new location. Public certificates, encrypted secrets, shared Just recipes and NixOS wiring remain in nixos-config. README ownership references updated; the router's live installed configuration is unaffected.
Author
Owner

MR #307 is merged into main with the full dual-stack wiring, paired credentials, retirement blocklists and reviewed provisioning/export fixes. The final code review reports Ready to merge; final CI at documentation-only head 50a3e7c passed. That final head's advisory review was waiting for a runner; main has no required status/approval gates. User explicitly authorized merge after valid findings were addressed.

The reissue/old-certificate distinction is documented and Vega's superseded exit fingerprint retirement is now explicit in #297. Do not treat this merge as fleet-wide revocation or live deployment acceptance: Vega/Lyra/Lena activation, persistence/no-op checks, service/relay evidence and IPv6 internet follow-ups remain in milestone 32. Host and retirement issues remain open.

MR #307 is merged into main with the full dual-stack wiring, paired credentials, retirement blocklists and reviewed provisioning/export fixes. The final code review reports Ready to merge; final CI at documentation-only head 50a3e7c passed. That final head's advisory review was waiting for a runner; main has no required status/approval gates. User explicitly authorized merge after valid findings were addressed. The reissue/old-certificate distinction is documented and Vega's superseded exit fingerprint retirement is now explicit in #297. Do not treat this merge as fleet-wide revocation or live deployment acceptance: Vega/Lyra/Lena activation, persistence/no-op checks, service/relay evidence and IPv6 internet follow-ups remain in milestone 32. Host and retirement issues remain open.
Author
Owner

Closing the completed shared-source deliverable after the open-issue audit. Every checklist item is complete, and MR #307 is merged into main. Its final review/CI and merge evidence are recorded in the existing issue comments. Current source contains the dual-stack configuration, paired credential handling, router/phone bundle support, and retired-identity blocklists.

This closure covers source wiring only. Host deployment/relay/persistence acceptance remains in #292, #295–#305; public router IPv6 bootstrap and phone IPv6 egress remain in #306; the additional resolver/self-resolution work remains in #310.

Closing the completed shared-source deliverable after the open-issue audit. Every checklist item is complete, and MR #307 is merged into main. Its final review/CI and merge evidence are recorded in the existing issue comments. Current source contains the dual-stack configuration, paired credential handling, router/phone bundle support, and retired-identity blocklists. This closure covers source wiring only. Host deployment/relay/persistence acceptance remains in #292, #295–#305; public router IPv6 bootstrap and phone IPv6 egress remain in #306; the additional resolver/self-resolution work remains in #310.
nimmo closed this issue 2026-10-12 06:21:09 +01:00
Sign in to join this conversation.
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
nimmo/nixos-config#293
No description provided.