[GH-ISSUE #6560] [Bug]: Routing rules do not apply to TUIC inbounds due to standalone sidecar architecture #4396

Closed
opened 2026-10-31 20:39:23 +07:00 by bsakaguchi · 1 comment
Owner

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

Describe the bug

There is an issue where any traffic entering through a TUIC inbound completely ignores the configured Routing Rules (Xray/Sing-box) and cannot be forwarded to any outbound proxy (e.g., creating a TUIC → VLESS cascade/proxy chain fails).

How to reproduce the problem

According to the documentation, TUIC (v5) is managed as a standalone Rust sidecar process (tuic-server) rather than running natively inside the core (Xray or Sing-box).Because of this architecture, tuic-server intercepts and processes the data independently. As a result, incoming traffic from TUIC clients never passes through the core's routing matrix. Any routing rules defined in the 3x-ui web panel (e.g., targeting inbound-tag or matching inbound ports) are completely bypassed, making it impossible to route TUIC traffic through specific outbounds.

Expected behavior

No response

Actual behavior

No response

Relevant logs


Screenshots

No response

3x-ui version

3.8.0

Xray-core version

26.9.9

How did you install 3x-ui?

install.sh script

Operating system

Debian 13

Which parts of the panel are affected?

No response

Browser (only if it is a UI bug)

No response

Is the panel behind a reverse proxy or CDN?

None

Before submitting

  • I searched existing issues and this bug has not been reported.
  • I am running the latest released version of 3x-ui (or have verified the bug still exists on it).
  • This bug report is written in English.
  • I have redacted any sensitive data (tokens, real domains, client UUIDs).
Originally created by @Ximilin on GitHub (Sep 15, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/6560 ### Describe the bug There is an issue where any traffic entering through a TUIC inbound completely ignores the configured Routing Rules (Xray/Sing-box) and cannot be forwarded to any outbound proxy (e.g., creating a TUIC → VLESS cascade/proxy chain fails). ### How to reproduce the problem According to the documentation, TUIC (v5) is managed as a standalone Rust sidecar process (tuic-server) rather than running natively inside the core (Xray or Sing-box).Because of this architecture, tuic-server intercepts and processes the data independently. As a result, incoming traffic from TUIC clients never passes through the core's routing matrix. Any routing rules defined in the 3x-ui web panel (e.g., targeting inbound-tag or matching inbound ports) are completely bypassed, making it impossible to route TUIC traffic through specific outbounds. ### Expected behavior _No response_ ### Actual behavior _No response_ ### Relevant logs ```shell ``` ### Screenshots _No response_ ### 3x-ui version 3.8.0 ### Xray-core version 26.9.9 ### How did you install 3x-ui? install.sh script ### Operating system Debian 13 ### Which parts of the panel are affected? _No response_ ### Browser (only if it is a UI bug) _No response_ ### Is the panel behind a reverse proxy or CDN? None ### Before submitting - [x] I searched [existing issues](../issues?q=is%3Aissue) and this bug has not been reported. - [x] I am running the latest released version of 3x-ui (or have verified the bug still exists on it). - [x] This bug report is written in English. - [x] I have redacted any sensitive data (tokens, real domains, client UUIDs).
bsakaguchi 2026-10-31 20:39:23 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

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

@Ximilin В данный момент туик не поддерживает маршрутизацию xray от панели, это описанно в архитектуре проекта.
Я уже делаю форк туика с апстримом , чтобы он поддерживал подсчет трафика и маршрутизацию, проблема, я не знаю одобрит такой pr мейнтейнер (что ноунейм форк туика будет типо)
github.com/MHSanaei/3x-ui@c9e62451e6/docs/architecture.md (L31-L34)

апдейт, я нашел решение уже занимаюсь

<!-- gh-comment-id:5688065006 --> @poise52 commented on GitHub (Sep 15, 2026): @Ximilin В данный момент туик не поддерживает маршрутизацию xray от панели, это описанно в архитектуре проекта. Я уже делаю форк туика с апстримом , чтобы он поддерживал подсчет трафика и маршрутизацию, проблема, я не знаю одобрит такой pr мейнтейнер (что ноунейм форк туика будет типо) https://github.com/MHSanaei/3x-ui/blob/c9e62451e6238e85fbd037fe61452a3ce39a32cf/docs/architecture.md?plain=1#L31-L34 апдейт, я нашел решение уже занимаюсь
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#4396
No description provided.