[GH-ISSUE #6655] [Question]: Node cannot access 3x backend! #4444

Closed
opened 2026-10-31 20:39:42 +07:00 by bsakaguchi · 5 comments
Owner

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

  • I read the Wiki and searched existing issues.
  • This is a usage question, not a bug report.
  • This question is written in English.
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 - [x] I read the [Wiki](https://github.com/MHSanaei/3x-ui/wiki) and searched [existing issues](../issues?q=is%3Aissue). - [x] This is a usage question, not a bug report. - [x] This question is written in English.
bsakaguchi 2026-10-31 20:39:42 +07:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@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 as 10.x, 172.16-31.x or 192.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 direct outbound, and put it above the rule that sends traffic to the mobile-broadband outbound.

To tell which case you're in, please reply with:

  1. The exact URL you open for the panel, meaning whether it uses an IP or a domain, which one, and the port. You can mask part of it. This tells me whether it hits the geoip:private block.
  2. What the browser shows, as the exact error text (timeout, connection reset, ERR_...).
  3. Your Xray outbounds and routing.rules as text, from Xray Configs → Advanced, with keys and passwords removed. This shows where panel traffic actually leaves.
  4. Whether the panel loads when the node is off.

Verdict: Insufficient information

This reply was generated automatically. A maintainer may follow up.

<!-- gh-comment-id:5845513058 --> @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 as `10.x`, `172.16-31.x` or `192.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 `direct` outbound, and put it above the rule that sends traffic to the mobile-broadband outbound. To tell which case you're in, please reply with: 1. The exact URL you open for the panel, meaning whether it uses an IP or a domain, which one, and the port. You can mask part of it. This tells me whether it hits the `geoip:private` block. 2. What the browser shows, as the exact error text (timeout, connection reset, `ERR_...`). 3. Your Xray `outbounds` and `routing.rules` as text, from **Xray Configs → Advanced**, with keys and passwords removed. This shows where panel traffic actually leaves. 4. Whether the panel loads when the node is **off**. Verdict: Insufficient information *This reply was generated automatically. A maintainer may follow up.* <!-- claude-issue:analyst -->
Author
Owner

@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

<!-- gh-comment-id:5845549542 --> @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
Author
Owner

@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 san outbound. 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 the user rule that sends the VPS's own address to direct.

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:

{
  "type": "field",
  "ip": ["203.0.113.10"],
  "domain": ["full:panel.example.com"],
  "outboundTag": "direct"
}

Save, restart Xray, then open the panel by that public IP or domain. Two points matter here:

  • Include the domain entry if you open the panel by domain. The template's "domainStrategy": "AsIs" (internal/web/service/config.json:62) means an ip rule does not match a request made by domain name.
  • Do not use 127.0.0.1, localhost or a private LAN address. Those are still dropped by the geoip:private → blocked rule you already have (config.json:70-76). The direct outbound 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 user rule, so everything from that client goes to san.

If the panel still does not load after this, reply with:

  1. The san entry from your outbounds (protocol and address, secrets removed). This shows where that traffic actually leaves.
  2. The exact error the browser shows (timeout, ERR_CONNECTION_RESET, …).
  3. Whether the panel loads when the node is off.

Verdict: Not a bug (user configuration)

This reply was generated automatically. A maintainer may follow up.

<!-- gh-comment-id:5845556435 --> @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 `san` outbound. 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** the `user` rule that sends the VPS's own address to `direct`. 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: ```json { "type": "field", "ip": ["203.0.113.10"], "domain": ["full:panel.example.com"], "outboundTag": "direct" } ``` Save, restart Xray, then open the panel by that **public** IP or domain. Two points matter here: - **Include the domain entry if you open the panel by domain.** The template's `"domainStrategy": "AsIs"` (`internal/web/service/config.json:62`) means an `ip` rule does not match a request made by domain name. - **Do not use `127.0.0.1`, `localhost` or a private LAN address.** Those are still dropped by the `geoip:private → blocked` rule you already have (`config.json:70-76`). The `direct` outbound 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 `user` rule, so everything from that client goes to `san`. If the panel still does not load after this, reply with: 1. The `san` entry from your `outbounds` (protocol and address, secrets removed). This shows where that traffic actually leaves. 2. The exact error the browser shows (timeout, `ERR_CONNECTION_RESET`, …). 3. Whether the panel loads when the node is off. Verdict: Not a bug (user configuration) *This reply was generated automatically. A maintainer may follow up.* <!-- claude-issue:analyst -->
Author
Owner

@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?

<!-- gh-comment-id:5845596619 --> @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?
Author
Owner

@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 the san exit. It then has to come back in from the internet to the VPS's public IP and panel port. That means:

  • Old exit (probably a datacenter or ordinary IP): the exit was allowed to connect to <VPS-IP>:<panel-port>, so the page loaded, even though the rule was at the bottom.
  • Mobile-broadband exit: mobile carriers and mobile/residential proxy providers often block or filter outgoing connections to non-standard ports, to datacenter IPs, or back to the server you are connecting from. The request never reaches the panel, so it fails whether you use the IP or the domain.

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:35 and :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 san at all, by adding a rule above the user rule:

{
  "type": "field",
  "ip": ["<VPS public IP>"],
  "domain": ["full:<panel domain>"],
  "outboundTag": "direct"
}

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 the direct rule 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 direct rule doesn't help.

Verdict: Not a bug (user configuration)

This reply was generated automatically. A maintainer may follow up.

<!-- gh-comment-id:5845604047 --> @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 the `san` exit. It then has to come back in from the internet to the VPS's public IP and panel port. That means: - **Old exit (probably a datacenter or ordinary IP):** the exit was allowed to connect to `<VPS-IP>:<panel-port>`, so the page loaded, even though the rule was at the bottom. - **Mobile-broadband exit:** mobile carriers and mobile/residential proxy providers often block or filter outgoing connections to non-standard ports, to datacenter IPs, or back to the server you are connecting from. The request never reaches the panel, so it fails whether you use the IP or the domain. 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:35` and `: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 `san` at all, by adding a rule **above** the `user` rule: ```json { "type": "field", "ip": ["<VPS public IP>"], "domain": ["full:<panel domain>"], "outboundTag": "direct" } ``` 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 the `direct` rule 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 `direct` rule doesn't help. Verdict: Not a bug (user configuration) *This reply was generated automatically. A maintainer may follow up.* <!-- claude-issue:analyst -->
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#4444
No description provided.