mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #6951] feat(dns-tunnel): DNS tunnel page - StormDNS/dnstt profiles, WhiteDNS links, resolver test #6538
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#6538
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/MHSanaei/3x-ui/pull/6951
Author: @Plus98ir
Created: 10/26/2026
Status: 🔄 Open
Base:
main← Head:feat/dns-tunnel📝 Commits (10+)
8c002abfeat(hosts): clean IP scanner that saves working Cloudflare IPs per ISP54e674cfeat(hosts): full upload test and fragment finder for the clean IP scanner8ed6572feat(hosts): clean IP scanner in five steps; warn when the visitor is on WARP/VPN6e41f32fix(hosts): clean IP scanner rejects Cloudflare edge IPs that refuse the domain (error 1034)cde7508refactor(hosts): move the clean IP page's network lookup and step title into common.tsx1d651bffeat(hosts): show the datacenter city and country of each clean IP, with a country filter624fb48fix(hosts): send empty lists, not null, in a clean IP report with no valid rowsf52b377feat(hosts): scan your own IP list, find more IPs next to working ones, download CSVb5f5eb5style(hosts): keep the clean IP step titles readable on phonescae5a37chore(i18n): translate the clean IP scanner into every panel language📊 Changes
62 files changed (+11690 additions, -34 deletions)
View changed files
➕
docs/content/docs/en/reference/api/clean-ip-scanner.mdx(+64 -0)➕
docs/content/docs/en/reference/api/dns-tunnel.mdx(+63 -0)📝
docs/content/docs/en/reference/api/meta.json(+2 -0)📝
docs/public/openapi.json(+1058 -17)📝
frontend/public/openapi.json(+1058 -17)📝
frontend/src/components/command-palette/CommandPalette.tsx(+2 -0)📝
frontend/src/generated/examples.ts(+143 -0)📝
frontend/src/generated/schemas.ts(+449 -0)📝
frontend/src/generated/types.ts(+104 -0)📝
frontend/src/generated/zod.ts(+118 -0)📝
frontend/src/pages/api-docs/endpoints.ts(+105 -0)➕
frontend/src/pages/clean-ip/CleanIpPage.css(+264 -0)➕
frontend/src/pages/clean-ip/CleanIpPage.tsx(+1074 -0)➕
frontend/src/pages/clean-ip/FragmentStep.tsx(+216 -0)➕
frontend/src/pages/clean-ip/RangePicker.tsx(+82 -0)➕
frontend/src/pages/clean-ip/colos.ts(+165 -0)➕
frontend/src/pages/clean-ip/common.tsx(+92 -0)➕
frontend/src/pages/clean-ip/report.ts(+47 -0)➕
frontend/src/pages/clean-ip/scan.ts(+285 -0)➕
frontend/src/pages/dns-tunnel/DnsTunnelPage.tsx(+562 -0)...and 42 more files
📄 Description
Summary
Adds a DNS tunnel page (
/dns-tunnel). It keeps the profiles of the DNS tunnel servers that run beside the panel (StormDNS / dnstt), gives users a WhiteDNS import link and QR code for StormDNS, and finds which DNS resolvers carry the tunnel on each ISP.Why
During internet shutdowns the international links are cut, but the ISP's DNS resolvers still answer. A DNS tunnel (StormDNS / dnstt) keeps users connected in that situation. Admins need two things: a way to hand out the client settings, and to know which public or ISP resolvers pass the tunnel on each ISP. Both change per network.
What changes
dnsTunnelProfilessetting (default[]).stormdns://WhiteDNS import link and a QR code.server_config.toml(DOMAIN,DATA_ENCRYPTION_METHOD,ENCRYPTION_KEY_FILE) in the chosen folder (default/opt/stormdns), so the key does not have to be copied by hand.curl … | python3 -). It runs on a device on the ISP, checks which resolvers answer for the tunnel zone, and reports back per ISP with its token alone.GET/POST /panel/api/dnstunnel/profilesGET /panel/api/dnstunnel/detectPOST /panel/api/dnstunnel/commandGET /panel/api/dnstunnel/command/:tokenGET <base>dnstunnel/run/:token/script.pyandPOST <base>dnstunnel/run/:token/reportendpoints.ts,openapi.jsonand the docs MDX. The page is translated into all 14 languages.Type of change
Areas affected
How was this tested?
internal/web/service/dnstunnel_test.go) cover:server_config.tomland its key file;null.dns-tunnel-links.test.tscovers thestormdns://link format.make genis clean, docs MDX regenerated, andgo test ./internal/web/..., typecheck, lint, format and build all pass.Screenshots / recordings
Tunnel server with its WhiteDNS QR code (example domain and key):
Breaking changes
None. It is a new page, new routes and one new setting with an empty default.
Checklist
go build ./...and the test suite pass locally.npm run lint,npm run typecheck, andnpm run buildpass.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.