mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #6655] [Question]: Node cannot access 3x backend! #4444
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#4444
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/6655
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?
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):
This is most likely not DNS hijacking. It is probably the Xray routing on the VPS, or where that node sends its traffic out. I can't say which without a few details from you.
The most common cause. When you connect through the node, your browser's request for the panel goes out through Xray on the VPS. The default Xray template the panel generates blocks every private or loopback destination in two places:
internal/web/service/config.json:70-76, routing rule:"ip": ["geoip:private"]→"outboundTag": "blocked"internal/web/service/config.json:34-37,direct(freedom) outbound:"finalRules": [ { "action": "block", "ip": ["geoip:private"] }, { "action": "allow" } ]So if you open the panel by
127.0.0.1,localhost, a LAN/NAT address such as10.x,172.16-31.xor192.168.x, or a domain that resolves to one of those, Xray drops the request and the page never loads. The fix is simple: open the panel by the VPS's public IP or a public domain, or turn the node off while you use the panel.The other likely cause. You said the node gives you an exit IP on mobile broadband. If that exit is a separate outbound, such as a chained proxy or another server, then requests to the panel leave through that exit, not straight from the VPS. The exit network may not reach the panel's port. In that case, add a routing rule in Xray Configs → Routing that sends the VPS's own IP to the
directoutbound, and put it above the rule that sends traffic to the mobile-broadband outbound.To tell which case you're in, please reply with:
geoip:privateblock.ERR_...).outboundsandrouting.rulesas text, from Xray Configs → Advanced, with keys and passwords removed. This shows where panel traffic actually leaves.Verdict: Insufficient information
This reply was generated automatically. A maintainer may follow up.
@Dream211004 commented on GitHub (Sep 26, 2026):
[
{
"type": "field",
"inboundTag": [
"api"
],
"outboundTag": "api"
},
{
"type": "field",
"ip": [
"geoip:private"
],
"outboundTag": "blocked"
},
{
"type": "field",
"protocol": [
"bittorrent"
],
"outboundTag": "blocked"
},
{
"type": "field",
"enabled": true,
"user": [
"**********"
],
"outboundTag": "san"
}
]
The above is the complete content of my routing rules
I have tried using this node to link to IP or domain names, but both attempts were unsuccessful
@github-actions[bot] commented on GitHub (Sep 26, 2026):
Your routing rules explain it. The last rule sends all traffic from that client, including your requests to the panel, to the
sanoutbound. So your browser reaches the panel through the mobile-broadband exit, not directly from the VPS, and that path does not get through. The fix is to add a rule above theuserrule that sends the VPS's own address todirect.In Xray Configs → Routing, add this rule and move it above the
"user": [...] → "san"rule. Replace the placeholders with your VPS's public IP and, if you use one, the panel domain:Save, restart Xray, then open the panel by that public IP or domain. Two points matter here:
"domainStrategy": "AsIs"(internal/web/service/config.json:62) means aniprule does not match a request made by domain name.127.0.0.1,localhostor a private LAN address. Those are still dropped by thegeoip:private → blockedrule you already have (config.json:70-76). Thedirectoutbound also blocks them itself:"finalRules": [ { "action": "block", "ip": ["geoip:private"] }, ...](config.json:34-37).Rule order matters because Xray uses the first matching rule. Your list has no rule that catches the panel's address before the catch-all
userrule, so everything from that client goes tosan.If the panel still does not load after this, reply with:
sanentry from youroutbounds(protocol and address, secrets removed). This shows where that traffic actually leaves.ERR_CONNECTION_RESET, …).Verdict: Not a bug (user configuration)
This reply was generated automatically. A maintainer may follow up.
@Dream211004 commented on GitHub (Sep 26, 2026):
But I used other export IPs before, which may not be the export IPs of mobile broadband. I placed the configuration rules at the bottom of the routing rules, and at that time, it could be accessed normally. Why is this not possible?
@github-actions[bot] commented on GitHub (Sep 26, 2026):
It worked before because your old exit could reach the VPS's panel port, and the mobile-broadband exit cannot. The routing is the same in both cases. What changed is the network your panel requests now travel through.
With your rules, a request to the panel from that client matches the last rule (
"user": [...] → "san") and leaves the VPS through thesanexit. It then has to come back in from the internet to the VPS's public IP and panel port. That means:<VPS-IP>:<panel-port>, so the page loaded, even though the rule was at the bottom.3x-ui does not decide this. Xray treats every outbound tag the same way. The only blocking the panel's template adds is for private and loopback addresses (
geoip:private,internal/web/service/config.json:35and:72), and that applies to both exits equally. So the difference is in the exit network, not in your config.The fix from my previous reply still applies. Keep panel traffic from going out through
sanat all, by adding a rule above theuserrule:You can also check this yourself. On a phone that uses the same mobile network, with no VPN, open
http://<VPS-IP>:<panel-port>. If that also fails, the carrier is blocking that port. Moving the panel to a common port such as 443 or 8443, or using thedirectrule above, will get around it.I'm closing this because it is caused by the network path, not a 3x-ui defect. You can still reply here if the
directrule doesn't help.Verdict: Not a bug (user configuration)
This reply was generated automatically. A maintainer may follow up.