[GH-ISSUE #4024] [Bug]: Routing rules ignored in v26.4.x / Panel v2.8.11 - RU domains not blocked xtls-rprx-vision #2724

Closed
opened 2026-10-31 20:27:29 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @SERSX on GitHub (Apr 14, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4024

Describe the bug

Critical routing failure in Xray-core v26.4.x with Panel v2.8.11. Routing rules configured in the panel are being completely ignored. Specifically, domains set to be blocked (e.g., .ru domains) are still accessible through the proxy tunnel. This is a severe security risk as it leads to unintended traffic passing through the proxy.

To Reproduce

  1. Use Panel v2.8.11 on Ubuntu 22.04.
  2. Update Xray-core to v26.4.x.
  3. Set a routing rule to "Block" for .ru domains.
  4. Reboot the server or restart the x-ui service.
  5. Connect via VPN and access a .ru website. The site remains accessible, and logs show it is being proxied.

Expected behavior

The core must strictly follow the routing configuration. Blocked domains should not be accessible.

Environment

  • Panel Version: v2.8.11 (MHSanaei)
  • Xray-core Version: v26.4.x (Latest)
  • OS: Ubuntu 22.04 LTS

Logs

1. Logs from Panel Web Interface:

 2026/04/14 20:55:50 WARNING - XRAY: core: Xray 26.4.13 started
2026/04/14 20:55:49 DEBUG - X-UI: Failed to fetch Xray traffic:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp 127.0.0.1:62789: connect: connection refused"
2026/04/14 20:55:49 DEBUG - X-UI: Failed to query Xray stats:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp 127.0.0.1:62789: connect: connection refused"
2026/04/14 20:55:48 ERROR - XRAY: common/geodata: ignore invalid geosite entry in geosite_IR.dat:PHISHING at index 6096, pattern string does not conform to Letter-Digit-Hyphen (LDH) subset


Originally created by @SERSX on GitHub (Apr 14, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4024 ### Describe the bug Critical routing failure in Xray-core **v26.4.x** with Panel **v2.8.11**. Routing rules configured in the panel are being completely ignored. Specifically, domains set to be blocked (e.g., `.ru` domains) are still accessible through the proxy tunnel. This is a severe security risk as it leads to unintended traffic passing through the proxy. ### To Reproduce 1. Use Panel **v2.8.11** on **Ubuntu 22.04**. 2. Update Xray-core to **v26.4.x**. 3. Set a routing rule to "Block" for `.ru` domains. 4. Reboot the server or restart the x-ui service. 5. Connect via VPN and access a `.ru` website. The site remains accessible, and logs show it is being proxied. ### Expected behavior The core must strictly follow the routing configuration. Blocked domains should not be accessible. ### Environment - **Panel Version:** v2.8.11 (MHSanaei) - **Xray-core Version:** v26.4.x (Latest) - **OS:** Ubuntu 22.04 LTS ### Logs **1. Logs from Panel Web Interface:** ```text 2026/04/14 20:55:50 WARNING - XRAY: core: Xray 26.4.13 started 2026/04/14 20:55:49 DEBUG - X-UI: Failed to fetch Xray traffic:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp 127.0.0.1:62789: connect: connection refused" 2026/04/14 20:55:49 DEBUG - X-UI: Failed to query Xray stats:rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp 127.0.0.1:62789: connect: connection refused" 2026/04/14 20:55:48 ERROR - XRAY: common/geodata: ignore invalid geosite entry in geosite_IR.dat:PHISHING at index 6096, pattern string does not conform to Letter-Digit-Hyphen (LDH) subset
Author
Owner

@SERSX commented on GitHub (Apr 15, 2026):

Technical Report: Outbound Traffic Leak and Routing Failure
Environment:
OS: Ubuntu 22.04 LTS
Service: Dockerized 3X-UI (Xray-core 26.4.13)
Status: Critical Routing Leak Confirmed (Regression)

  1. Incident Description
    The system is failing to maintain the "Block RU" policy. While domain-based filtering is partially active, parallel connections bypass the security layer, causing the SERVER_IP to be exposed to destination servers. This has been verified with two primary sources: Yandex and 2ip.ru.
    Note on Regression:
    Previously, the system was fully stable, and the server successfully blocked all Russian traffic without any leaks. This issue appeared recently, likely following a core update or change in the geo-database handling.
  2. Evidence: Log Citations
    Source A: Leak to Yandex (IP: 5.255.255.77)
    The logs show that Xray-core fails to identify the domain and defaults to a direct connection via the server's primary IP:
    INFO - XRAY: [ID] proxy/vless/inbound: received request for tcp:5.255.255.77:443
    INFO - XRAY: [ID] app/dispatcher: default route for tcp:5.255.255.77:443
    INFO - XRAY: [ID] proxy/freedom: connection opened to tcp:5.255.255.77:443, local endpoint SERVER_IP:41602, remote endpoint 5.255.255.77:443
    Source B: Leak to 2ip.ru (IP: 188.40.167.82)
    The logs demonstrate a "Race Condition" where one stream is blocked while a simultaneous stream leaks the real IP:
    INFO - XRAY: [ID] app/dispatcher: sniffed domain: 2ip.ru
    INFO - XRAY: [ID] app/dispatcher: taking detour [blocked] for [tcp:2ip.ru:443]
    INFO - XRAY: [ID] proxy/vless/inbound: received request for tcp:188.40.167.82:443
    INFO - XRAY: [ID] app/dispatcher: default route for tcp:188.40.167.82:443
    INFO - XRAY: [ID] proxy/freedom: connection opened to tcp:188.40.167.82:443, local endpoint SERVER_IP:34008, remote endpoint 188.40.167.82:443
    Source C: Protocol Handshake Failure (Inbound)
    The inbound REALITY protocol is rejecting connections from the user's primary IP:
    ERROR - XRAY: transport/internet/tcp: REALITY: processed invalid connection from MY_IP: failed to read client hello
  3. Root Cause Analysis
    Routing Rule Misconfiguration: The current configuration only utilizes geosite:ru (domain-based blocking). There is no geoip:ru rule, meaning any connection that bypasses "sniffing" is treated as safe and sent to the freedom outbound.
    Restrictive Geo-List: The rule currently uses "ext:geosite_RU.dat:ru-available-only-inside", which is too narrow and does not cover standard Russian domains like Yandex.
    Established Leaks: Real-time network statistics confirm the leak:
    tcp 0 0 SERVER_IP:41602 5.255.255.77:443 ESTABLISHED
    tcp 0 0 SERVER_IP:34008 188.40.167.82:443 ESTABLISHED
<!-- gh-comment-id:4250736383 --> @SERSX commented on GitHub (Apr 15, 2026): Technical Report: Outbound Traffic Leak and Routing Failure Environment: OS: Ubuntu 22.04 LTS Service: Dockerized 3X-UI (Xray-core 26.4.13) Status: Critical Routing Leak Confirmed (Regression) 1. Incident Description The system is failing to maintain the "Block RU" policy. While domain-based filtering is partially active, parallel connections bypass the security layer, causing the SERVER_IP to be exposed to destination servers. This has been verified with two primary sources: Yandex and 2ip.ru. Note on Regression: Previously, the system was fully stable, and the server successfully blocked all Russian traffic without any leaks. This issue appeared recently, likely following a core update or change in the geo-database handling. 2. Evidence: Log Citations Source A: Leak to Yandex (IP: 5.255.255.77) The logs show that Xray-core fails to identify the domain and defaults to a direct connection via the server's primary IP: INFO - XRAY: [ID] proxy/vless/inbound: received request for tcp:5.255.255.77:443 INFO - XRAY: [ID] app/dispatcher: default route for tcp:5.255.255.77:443 INFO - XRAY: [ID] proxy/freedom: connection opened to tcp:5.255.255.77:443, local endpoint SERVER_IP:41602, remote endpoint 5.255.255.77:443 Source B: Leak to 2ip.ru (IP: 188.40.167.82) The logs demonstrate a "Race Condition" where one stream is blocked while a simultaneous stream leaks the real IP: INFO - XRAY: [ID] app/dispatcher: sniffed domain: 2ip.ru INFO - XRAY: [ID] app/dispatcher: taking detour [blocked] for [tcp:2ip.ru:443] INFO - XRAY: [ID] proxy/vless/inbound: received request for tcp:188.40.167.82:443 INFO - XRAY: [ID] app/dispatcher: default route for tcp:188.40.167.82:443 INFO - XRAY: [ID] proxy/freedom: connection opened to tcp:188.40.167.82:443, local endpoint SERVER_IP:34008, remote endpoint 188.40.167.82:443 Source C: Protocol Handshake Failure (Inbound) The inbound REALITY protocol is rejecting connections from the user's primary IP: ERROR - XRAY: transport/internet/tcp: REALITY: processed invalid connection from MY_IP: failed to read client hello 3. Root Cause Analysis Routing Rule Misconfiguration: The current configuration only utilizes geosite:ru (domain-based blocking). There is no geoip:ru rule, meaning any connection that bypasses "sniffing" is treated as safe and sent to the freedom outbound. Restrictive Geo-List: The rule currently uses "ext:geosite_RU.dat:ru-available-only-inside", which is too narrow and does not cover standard Russian domains like Yandex. Established Leaks: Real-time network statistics confirm the leak: tcp 0 0 SERVER_IP:41602 5.255.255.77:443 ESTABLISHED tcp 0 0 SERVER_IP:34008 188.40.167.82:443 ESTABLISHED
Author
Owner

@FOXGLove81 commented on GitHub (Apr 29, 2026):

I confirm the problem.

<!-- gh-comment-id:4341369489 --> @FOXGLove81 commented on GitHub (Apr 29, 2026): I confirm the problem.
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#2724
No description provided.