mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 19:11:53 +07:00
[GH-ISSUE #6487] [Feature]: Support for qWDTT / OlcRTC / OpenFlux to bypass DPI whitelisting in Russian mobile networks #4377
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#4377
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?
Originally created by @AlexGame2012 on GitHub (Sep 12, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/6487
Is your feature request related to a problem?
In Russia, mobile ISPs have started actively enforcing DPI-level whitelisting. On mobile internet (LTE/5G), only a small set of state-approved services remain reachable — VK, Yandex, MAX, and a few others. All other traffic, including standard VPN protocols (VLESS, VMess, Trojan, WireGuard, OpenVPN), is fully blocked, even when the server is located inside Russia. Common obfuscation methods like Reality or TLS do not help, because the DPI simply drops everything that does not look like an allowed service.
Current 3x-ui protocols are useless in this scenario, as they cannot masquerade as VK, Yandex Telemost, or Yandex Docs traffic.
Describe the solution you'd like
Add support for these protocols as new inbound types in the panel, similar to how VLESS / Trojan / VMess are currently added:
Alternatives you've considered
I have tested the following alternatives, and none of them work reliably under mobile DPI whitelisting in Russia:
VLESS + Reality
Tried with several SNIs (including Russian domains). The DPI blocks the connection before the TLS handshake — at the IP/port level. Reality never gets a chance to masquerade. Useless under whitelisting.
VLESS + XTLS + WebSocket behind CDN (Cloudflare)
Does not work, because mobile whitelisting blocks Cloudflare IP ranges entirely. The CDN is simply unreachable from the mobile network.
Trojan / Shadowsocks
Detected by signature and blocked immediately on handshake or dropped after a few seconds.
WireGuard / AmneziaWG
Blocked at the protocol level. Amnezia obfuscation helps against basic DPI but not against whitelisting — packets never reach the server because the ISP drops everything outside the allowed list.
Routing traffic through a CDN or IP that is inside the whitelist
This is theoretically possible: find a CDN or hosting provider whose IP ranges are in the mobile carrier's whitelist, and tunnel traffic through it. But in practice this is:
Self-hosted VLESS server inside Russia (Russian VPS)
Still blocked. Whitelisting is not about server location — it is about which destination IPs the carrier allows. Any IP outside the whitelist is dropped.
Chaining 3x-ui with an external SOCKS5 proxy (olcrtc cnc / qWDTT client on the phone)
Works in theory, but:
Do not help, because the client still needs a working transport to reach the server first. A subscription link is useless if the underlying protocol cannot pass DPI.
Conclusion: none of the existing 3x-ui protocols or standard bypass methods work under mobile whitelisting. Routing through whitelisted CDNs/IPs is possible in theory but economically unfeasible for most users. This is why native integration of WebRTC-based transports (qWDTT / OlcRTC / OpenFlux) into the panel is needed — they are currently the only practical way to pass through, because they look like allowed VK / Yandex / MAX traffic.
Concrete use case
I run a small self-hosted 3x-ui instance for myself and about 40 people — friends, family, and a few colleagues. All of them are in Russia and use mobile internet on a daily basis. Their ISPs (MTS, MegaFon, Beeline, Yota) have all enabled DPI whitelisting on mobile plans, so outside of VK, Yandex, MAX, and a handful of state services, nothing loads.
Current setup:
What happens today:
What the feature would change:
Without native support in 3x-ui, the only option is a manual setup per user — which is not realistic for 40 people, let alone if the user base grows.
Mockups, screenshots, or examples
Examples of existing implementations and clients for the protocols:
qWDTT — Android app + server component
https://github.com/SpaceNeuroX/proxy-turn-vk-android
Creates a system VPN tunnel on Android and relays traffic through VK TURN infrastructure. Has a server-side part that would need to run on the VPS. UI shows a list of servers, a profile per connection, and a VK call hash field.
OlcRTC — TCP-over-WebRTC tunnel
https://github.com/openlibrecommunity/olcrtc
Documentation: docs/fast.md, docs/configuration.md, docs/uri.md (URI format)
Existing clients that already support olcrtc:// URIs and subscriptions:
These clients already consume olcrtc:// URIs and subscriptions, so if 3x-ui could generate them, integration would be immediate.
https://github.com/p1neappleXpress/OpenFlux
Transports: Yandex Docs (cursor messages) and MAX (WebRTC DataChannel).
Android client: https://github.com/p1neappleXpress/OpenFluxAndroid
iOS client: TestFlight beta (see README)
Suggested UI (mockup description):
In the "Add Inbound" form, a new "Protocol" dropdown entry with three sub-options. When selected, show a settings block:
[ Inbound ]
Protocol: [ OlcRTC ▾ ]
Provider: [ Telemost ▾ ] (Jitsi / Telemost / WBStream)
Transport: [ datachannel ▾ ] (datachannel / vp8channel / seichannel / videochannel)
Room ID: [ auto-generated or user input ]
Key: [ generate / paste ]
Port: [ 443 ] SNI/domain (optional)
[ Save ] [ Cancel ]
[ Inbound ]
Protocol: [ qWDTT ▾ ]
VK call hash: [ ................ ]
Server host: [ vps.example.com ]
Server port: [ 56000 ]
[ Save ] [ Cancel ]
[ Inbound ]
Protocol: [ OpenFlux ▾ ]
Transport: [ yandex ▾ ] (yandex / max)
Document URL / MAX token: [ ................ ]
Encryption (AES-256-GCM): [ on / off ]
[ Save ] [ Cancel ]
Config fragments that 3x-ui would generate on the server side (examples for reference):
OlcRTC (YAML, based on docs/configuration.md):
mode: srv
provider: telemost
transport: datachannel
room:
key:
qWDTT server side: launch the server binary with the VK call hash and listen port; the panel stores these as inbound settings and manages the process.
OpenFlux (CLI example from README):
sudo ./universal-bypass-tool --exit-node --local-ip
--url "YOUR_YANDEX_DOC_URL" --debug
Subscription output example (what the panel would emit):
olcrtc://
qwdtt://<...>
openflux://<...>
These formats already exist in the linked clients, so the panel only needs to generate them — no new client development required.
Which parts of the panel would this affect?
Backend (API endpoints, login, settings), Frontend (UI / panel pages), Xray config generation, Subscription (share links / Clash / JSON), Statistics / traffic counters, Install / upgrade script, Other
Are you willing to help?
Before submitting
@github-actions[bot] commented on GitHub (Sep 12, 2026):
This is a legitimate, unusually well-written feature request, but it is not one feature — it is three independent sidecar-protocol integrations plus a generic "launch any command" inbound, and none of the three exists anywhere in the tree today. Below is what each piece would actually cost in this repo, which part I would expect to be rejected outright, and — most usefully for you — what you can do for your ~40 users right now without waiting for any of it.
Current state
A case-insensitive search of the whole repo (Go, TS, JSON) for
olcrtc,qwdtt,openfluxandwebrtcreturns zero hits. The supported inbound protocols are theProtocolenum ininternal/database/model/model.go:24-37(vmess,vless,tunnel,http,trojan,shadowsocks,mixed,wireguard,hysteria,mtproto,amneziawg,tuic), and the validate tag onInbound.Protocolrejects anything outside that list before it reaches the database (model.go:66):The architecture you are asking for does exist
Your points 2 and 4 describe a managed sidecar, and the panel already does exactly that twice:
internal/mtproto/process.go:165—exec.CommandContext(context.Background(), GetBinaryPath(), "run", p.configPath)(themtg-multibinary)internal/tuic/process.go:198—exec.CommandContext(context.Background(), GetBinaryPath(), "-c", p.configPath)(tuic-server)and AmneziaWG runs in-process over a userspace netstack (
internal/amneziawgnet/). So "panel writes a config, launches a binary, kills it on inbound delete" is a solved shape here, not a new one. Worth saying plainly, because the earlier olcrtc request #5814 was answered with "3x-ui can only expose protocols Xray-core itself implements" — that is no longer the whole story. The blocker is not upstream protocol support; it is the per-protocol integration cost.What one such protocol costs
TUIC is the most recent example: commit
6d96accd("Feature/tuic v5", #6337) — 100 files changed, 4139 insertions — and that is for a protocol with a stable spec, a released server binary and existing client support. Per protocol you would need:.github/workflows/release.yml:185-202fetchestuic-serverforx86_64/aarch64/armv7/i686, andDockerInit.sh:55-72does the same for the image. A server component that only builds from source does not fit this pipeline.internal/tuic/relay.go:20-21: Your point 4 ("even if it means parsing logs from the external binary") is not how per-client stats are done here.internal/util/link/,internal/sub/), panel UI (frontend/src/lib/xray/), docs site (docs/lib/xray/).internal/database/db.go, route entries infrontend/src/pages/api-docs/endpoints.ts, theStructAllowallowlist intools/openapigen/main.go, and new i18n keys in all 13 locale files underinternal/web/translation/.Multiply by three.
The fallback (your point 5) is the part I would not expect to land
"An inbound type where the user specifies a command line to launch" means an arbitrary command, supplied over the panel API, executed by a process the installer runs as root. Every
execcall site in the tree today runs a fixed binary — xray/mtg/tuic from the bin folder,fail2ban-client(internal/web/job/check_client_ip_job.go:470-472),ip,journalctl,pg_dump, and the panel's own update script — never a string that arrives from a request. That property is what keeps "someone got a panel session" from being "someone got root", and a user-editable command field would remove it.What you can do today, without a panel change
All three of these tools are TCP tunnels, which means you can already put one in front of an existing inbound:
Terminate the tunnel into a loopback-bound inbound. Run the tunnel's server component yourself on the VPS and point it at a 3x-ui inbound whose Address field (
listen,frontend/src/pages/inbounds/form/InboundFormModal.tsx:649-650) is set to127.0.0.1, so only the local tunnel process can reach that port. Client side, the user's tunnel client exposes a local TCP port and their VLESS profile connects through it. The VLESS handshake stays end-to-end, so per-client traffic limits and expiry keep working — Xray accounts traffic per client email, not per source address.Know what that costs you: the IP-limit / fail2ban feature stops being meaningful, because per-client IPs come from the core's online-stats API (
check_client_ip_job.go:30-33: "The per-client IPs come from the core's online-stats API; no access log is involved.") and every connection would appear to arrive from loopback. If the tunnel's server side can emit PROXY protocol, enableacceptProxyProtocolon the inbound transport — the panel exposes it for Raw/TCP, WebSocket and HTTPUpgrade (frontend/src/schemas/protocols/stream/{tcp,ws,httpupgrade}.ts) — and real client IPs come back.One subscription carrying both a VLESS entry and an
olcrtc://entry already works. Use per-client external links with kindsubscription(docs: Clients → Share links and external links): host a static text file containing yourolcrtc://lines and attach its URL to the client. The panel merges it verbatim —internal/sub/external_subscription.go:197-199keeps any line that contains://with no scheme allowlist:and
applyRemarkToLink(internal/sub/external_config.go:155-166) only touches the#fragmentfor non-vmess links; with no name prefix set,prefixedLinkNamereturns""for a link that has no fragment (external_config.go:141-149), so the line is emitted byte-for-byte.Two caveats, both confirmed in source:
link(pasting theolcrtc://URI straight into the client's external-link list) will not work —normalizeExternalLinksrunslink.ParseLink(value)and hard-errors"unsupported or invalid share link: "(internal/web/service/client_external_link.go:53-57). It must go in as a fetchedsubscription.internal/sub/json_service.go:182-185doesoutbound := parsedExternalOutbound(el.Link); if outbound == nil { continue }.That gets you a single subscription link per user, managed users, quotas and expiry — everything except IP limits and native stats for the tunnel hop itself.
What would move this forward
Three protocols in one issue is very unlikely to be actioned as a unit. Picking one — the one with the widest client support — and answering these three questions would make it assessable:
internal/util/link/,frontend/src/lib/xray/anddocs/lib/xray/can all implement the same thing)?x86_64/aarch64/armv7/i686and Windows, or must it be compiled from source on the VPS?internal/tuic/relay.go?I could not verify anything about the three linked upstream projects themselves (no network access to them from here), so everything above about them is taken from your description, not confirmed.
Verdict: Feature request
Related: #5814 (olcrtc only; closed as not planned)
This reply was generated automatically by an issue-triage assistant; a maintainer may follow up.
@poise52 commented on GitHub (Sep 14, 2026):
@AlexGame2012 OlcRTC и остальные разве еще рабочие для обхода бс? Лично у меня кто пользовался ими они уже отвалились.
Если и запариться над добавлением, то в один день тот же яндекс сделает микро-обновление (rate limit, капча, смена формата хэшей) и протокол в один день и умрет.
Я бы попробовал такое сделать, но думаю до идеала прям не готов сейчас допилить внедрение.
Лучше сделай проксирование как бот выше написал, поднять сервис на сервере отдельно и завернуть его в VLESS на 127.0.0.1. Так и трафик будет считаться на каждого юзера.
также зацени этот форк https://github.com/Bebrik2283555/Ex3-ui там вроде что-то реализовано на базе 3x из того, что ты перечислил в этом запросе
@egorbr4z commented on GitHub (Sep 15, 2026):
@poise52 У OlcRTC были проблемы примерно недели две, и потом, насколько знаю, он заработал. Но разработчик прекратил его поддержку, поэтому бесперспективный вариант. А вот FreeTurn и qWDTT сейчас выглядят интересно. Я пользуюсь FreeTurn через оффициальный sh скрипт уже около 2 месяцев, и все работает отлично. Хотя это не исключает того факта, что вк или другие провайдеры могут закрыть эту лазейку в один день и что тогда дальше в панели делать? Вырезать? Поэтому тема очень нишева, но интересна. Хотелось бы увидеть варианты реализации этих протоколов в панели.
@gms301991-maker commented on GitHub (Sep 28, 2026):
все работает, и в нем так же есть openflux.