Skip to content

feat(runtime): add SandboxViaOci Bridge egress NAT under keep-authority - #494

Merged
ZhiXiao-Lin merged 1 commit into
mainfrom
feat/b3-sandbox-bridge-nat
Sep 17, 2026
Merged

ZhiXiao-Lin merged 1 commit into
mainfrom
feat/b3-sandbox-bridge-nat

Conversation

@ZhiXiao-Lin

Copy link
Copy Markdown

Summary

  • Keep-authority Bridge staging enables host net.ipv4.ip_forward and installs idempotent iptables MASQUERADE for the NetworkStore subnet (! -o a3sb*).
  • Idle-bridge teardown removes the NAT rule with the bridge.
  • Does not add DNS/aliases, published ports/DNAT, flip b2_process_session_recovery_closed, or close ROADMAP B3/B2.

Test plan

  • cargo check -p a3s-box-runtime
  • Linux CI: oci_host_netdevice lease v3 unit tests
  • Matched-root lab: Bridge sandbox reaches external/host via default gateway

Made with Cursor

Enable ip_forward and install per-subnet iptables MASQUERADE for a3sb bridges; remove on idle teardown. Keeps B3/B2 open; no DNS/publish/DNAT.

Co-authored-by: Cursor <[email protected]>
@ZhiXiao-Lin
ZhiXiao-Lin merged commit 9c5e77a into main Sep 17, 2026
4 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant