Deploy and validate router lighthouse, relay and exit node #292
Labels
No labels
area:authentication
area:flake-utilities
area:performance
area:tbd
host:chaos
host:cosmos
host:electra
host:fleet
host:lena
host:lyra
host:mass-storage
host:media1
host:nimmog-de
host:nova
host:pangolin
host:pangolin-vps
host:phone
host:router
host:vega
investigation
phase:cutover
phase:deploy
phase:mcp
phase:module
phase:packaging
phase:prep
phase:validation
priority:high
priority:medium
project:attic-postgres-lyra-rollout
project:auto-update-reliability
project:auto-update-remediation
project:declarative-purity-cleanup
project:external-review
project:fleet-boundary-cleanup
project:host-facts-refactor
project:lyra-nixos-deploy
project:lyra-service-stack-migration
project:nebula-mesh-network
project:nix-idioms-hygiene
project:nixos-build-deployment-pipeline
project:security-hardening
project:service-stack-migration
project:vega-sillytavern-cutover
project:wiki-rebuild
repo:numtide/flake-utils
repo:numtide/nix-auth
repo:numtide/nixos-passthru-cache
repo:numtide/nix-relay
service:auto-update
service:gitlab
service:hermes
service:mem0
service:nix
service:sillytavern
service:slskd
service:synthseek
service:tdarr
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
nimmo/nixos-config#292
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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:
Remaining acceptance:
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.
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.
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 referenced this issue2026-10-09 18:42:14 +01:00
Prepare router mesh serviceto Deploy and validate router lighthouse, relay and exit nodeRouter 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
3fa04c2on 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.
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.
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:
relay=10.10.0.10.[2a05:b100:2420:4800::1]:4242).from="[2a05:b100:2420:4800::1]:4242 (relayed)"usingrelay=10.10.0.10.[10.10.0.30 fd56:f458:569c::30]) relayed via router relay10.10.0.10.[10.10.0.30 fd56:f458:569c::30]) relayed via router relay10.10.0.10.Remaining acceptance gates for #292:
Deployment Acceptance & Verification Complete
All acceptance gates for the GL-MT6000 router dual-stack lighthouse, relay, and exit node are satisfied:
[::]:4242.10.10.0.10/16andfd56:f458:569c::10/64.154.51.87.151:4242) and public delegated IPv6 ([2a05:b100:2420:4800::1]:4242).All checklist items complete; closing #292.