Repository navigation
proxy: add built-in NAT46 and managed DNS64 - #169
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
proxy.nat46with an embedded SOCKS5 NAT46 converter supporting TCP CONNECT and UDP ASSOCIATE, source suffix/full IPv6 usernames, hot-reloaded source tables, safe destination rejection, and loopback-only validation.mr-nat46and the optionalmr-dns64OpenRC services frommr apply, including doctor service health/healing and generated configuration.proxy.nat46.dns64that follows healthy WAN IPv4 DNS, validates/reloads forwarders, and leaves system unbound untouched.proxy.extra_configwiring.Why
sing-box 1.14 does not synthesize NAT64 addresses for IPv4 literals. The router's existing per-port proxy nodes therefore need a built-in converter and DNS64 resolver so the external
nat46-socks, system unbound, andisp-dns.shcan be retired without changing the user's proxy extra configuration.Verification
cd mr && go vet ./...cd mr && go test -count=1 ./...python3 tools/i18n.py checksh tools/ci.sh— ALL CHECKS PASSEDsh -n; real DNS64 resolution was not run because this build host does not have/usr/sbin/unbound.Closes #168