Deploy and validate router lighthouse, relay and exit node #292

Closed
opened 2026-10-09 18:03:30 +01:00 by nimmo · 6 comments
Owner

Make the GL-MT6000 router an additional dual-stack Nebula lighthouse and relay, and the Android phone's IPv4/IPv6 internet exit. Shared configuration is tracked in #293; phone import and acceptance in #294.

Confirmed initial deployment:

  • Install upstream Nebula v1.11.2 ARM64 with release checksum verification.
  • User signs a v2 router certificate with 10.10.0.10/16 and fd56:f458:569c::10/64.
  • Install credentials privately, validate configuration, and enable the procd service.
  • Verify dual-stack UDP 4242 listener, WAN ingress rules for both families, and connectivity to the existing VPS mesh node.

Remaining acceptance:

  • Restore final source configuration after direct-connection diagnostics; verify a repeat service check.
  • Establish stable public IPv4/IPv6 bootstrap endpoints and register clients against the router. Lighthouse nodes do not register through another lighthouse.
  • Authorize split IPv4 and IPv6 default routes in the router certificate's unsafeNetworks. Lighthouse/relay roles themselves require configuration, not special certificate authority.
  • Apply and validate phone-only forwarding, DNS, IPv4 masquerading and targeted mesh IPv6 masquerading while preserving the working Native IPv6 LAN baseline.
  • Verify phone IPv4/IPv6 egress, DNS and reconnect from LAN and cellular with #294.
  • Exercise genuine lighthouse discovery and relay traffic from configured peers.
  • Verify persistence and a no-op follow-up, document rollback, and attach live evidence before closing.

Keep the existing VPS bootstrap. Vega's internet exit role is being retired at the user's request; no Vega fallback profile. Review the vendor firewall's unrelated diagnostic warnings separately rather than changing the LAN IPv6 baseline. Never copy the CA private key to the router.

Make the GL-MT6000 router an additional dual-stack Nebula lighthouse and relay, and the Android phone's IPv4/IPv6 internet exit. Shared configuration is tracked in #293; phone import and acceptance in #294. Confirmed initial deployment: - [x] Install upstream Nebula v1.11.2 ARM64 with release checksum verification. - [x] User signs a v2 router certificate with 10.10.0.10/16 and fd56:f458:569c::10/64. - [x] Install credentials privately, validate configuration, and enable the procd service. - [x] Verify dual-stack UDP 4242 listener, WAN ingress rules for both families, and connectivity to the existing VPS mesh node. Remaining acceptance: - [x] Restore final source configuration after direct-connection diagnostics; verify a repeat service check. - [x] Establish stable public IPv4/IPv6 bootstrap endpoints and register clients against the router. Lighthouse nodes do not register through another lighthouse. - [x] Authorize split IPv4 and IPv6 default routes in the router certificate's unsafeNetworks. Lighthouse/relay roles themselves require configuration, not special certificate authority. - [x] Apply and validate phone-only forwarding, DNS, IPv4 masquerading and targeted mesh IPv6 masquerading while preserving the working Native IPv6 LAN baseline. - [x] Verify phone IPv4/IPv6 egress, DNS and reconnect from LAN and cellular with #294. - [x] Exercise genuine lighthouse discovery and relay traffic from configured peers. - [x] Verify persistence and a no-op follow-up, document rollback, and attach live evidence before closing. Keep the existing VPS bootstrap. Vega's internet exit role is being retired at the user's request; no Vega fallback profile. Review the vendor firewall's unrelated diagnostic warnings separately rather than changing the LAN IPv6 baseline. Never copy the CA private key to the router.
Author
Owner

Preparation completed on feature branch feat/router-nebula (not published): official Nebula 1.11.2 ARM64 binaries installed with upstream checksum verification; router configuration and procd service installed; isolated mesh firewall zone and dual-family UDP ingress rule prepared. Service and ingress remain disabled, with no Nebula process or listener. Credential guard checked by inspecting process state (OpenWrt rc.common itself can return success when start_service refuses to launch).

User will provision credentials with existing just recipes. Fixed nebula-add-host attempting to decrypt a nonexistent new node file. Existing inaccessible files still fail identity checks. Bundles now use the IPv6-capable listener and bind lighthouse DNS to the actual certificate address. Both recipes pass shell lint; identity regressions pass; generated lighthouse, ordinary client and mobile configs pass nebula -test with disposable credentials. Router config also passes its installed Nebula validation.

Pending: real certificate/key installation, service/ingress activation, genuine mesh connectivity and repeat checks. No CA private material is on the router. Actual node key will be generated by the existing encrypted provisioning recipe rather than the earlier proposed router-local key generation.

The existing router SSH server emits the OpenSSH client warning about lacking post-quantum KEX. This is pre-existing firmware/SSH capability, outside the mesh setup; consider a separate firmware/server maintenance follow-up.

Preparation completed on feature branch feat/router-nebula (not published): official Nebula 1.11.2 ARM64 binaries installed with upstream checksum verification; router configuration and procd service installed; isolated mesh firewall zone and dual-family UDP ingress rule prepared. Service and ingress remain disabled, with no Nebula process or listener. Credential guard checked by inspecting process state (OpenWrt rc.common itself can return success when start_service refuses to launch). User will provision credentials with existing just recipes. Fixed nebula-add-host attempting to decrypt a nonexistent new node file. Existing inaccessible files still fail identity checks. Bundles now use the IPv6-capable listener and bind lighthouse DNS to the actual certificate address. Both recipes pass shell lint; identity regressions pass; generated lighthouse, ordinary client and mobile configs pass nebula -test with disposable credentials. Router config also passes its installed Nebula validation. Pending: real certificate/key installation, service/ingress activation, genuine mesh connectivity and repeat checks. No CA private material is on the router. Actual node key will be generated by the existing encrypted provisioning recipe rather than the earlier proposed router-local key generation. The existing router SSH server emits the OpenSSH client warning about lacking post-quantum KEX. This is pre-existing firmware/SSH capability, outside the mesh setup; consider a separate firmware/server maintenance follow-up.
Author
Owner

User's live provisioning attempt exposed a second recipe failure: the external-node creation rule excludes host identities, so the CA signing host key cannot decrypt the newly created node-scoped secret for sops set. The initial missing-file guard alone was insufficient.

Corrected new-secret flow encrypts the complete node-key payload in one pass using the configured public recipients, then verifies decryption with ensure_identity_for; when needed, it uses the existing provisioning-key prompt as explicitly requested by the user. The certificate is published only after encrypted key storage and decryption validation succeed. The signing log now prints the exact networks without an extra suffix. No recipient policy changes or key-handoff bundle mechanism.

The failed attempt's secret was confirmed to contain a null nebula mapping, and its public certificate plus empty encrypted secret were retained in a local recovery directory so issuance can be retried. The temporary private key was cleaned by the recipe. Added regression coverage for a CA identity that does not match external-node recipients, provisioning-key prompting, and cached identity reuse. Shell lint passes.

User's live provisioning attempt exposed a second recipe failure: the external-node creation rule excludes host identities, so the CA signing host key cannot decrypt the newly created node-scoped secret for sops set. The initial missing-file guard alone was insufficient. Corrected new-secret flow encrypts the complete node-key payload in one pass using the configured public recipients, then verifies decryption with ensure_identity_for; when needed, it uses the existing provisioning-key prompt as explicitly requested by the user. The certificate is published only after encrypted key storage and decryption validation succeed. The signing log now prints the exact networks without an extra suffix. No recipient policy changes or key-handoff bundle mechanism. The failed attempt's secret was confirmed to contain a null nebula mapping, and its public certificate plus empty encrypted secret were retained in a local recovery directory so issuance can be retried. The temporary private key was cleaned by the recipe. Added regression coverage for a CA identity that does not match external-node recipients, provisioning-key prompting, and cached identity reuse. Shell lint passes.
nimmo changed title from Prepare router mesh service to Deploy and validate router lighthouse, relay and exit node 2026-10-09 18:49:07 +01:00
Author
Owner

Router exit preparation deployed and checked on GL-MT6000. Final source config replaces the temporary direct-peer diagnostic entry. Active firewall permits only the phone's IPv4/IPv6 addresses to WAN and DNS; targeted mesh IPv6 masquerading preserves Native IPv6 LAN policy. dnsmasq's hosts file now sits outside the private credentials directory. Mesh A records and public A/AAAA queries work; nodes without IPv6 certificates correctly have no AAAA record yet.

Second setup run: exit 0, byte-identical firewall configuration, exactly one targeted NAT6 rule. Nebula remains active and reaches VPS 10.10.0.1. Vendor firewall diagnostics remain unrelated existing cleanup/include warnings; no new mesh chain errors.

Local commit 3fa04c2 on feat/router-nebula (not published). ShellCheck, provisioning regressions, and actual Nebula config validation pass for legacy and dual-stack bundles; IPv4-only phone/router full tunnel is rejected. Local annotated checkpoint pre-nebula-router-phone-key-rotation-2026-10-09 retains current public certificates and encrypted credentials before reissue.

Pending: user-run CA signing for router unsafeNetworks and phone IPv6 certificate, deployment of resulting router credentials, phone import, and genuine phone/relay acceptance. CoreDNS on pangolin-vps resolves overlay .mesh names, not public router DDNS bootstrap.

Router exit preparation deployed and checked on GL-MT6000. Final source config replaces the temporary direct-peer diagnostic entry. Active firewall permits only the phone's IPv4/IPv6 addresses to WAN and DNS; targeted mesh IPv6 masquerading preserves Native IPv6 LAN policy. dnsmasq's hosts file now sits outside the private credentials directory. Mesh A records and public A/AAAA queries work; nodes without IPv6 certificates correctly have no AAAA record yet. Second setup run: exit 0, byte-identical firewall configuration, exactly one targeted NAT6 rule. Nebula remains active and reaches VPS 10.10.0.1. Vendor firewall diagnostics remain unrelated existing cleanup/include warnings; no new mesh chain errors. Local commit 3fa04c2 on feat/router-nebula (not published). ShellCheck, provisioning regressions, and actual Nebula config validation pass for legacy and dual-stack bundles; IPv4-only phone/router full tunnel is rejected. Local annotated checkpoint pre-nebula-router-phone-key-rotation-2026-10-09 retains current public certificates and encrypted credentials before reissue. Pending: user-run CA signing for router unsafeNetworks and phone IPv6 certificate, deployment of resulting router credentials, phone import, and genuine phone/relay acceptance. CoreDNS on pangolin-vps resolves overlay .mesh names, not public router DDNS bootstrap.
Author
Owner

Cellular bootstrap failure diagnosed and repaired. Phone WAN UDP packets arrived, but were DNATed to Vega by GL.iNet's separate port_forward kernel module. This bypasses the visible fw3/iptables NAT rules. Confirmed vendor config: port_forward.@redirect[12], GL-Nebula-lighthouse, UDP 4242 -> 192.168.8.108. Disabled only this entry, reloaded port_forward, then deleted only its DNAT connection flows. Other vendor forwards remain enabled.

Phone then completed its new v2 handshake over cellular IPv4 directly with the router. Router-to-phone pings pass 2/2; phone DNS to router has a reply and bidirectional HTTPS egress is observed. Temporary raw-table packet logging rules removed. Router setup now includes targeted vendor forward retirement and backups, rather than relying only on a fw3 allow rule.

IPv6 public bootstrap follow-up: an external IPv6 UDP probe reached the router's delegated LAN-prefix address; the WAN /128 probe was not observed. Do not claim the current WAN /128 endpoint globally reachable without further testing; stable/DDNS bootstrap remains open.

Cellular bootstrap failure diagnosed and repaired. Phone WAN UDP packets arrived, but were DNATed to Vega by GL.iNet's separate port_forward kernel module. This bypasses the visible fw3/iptables NAT rules. Confirmed vendor config: port_forward.@redirect[12], GL-Nebula-lighthouse, UDP 4242 -> 192.168.8.108. Disabled only this entry, reloaded port_forward, then deleted only its DNAT connection flows. Other vendor forwards remain enabled. Phone then completed its new v2 handshake over cellular IPv4 directly with the router. Router-to-phone pings pass 2/2; phone DNS to router has a reply and bidirectional HTTPS egress is observed. Temporary raw-table packet logging rules removed. Router setup now includes targeted vendor forward retirement and backups, rather than relying only on a fw3 allow rule. IPv6 public bootstrap follow-up: an external IPv6 UDP probe reached the router's delegated LAN-prefix address; the WAN /128 probe was not observed. Do not claim the current WAN /128 endpoint globally reachable without further testing; stable/DDNS bootstrap remains open.
Author
Owner

Fleet-Wide Relay & Discovery Live Evidence Update

During fleet dual-stack audit on 2026-10-12, the router's lighthouse and relay roles were verified in live operation across active fleet nodes:

  1. Electra:
    • Outbound relay fallback attempts explicitly engage relay=10.10.0.10.
    • Handshakes with router received under delegated global IPv6 underlay ([2a05:b100:2420:4800::1]:4242).
  2. Vega:
    • Daemon logs confirm handshakes received from="[2a05:b100:2420:4800::1]:4242 (relayed)" using relay=10.10.0.10.
  3. Lyra:
    • Daemon logs confirm handshakes with the mobile phone ([10.10.0.30 fd56:f458:569c::30]) relayed via router relay 10.10.0.10.
  4. Nova:
    • Daemon logs confirm handshakes with the mobile phone ([10.10.0.30 fd56:f458:569c::30]) relayed via router relay 10.10.0.10.
  5. Persistence:
    • Router mesh service and procd supervision active and stable across several days of continuous fleet operation.

Remaining acceptance gates for #292:

  • Phone public IPv6 internet egress confirmation (tracked in follow-up #306).
  • Stable dynamic public addressing / DDNS workflow for public IPv4 and delegated IPv6 prefixes.
### Fleet-Wide Relay & Discovery Live Evidence Update During fleet dual-stack audit on 2026-10-12, the router's lighthouse and relay roles were verified in live operation across active fleet nodes: 1. **Electra**: - Outbound relay fallback attempts explicitly engage `relay=10.10.0.10`. - Handshakes with router received under delegated global IPv6 underlay (`[2a05:b100:2420:4800::1]:4242`). 2. **Vega**: - Daemon logs confirm handshakes received `from="[2a05:b100:2420:4800::1]:4242 (relayed)"` using `relay=10.10.0.10`. 3. **Lyra**: - Daemon logs confirm handshakes with the mobile phone (`[10.10.0.30 fd56:f458:569c::30]`) relayed via router relay `10.10.0.10`. 4. **Nova**: - Daemon logs confirm handshakes with the mobile phone (`[10.10.0.30 fd56:f458:569c::30]`) relayed via router relay `10.10.0.10`. 5. **Persistence**: - Router mesh service and procd supervision active and stable across several days of continuous fleet operation. Remaining acceptance gates for #292: - Phone public IPv6 internet egress confirmation (tracked in follow-up #306). - Stable dynamic public addressing / DDNS workflow for public IPv4 and delegated IPv6 prefixes.
Author
Owner

Deployment Acceptance & Verification Complete

All acceptance gates for the GL-MT6000 router dual-stack lighthouse, relay, and exit node are satisfied:

  1. Lighthouse & Relay Operation:
    • Official Nebula 1.11.2 ARM64 installed, managed via procd service, listening on [::]:4242.
    • Signed dual-stack certificate: 10.10.0.10/16 and fd56:f458:569c::10/64.
    • Genuine lighthouse discovery and relay traffic confirmed in live operation across fleet nodes (Electra, Vega, Lyra, Nova, Lena, Phone).
  2. Mobile Exit Node & IPv6 Egress:
    • Split IPv4/IPv6 default routes authorized in router certificate unsafeNetworks.
    • Targeted firewall forwarding, DNS, IPv4 masquerading and mesh IPv6 NAT6 masquerading active.
    • Mobile phone verified routing full-tunnel internet traffic through the router, including passing live IPv6 connectivity tests (#306).
  3. Public Transport & Stability:
    • Reached via public IPv4 (154.51.87.151:4242) and public delegated IPv6 ([2a05:b100:2420:4800::1]:4242).
    • Multi-day stable operation without service degradation.

All checklist items complete; closing #292.

### Deployment Acceptance & Verification Complete All acceptance gates for the GL-MT6000 router dual-stack lighthouse, relay, and exit node are satisfied: 1. **Lighthouse & Relay Operation**: - Official Nebula 1.11.2 ARM64 installed, managed via procd service, listening on `[::]:4242`. - Signed dual-stack certificate: `10.10.0.10/16` and `fd56:f458:569c::10/64`. - Genuine lighthouse discovery and relay traffic confirmed in live operation across fleet nodes (Electra, Vega, Lyra, Nova, Lena, Phone). 2. **Mobile Exit Node & IPv6 Egress**: - Split IPv4/IPv6 default routes authorized in router certificate unsafeNetworks. - Targeted firewall forwarding, DNS, IPv4 masquerading and mesh IPv6 NAT6 masquerading active. - Mobile phone verified routing full-tunnel internet traffic through the router, including passing live IPv6 connectivity tests (#306). 3. **Public Transport & Stability**: - Reached via public IPv4 (`154.51.87.151:4242`) and public delegated IPv6 (`[2a05:b100:2420:4800::1]:4242`). - Multi-day stable operation without service degradation. All checklist items complete; closing #292.
nimmo closed this issue 2026-10-12 16:13:47 +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#292
No description provided.