[GH-ISSUE #6487] [Feature]: Support for qWDTT / OlcRTC / OpenFlux to bypass DPI whitelisting in Russian mobile networks #4377

Open
opened 2026-10-31 20:39:13 +07:00 by bsakaguchi · 4 comments
Owner

Originally created by @AlexGame2012 on GitHub (Sep 12, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/6487

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:

  1. UI placement:
  • In the "Add Inbound" dropdown, add three new protocol options: qWDTT, OlcRTC, OpenFlux.
  • Each should have its own settings block with masquerading parameters:
    • OlcRTC: provider (jitsi / telemost / wbstream), transport (datachannel / vp8channel / seichannel / videochannel), room ID, encryption key.
    • qWDTT: VK call hash, server host/port, TURN credentials if needed.
    • OpenFlux: transport backend (yandex / max), document URL or MAX token/uid, optional AES-256-GCM toggle.
  1. Config structure:
  • Each protocol generates a JSON config on the server side that the panel writes to disk and launches as a managed process (like xray-core is launched now).
  • The panel should store these configs in the same directory as existing inbounds, and expose them via the same inbound API.
  1. API:
  • Extend /panel/inbound/add, /panel/inbound/update, /panel/inbound/list to accept the new protocol field.
  • Add GET /panel/inbound/olcrtc/:id/uri or similar to return a shareable URI (olcrtc://) for clients.
  • Support subscription generation: the panel should output olcrtc:// URIs and qWDTT configs in the subscription endpoint alongside existing VLESS/VMess links.
  1. Expected behavior:
  • When adding an inbound, the panel should be able to auto-generate a room ID / document URL if the user does not provide one.
  • If the underlying external binary (olcrtc srv, qWDTT server, universal-bypass-tool) is missing, the panel should show a clear warning in the UI and offer to download/install it, instead of failing silently.
  • On inbound delete, the panel must kill the associated process and remove its config.
  • Traffic stats (uplink/downlink, connected clients) should be collected the same way as for xray inbounds, even if it means parsing logs from the external binary.
  1. Fallback:
  • If full native integration is too complex, at minimum add a "Custom Outbound / External Tunnel" inbound type where the user specifies a command line to launch, a config path, and a SOCKS5 port that 3x-ui routes traffic through. Ready-made templates for qWDTT / OlcRTC / OpenFlux can be shipped as presets.

Alternatives you've considered

I have tested the following alternatives, and none of them work reliably under mobile DPI whitelisting in Russia:

  1. 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.

  2. 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.

  3. Trojan / Shadowsocks
    Detected by signature and blocked immediately on handshake or dropped after a few seconds.

  4. 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.

  5. 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:

  • Extremely expensive — whitelisted CDN / hosting providers in Russia charge heavily for this, and the allowed IP ranges are limited and tightly controlled.
  • Unstable — the whitelist changes frequently, so an IP that works today may be blocked tomorrow.
  • Not scalable — cannot serve many users through a single whitelisted endpoint without raising suspicion and getting it blocked.
  • Requires owning or renting the whitelisted infrastructure, which most users cannot afford.
  1. 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.

  2. Chaining 3x-ui with an external SOCKS5 proxy (olcrtc cnc / qWDTT client on the phone)
    Works in theory, but:

  • No native integration in the panel — impossible to manage users, traffic limits, or subscriptions.
  • Each user must install and configure the external client manually — not scalable.
  • The panel cannot see traffic stats or apply per-user rules through the external tunnel.
  1. Standard 3x-ui subscription links
    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:

  • 1 VPS in Russia, 3x-ui with VLESS + Reality, plus a backup VPS abroad with VLESS + WebSocket.
  • 5 inbound channels total (2 main, 3 backups).
  • ~40 active users, each with 1-2 devices (phone + laptop), so roughly 60-70 simultaneous client sessions at peak.

What happens today:

  • On Wi-Fi at home, everything works fine — VLESS + Reality passes.
  • On mobile internet, 100% of connections fail within 2-3 seconds. The client shows "handshake failed" or just times out. Reality, WS, Trojan — all dead. The panel logs show zero incoming traffic from mobile IPs.
  • Users end up switching to the VK app or Yandex services just to stay online, and my VPN is effectively useless to them from 8 AM to 10 PM, which is exactly when they need it most.

What the feature would change:

  • If 3x-ui supported qWDTT / OlcRTC / OpenFlux as inbound types, I could:
    • Issue each user a single subscription link that contains an olcrtc:// entry (Telemost provider) plus a VLESS entry for Wi-Fi.
    • Let the client app auto-select the working transport depending on the network.
    • Keep managing users, traffic limits, and expiration dates in the same panel, instead of asking 40 people to install and manually configure an external client.
  • Realistic numbers: with 40 users at ~2-5 GB/month each, I would need roughly 100-200 GB/month of relayed traffic. A single olcrtc srv node with Telemost as the provider can handle that, but only if the panel can launch it, monitor it, and route per-user traffic through it.

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:

  1. 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.

  2. 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:

  1. OpenFlux — TCP tunnel with pluggable transports
    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?

  • I'd like to implement this feature myself and open a PR.
  • I can help test once a PR is open.

Before submitting

  • I searched existing issues and this feature has not been requested.
  • This feature request is written in English.
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: 1. UI placement: - In the "Add Inbound" dropdown, add three new protocol options: qWDTT, OlcRTC, OpenFlux. - Each should have its own settings block with masquerading parameters: - OlcRTC: provider (jitsi / telemost / wbstream), transport (datachannel / vp8channel / seichannel / videochannel), room ID, encryption key. - qWDTT: VK call hash, server host/port, TURN credentials if needed. - OpenFlux: transport backend (yandex / max), document URL or MAX token/uid, optional AES-256-GCM toggle. 2. Config structure: - Each protocol generates a JSON config on the server side that the panel writes to disk and launches as a managed process (like xray-core is launched now). - The panel should store these configs in the same directory as existing inbounds, and expose them via the same inbound API. 3. API: - Extend /panel/inbound/add, /panel/inbound/update, /panel/inbound/list to accept the new protocol field. - Add GET /panel/inbound/olcrtc/:id/uri or similar to return a shareable URI (olcrtc://) for clients. - Support subscription generation: the panel should output olcrtc:// URIs and qWDTT configs in the subscription endpoint alongside existing VLESS/VMess links. 4. Expected behavior: - When adding an inbound, the panel should be able to auto-generate a room ID / document URL if the user does not provide one. - If the underlying external binary (olcrtc srv, qWDTT server, universal-bypass-tool) is missing, the panel should show a clear warning in the UI and offer to download/install it, instead of failing silently. - On inbound delete, the panel must kill the associated process and remove its config. - Traffic stats (uplink/downlink, connected clients) should be collected the same way as for xray inbounds, even if it means parsing logs from the external binary. 5. Fallback: - If full native integration is too complex, at minimum add a "Custom Outbound / External Tunnel" inbound type where the user specifies a command line to launch, a config path, and a SOCKS5 port that 3x-ui routes traffic through. Ready-made templates for qWDTT / OlcRTC / OpenFlux can be shipped as presets. ### Alternatives you've considered I have tested the following alternatives, and none of them work reliably under mobile DPI whitelisting in Russia: 1. 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. 2. 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. 3. Trojan / Shadowsocks Detected by signature and blocked immediately on handshake or dropped after a few seconds. 4. 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. 5. 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: - Extremely expensive — whitelisted CDN / hosting providers in Russia charge heavily for this, and the allowed IP ranges are limited and tightly controlled. - Unstable — the whitelist changes frequently, so an IP that works today may be blocked tomorrow. - Not scalable — cannot serve many users through a single whitelisted endpoint without raising suspicion and getting it blocked. - Requires owning or renting the whitelisted infrastructure, which most users cannot afford. 6. 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. 7. Chaining 3x-ui with an external SOCKS5 proxy (olcrtc cnc / qWDTT client on the phone) Works in theory, but: - No native integration in the panel — impossible to manage users, traffic limits, or subscriptions. - Each user must install and configure the external client manually — not scalable. - The panel cannot see traffic stats or apply per-user rules through the external tunnel. 8. Standard 3x-ui subscription links 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: - 1 VPS in Russia, 3x-ui with VLESS + Reality, plus a backup VPS abroad with VLESS + WebSocket. - 5 inbound channels total (2 main, 3 backups). - ~40 active users, each with 1-2 devices (phone + laptop), so roughly 60-70 simultaneous client sessions at peak. What happens today: - On Wi-Fi at home, everything works fine — VLESS + Reality passes. - On mobile internet, 100% of connections fail within 2-3 seconds. The client shows "handshake failed" or just times out. Reality, WS, Trojan — all dead. The panel logs show zero incoming traffic from mobile IPs. - Users end up switching to the VK app or Yandex services just to stay online, and my VPN is effectively useless to them from 8 AM to 10 PM, which is exactly when they need it most. What the feature would change: - If 3x-ui supported qWDTT / OlcRTC / OpenFlux as inbound types, I could: - Issue each user a single subscription link that contains an olcrtc:// entry (Telemost provider) plus a VLESS entry for Wi-Fi. - Let the client app auto-select the working transport depending on the network. - Keep managing users, traffic limits, and expiration dates in the same panel, instead of asking 40 people to install and manually configure an external client. - Realistic numbers: with 40 users at ~2-5 GB/month each, I would need roughly 100-200 GB/month of relayed traffic. A single olcrtc srv node with Telemost as the provider can handle that, but only if the panel can launch it, monitor it, and route per-user traffic through it. 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: 1. 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. 2. 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: - https://github.com/owenewans/owenclave (Android, fork of exclave) - https://github.com/venterum/veil (Android, fork of v2rayNG) - https://github.com/alananisimov/olcbox (KMP client for Android/iOS/macOS/Windows/Linux) These clients already consume olcrtc:// URIs and subscriptions, so if 3x-ui could generate them, integration would be immediate. 3. OpenFlux — TCP tunnel with pluggable transports 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: <generated> key: <generated> 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 <egress-ip> \ --url "YOUR_YANDEX_DOC_URL" --debug Subscription output example (what the panel would emit): olcrtc://<base64-or-json-payload> 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? - [ ] I'd like to implement this feature myself and open a PR. - [x] I can help test once a PR is open. ### Before submitting - [x] I searched [existing issues](../issues?q=is%3Aissue) and this feature has not been requested. - [x] This feature request is written in English.
Author
Owner

@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, openflux and webrtc returns zero hits. The supported inbound protocols are the Protocol enum in internal/database/model/model.go:24-37 (vmess, vless, tunnel, http, trojan, shadowsocks, mixed, wireguard, hysteria, mtproto, amneziawg, tuic), and the validate tag on Inbound.Protocol rejects anything outside that list before it reaches the database (model.go:66):

Protocol Protocol `json:"protocol" form:"protocol" validate:"required,oneof=vmess vless trojan shadowsocks wireguard hysteria http mixed tunnel tun mtproto amneziawg tuic" example:"vless"`

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) (the mtg-multi binary)
  • 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:

  1. A prebuilt server binary for every release target, or it cannot be bundled. .github/workflows/release.yml:185-202 fetches tuic-server for x86_64/aarch64/armv7/i686, and DockerInit.sh:55-72 does the same for the image. A server component that only builds from source does not fit this pipeline.
  2. Traffic accounting — and not by parsing logs. When a sidecar has no stats API, this repo writes a byte-counting relay. internal/tuic/relay.go:20-21:
    // udpRelay owns an inbound's public UDP port and counts the bytes it forwards to
    // the sidecar on loopback: tuic-server has no stats API and /proc/io stays at 0.
    
    Your point 4 ("even if it means parsing logs from the external binary") is not how per-client stats are done here.
  3. Share links implemented three times, independently: Go (internal/util/link/, internal/sub/), panel UI (frontend/src/lib/xray/), docs site (docs/lib/xray/).
  4. Plus the standard chain: a migration in internal/database/db.go, route entries in frontend/src/pages/api-docs/endpoints.ts, the StructAllow allowlist in tools/openapigen/main.go, and new i18n keys in all 13 locale files under internal/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 exec call 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:

  1. 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 to 127.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.

  2. 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, enable acceptProxyProtocol on 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.

  3. One subscription carrying both a VLESS entry and an olcrtc:// entry already works. Use per-client external links with kind subscription (docs: Clients → Share links and external links): host a static text file containing your olcrtc:// lines and attach its URL to the client. The panel merges it verbatim — internal/sub/external_subscription.go:197-199 keeps any line that contains :// with no scheme allowlist:

    if strings.Contains(ln, "://") {
        out = append(out, ln)
    }
    

    and applyRemarkToLink (internal/sub/external_config.go:155-166) only touches the #fragment for non-vmess links; with no name prefix set, prefixedLinkName returns "" 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:

    • Kind link (pasting the olcrtc:// URI straight into the client's external-link list) will not work — normalizeExternalLinks runs link.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 fetched subscription.
    • This only applies to the raw/base64 subscription format. The JSON and Clash formats drop the entry, because they need a parseable outbound: internal/sub/json_service.go:182-185 does outbound := 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:

  1. Is the URI format documented and stable (so internal/util/link/, frontend/src/lib/xray/ and docs/lib/xray/ can all implement the same thing)?
  2. Does its server component publish prebuilt release binaries for linux x86_64/aarch64/armv7/i686 and Windows, or must it be compiled from source on the VPS?
  3. How would per-client bytes be counted — does it expose a stats API, or would it need a counting relay like 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.

<!-- gh-comment-id:5648247892 --> @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`, `openflux` and `webrtc` returns zero hits. The supported inbound protocols are the `Protocol` enum in `internal/database/model/model.go:24-37` (`vmess`, `vless`, `tunnel`, `http`, `trojan`, `shadowsocks`, `mixed`, `wireguard`, `hysteria`, `mtproto`, `amneziawg`, `tuic`), and the validate tag on `Inbound.Protocol` rejects anything outside that list before it reaches the database (`model.go:66`): ```go Protocol Protocol `json:"protocol" form:"protocol" validate:"required,oneof=vmess vless trojan shadowsocks wireguard hysteria http mixed tunnel tun mtproto amneziawg tuic" example:"vless"` ``` ## 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)` (the `mtg-multi` binary) - `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: 1. **A prebuilt server binary for every release target**, or it cannot be bundled. `.github/workflows/release.yml:185-202` fetches `tuic-server` for `x86_64`/`aarch64`/`armv7`/`i686`, and `DockerInit.sh:55-72` does the same for the image. A server component that only builds from source does not fit this pipeline. 2. **Traffic accounting — and not by parsing logs.** When a sidecar has no stats API, this repo writes a byte-counting relay. `internal/tuic/relay.go:20-21`: ```go // udpRelay owns an inbound's public UDP port and counts the bytes it forwards to // the sidecar on loopback: tuic-server has no stats API and /proc/io stays at 0. ``` Your point 4 ("even if it means parsing logs from the external binary") is not how per-client stats are done here. 3. **Share links implemented three times**, independently: Go (`internal/util/link/`, `internal/sub/`), panel UI (`frontend/src/lib/xray/`), docs site (`docs/lib/xray/`). 4. Plus the standard chain: a migration in `internal/database/db.go`, route entries in `frontend/src/pages/api-docs/endpoints.ts`, the `StructAllow` allowlist in `tools/openapigen/main.go`, and new i18n keys in all 13 locale files under `internal/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 `exec` call 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: 1. **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 to `127.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. 2. **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, enable `acceptProxyProtocol` on 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. 3. **One subscription carrying both a VLESS entry and an `olcrtc://` entry already works.** Use per-client **external links** with kind `subscription` (docs: [Clients → Share links and external links](https://docs.sanaei.dev/docs/config/clients)): host a static text file containing your `olcrtc://` lines and attach its URL to the client. The panel merges it verbatim — `internal/sub/external_subscription.go:197-199` keeps any line that contains `://` with no scheme allowlist: ```go if strings.Contains(ln, "://") { out = append(out, ln) } ``` and `applyRemarkToLink` (`internal/sub/external_config.go:155-166`) only touches the `#fragment` for non-vmess links; with no name prefix set, `prefixedLinkName` returns `""` 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: - Kind `link` (pasting the `olcrtc://` URI straight into the client's external-link list) will **not** work — `normalizeExternalLinks` runs `link.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 fetched `subscription`. - This only applies to the raw/base64 subscription format. The JSON and Clash formats drop the entry, because they need a parseable outbound: `internal/sub/json_service.go:182-185` does `outbound := 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: 1. Is the URI format documented and stable (so `internal/util/link/`, `frontend/src/lib/xray/` and `docs/lib/xray/` can all implement the same thing)? 2. Does its server component publish prebuilt release binaries for linux `x86_64`/`aarch64`/`armv7`/`i686` and Windows, or must it be compiled from source on the VPS? 3. How would per-client bytes be counted — does it expose a stats API, or would it need a counting relay like `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.* <!-- claude-issue:analyst -->
Author
Owner

@poise52 commented on GitHub (Sep 14, 2026):

@AlexGame2012 OlcRTC и остальные разве еще рабочие для обхода бс? Лично у меня кто пользовался ими они уже отвалились.
Если и запариться над добавлением, то в один день тот же яндекс сделает микро-обновление (rate limit, капча, смена формата хэшей) и протокол в один день и умрет.
Я бы попробовал такое сделать, но думаю до идеала прям не готов сейчас допилить внедрение.
Лучше сделай проксирование как бот выше написал, поднять сервис на сервере отдельно и завернуть его в VLESS на 127.0.0.1. Так и трафик будет считаться на каждого юзера.
также зацени этот форк https://github.com/Bebrik2283555/Ex3-ui там вроде что-то реализовано на базе 3x из того, что ты перечислил в этом запросе

<!-- gh-comment-id:5663863280 --> @poise52 commented on GitHub (Sep 14, 2026): @AlexGame2012 OlcRTC и остальные разве еще рабочие для обхода бс? Лично у меня кто пользовался ими они уже отвалились. Если и запариться над добавлением, то в один день тот же яндекс сделает микро-обновление (rate limit, капча, смена формата хэшей) и протокол в один день и умрет. Я бы попробовал такое сделать, но думаю до идеала прям не готов сейчас допилить внедрение. Лучше сделай проксирование как бот выше написал, поднять сервис на сервере отдельно и завернуть его в VLESS на 127.0.0.1. Так и трафик будет считаться на каждого юзера. также зацени этот форк https://github.com/Bebrik2283555/Ex3-ui там вроде что-то реализовано на базе 3x из того, что ты перечислил в этом запросе
Author
Owner

@egorbr4z commented on GitHub (Sep 15, 2026):

@poise52 У OlcRTC были проблемы примерно недели две, и потом, насколько знаю, он заработал. Но разработчик прекратил его поддержку, поэтому бесперспективный вариант. А вот FreeTurn и qWDTT сейчас выглядят интересно. Я пользуюсь FreeTurn через оффициальный sh скрипт уже около 2 месяцев, и все работает отлично. Хотя это не исключает того факта, что вк или другие провайдеры могут закрыть эту лазейку в один день и что тогда дальше в панели делать? Вырезать? Поэтому тема очень нишева, но интересна. Хотелось бы увидеть варианты реализации этих протоколов в панели.

<!-- gh-comment-id:5678426441 --> @egorbr4z commented on GitHub (Sep 15, 2026): @poise52 У OlcRTC были проблемы примерно недели две, и потом, насколько знаю, он заработал. Но разработчик прекратил его поддержку, поэтому бесперспективный вариант. А вот FreeTurn и qWDTT сейчас выглядят интересно. Я пользуюсь FreeTurn через оффициальный sh скрипт уже около 2 месяцев, и все работает отлично. Хотя это не исключает того факта, что вк или другие провайдеры могут закрыть эту лазейку в один день и что тогда дальше в панели делать? Вырезать? Поэтому тема очень нишева, но интересна. Хотелось бы увидеть варианты реализации этих протоколов в панели.
Author
Owner

@gms301991-maker commented on GitHub (Sep 28, 2026):

@poise52 У OlcRTC были проблемы примерно недели две, и потом, насколько знаю, он заработал. Но разработчик прекратил его поддержку, поэтому бесперспективный вариант. А вот FreeTurn и qWDTT сейчас выглядят интересно. Я пользуюсь FreeTurn через оффициальный sh скрипт уже около 2 месяцев, и все работает отлично. Хотя это не исключает того факта, что вк или другие провайдеры могут закрыть эту лазейку в один день и что тогда дальше в панели делать? Вырезать? Поэтому тема очень нишева, но интересна. Хотелось бы увидеть варианты реализации этих протоколов в панели.

все работает, и в нем так же есть openflux.

<!-- gh-comment-id:5868984816 --> @gms301991-maker commented on GitHub (Sep 28, 2026): > [@poise52](https://github.com/poise52) У OlcRTC были проблемы примерно недели две, и потом, насколько знаю, он заработал. Но разработчик прекратил его поддержку, поэтому бесперспективный вариант. А вот FreeTurn и qWDTT сейчас выглядят интересно. Я пользуюсь FreeTurn через оффициальный sh скрипт уже около 2 месяцев, и все работает отлично. Хотя это не исключает того факта, что вк или другие провайдеры могут закрыть эту лазейку в один день и что тогда дальше в панели делать? Вырезать? Поэтому тема очень нишева, но интересна. Хотелось бы увидеть варианты реализации этих протоколов в панели. все работает, и в нем так же есть openflux.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#4377
No description provided.