Skip to content

fix(net): publish static UDP on passt and keep-authority DNAT - #552

Merged
emigmo merged 1 commit into
mainfrom
fix/udp-publish
Sep 18, 2026
Merged

emigmo merged 1 commit into
mainfrom
fix/udp-publish

Conversation

@emigmo

@emigmo emigmo commented Sep 18, 2026

Copy link
Copy Markdown

Summary

  • Static UDP publish (host:guest/udp) is forwarded by passt --udp-ports and by keep-authority iptables DNAT, using the same fail-closed teardown as TCP.
  • CLI/SDK admission allocates 0:guest/udp with a UDP socket. The normalized form keeps the /udp suffix so it cannot be treated as TCP.
  • Netproxy, CRI, and Service UDP stay refused. Unresolved host_port=0 still fails closed at passt and DNAT. Does not close B3.

Test plan

  • cargo test -p a3s-box-core --lib port:: (14 passed)
  • passt port-spec tests, keep-authority lease/DNAT tests, netproxy UDP refusal, Compose and CLI admission tests
  • Hosted CI

Accept host:guest/udp, forward it with passt --udp-ports, and install the same keep-authority DNAT/FORWARD rules used for TCP. CLI/SDK auto-assign allocates a UDP socket. Netproxy, CRI, and unresolved host_port=0 still fail closed. Does not flip B2/B3/B4.

Co-authored-by: Cursor <[email protected]>
@emigmo
emigmo merged commit c5b4601 into main Sep 18, 2026
2 of 7 checks passed
@emigmo
emigmo deleted the fix/udp-publish branch September 18, 2026 05:44
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.

2 participants