banger/internal/daemon
Thales Maciel 171009b30b
Manage NAT directly from VM records
Fix the Go control plane NAT path now that runtime state lives in the daemon instead of the old repo-local vm.json files.

Add a daemon-native NAT helper that derives uplink, guest IP, and TAP rules directly from VMRecord, applies the existing iptables/sysctl behavior idempotently, and removes the broken nat.sh handoff from vm.go.

Cover uplink parsing and rule generation with unit tests. Validated with go test ./... and make build; a live verify.sh --nat run installed host rules but stopped on the same guest SSH-readiness issue seen in the plain smoke test on this host.
2026-03-16 13:50:54 -03:00
..
daemon.go Add Go daemon-driven VM control plane 2026-03-16 12:52:54 -03:00
images.go Add Go daemon-driven VM control plane 2026-03-16 12:52:54 -03:00
nat.go Manage NAT directly from VM records 2026-03-16 13:50:54 -03:00
nat_test.go Manage NAT directly from VM records 2026-03-16 13:50:54 -03:00
vm.go Manage NAT directly from VM records 2026-03-16 13:50:54 -03:00