Skip to content

Minimal nftables support to enable DNS queries on port other than :53 - #905

Open
l-hedgehog wants to merge 3 commits into
apple:mainfrom
l-hedgehog:feat/nftables-dns-w-port
Open

Minimal nftables support to enable DNS queries on port other than :53#905
l-hedgehog wants to merge 3 commits into
apple:mainfrom
l-hedgehog:feat/nftables-dns-w-port

Conversation

@l-hedgehog

@l-hedgehog l-hedgehog commented Sep 2, 2026

Copy link
Copy Markdown

Implement a deliberately minimal, incomplete subset of the nftables netlink interface, sufficient for a single use case: redirecting outbound port 53 traffic to an alternate ip:port, to accommodate DNS servers that cannot bind to port 53.

Add redirect (ip, port) pairs to DNSConfiguration and propagates them through the SandboxContext proto to vminitd, which installs nftables rules DNATing outbound port 53 traffic to each target.

Fix #904

Implements a deliberately minimal, incomplete subset of the nftables netlink
interface, sufficient for a single use case: redirecting outbound port 53
traffic to an alternate ip:port, to accommodate DNS servers that cannot bind
to port 53.
Adds redirect (ip, port) pairs to DNSConfiguration and propagates them through
the SandboxContext proto to vminitd, which installs nftables rules DNATing
outbound port 53 traffic to each target. Completes the nftables subset for DNS
servers that cannot bind to port 53.
So that one could test with `--init-image` w/o any update to the container.
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.

[Request]: Minimal nftables support to enable DNS queries on port other than :53

1 participant