mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #6656] [Question]: Node cannot access 3x backend! #4445
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#4445
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 @Dream211004 on GitHub (Sep 26, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/6656
What are you trying to do?
I used the 3xui panel on the VPS server to set up an export IP node for mobile broadband. There is a strange problem here, which is that when using this node, I cannot access the 3xui backend of VPS. How can I solve this problem? Is it related to mobile broadband DNS hijacking?
I have a VPS server that can be configured according to the method you mentioned, but another VPS server configured in this way still cannot access the corresponding 3x backend. Why is this? Here is a comparison of the two configurations:
===================
The 3xui panel corresponding to this configuration can be accessed normally
{
"type": "field",
"enabled": true,
"ip": [
"38.246.242.252"
],
"outboundTag": "direct"
}
The 3xui panel corresponding to this configuration cannot be accessed normally
{
"type": "field",
"enabled": true,
"domain": [
"bnsdmmyx.de5.net"
],
"ip": [
"104.233.148.34"
],
"outboundTag": "direct"
},
Can it be explained that it is related to the VPS server?
What have you already tried?
No response
3x-ui version
3.8.5
How did you install 3x-ui?
install.sh script
Operating system
Ubuntu 24.04
Screenshots or config snippets
No response
Before submitting
@github-actions[bot] commented on GitHub (Sep 26, 2026):
The problem is the second rule itself, not the VPS. In Xray, when one routing rule lists several conditions, all of them must match at the same time. Your second rule asks for a request whose destination is the domain
bnsdmmyx.de5.netand also the IP104.233.148.34, and no request is ever both. The rule never matches, so the panel traffic falls through to your"user": [...] → "san"rule and leaves through the mobile-broadband exit, just as before.This is my fault. The automated reply on #6655 suggested putting
ipanddomainin one rule, which is wrong. Sorry about that.Fix: split it into two rules, and put both above the
user → sanrule in Xray Configs → Routing:Save and restart Xray. Now the panel URL matches whether you open it by domain or by IP.
Why the first VPS works: its rule has one condition only (
"ip": ["38.246.242.252"]), so it matches whenever you open that panel by its IP. The panel's default routing template uses"domainStrategy": "AsIs"(internal/web/service/config.json:62). With that setting Xray does not resolve domains when it checks routing rules, so anip-only rule does not match if you open the panel by a domain name. That is why the domain rule is needed as a separate entry.As before, do not open the panel by
127.0.0.1,localhostor a private address. The template's"ip": ["geoip:private"] → "blocked"rule drops those (internal/web/service/config.json:70-76).If both panels still fail after you split the rule, reply with the exact URL you open (you can mask part of it) and the exact browser error text.
Verdict: Not a bug (user configuration). Related: #6655 (same setup; the combined-rule suggestion there is corrected above). The AND behaviour of conditions within one rule is documented Xray-core routing behaviour. It is not implemented in this repository, so I could not cite it from the checkout.
This reply was generated automatically. A maintainer may follow up.