mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #4024] [Bug]: Routing rules ignored in v26.4.x / Panel v2.8.11 - RU domains not blocked xtls-rprx-vision #2724
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#2724
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 @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.,
.rudomains) 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
.rudomains..ruwebsite. 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
Logs
1. Logs from Panel Web Interface:
@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)
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.
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
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
@FOXGLove81 commented on GitHub (Apr 29, 2026):
I confirm the problem.