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.
This commit is contained in:
parent
60294e8c90
commit
430f66d5dd
13 changed files with 378 additions and 250 deletions
|
|
@ -10,7 +10,6 @@ required_paths = [
|
|||
"customize.sh",
|
||||
"dns.sh",
|
||||
"packages.sh",
|
||||
"nat.sh",
|
||||
"namegen",
|
||||
"packages.apt",
|
||||
"id_ed25519",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue