banger/internal
Thales Maciel 430f66d5dd Move helper NAT management into Go
Remove the last shell-owned NAT surface by extracting the iptables logic into a shared Go package and using it from both bangerd and a hidden helper bridge in the CLI.

Route customize.sh and interactive.sh through banger internal nat up/down so the remaining shell helpers reuse the same rule logic, resolve the local banger binary explicitly, and tear NAT back down during cleanup.

Drop nat.sh from the runtime bundle and docs now that NAT is Go-managed everywhere, and keep coverage aligned with the new shared package and helper command.

Validation: go test ./..., bash -n customize.sh interactive.sh verify.sh, make build, and a live ./verify.sh --nat run that installed host rules, reached outbound network access, and cleaned them up successfully.
2026-03-17 15:07:49 -03:00
..
api Reject invalid VM CPU and memory values 2026-03-16 16:28:17 -03:00
cli Move helper NAT management into Go 2026-03-17 15:07:49 -03:00
config Add structured daemon lifecycle logs 2026-03-16 16:16:28 -03:00
daemon Move helper NAT management into Go 2026-03-17 15:07:49 -03:00
firecracker Fix VM lifecycle issues behind verify.sh 2026-03-17 14:43:09 -03:00
hostnat Move helper NAT management into Go 2026-03-17 15:07:49 -03:00
model Add structured daemon lifecycle logs 2026-03-16 16:16:28 -03:00
paths Make runtime defaults portable 2026-03-16 15:30:08 -03:00
rpc Propagate RPC cancellation to daemon requests 2026-03-16 18:28:33 -03:00
runtimebundle Move helper NAT management into Go 2026-03-17 15:07:49 -03:00
store Add regression coverage for VM failure paths 2026-03-16 15:46:54 -03:00
system Add regression coverage for VM failure paths 2026-03-16 15:46:54 -03:00