[GH-ISSUE #5793] [Bug]: Reverse Tunnel is broken in 3X-UI v3.4.2 due to removal of Xray-core v26.4.25 support #4027

Closed
opened 2026-10-31 20:36:38 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @JamaliPour on GitHub (Jul 4, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5793

Describe the bug

Description

After upgrading to 3X-UI v3.4.2, the Reverse Tunnel feature no longer works.

The issue appears to be related to the fact that v3.4.2 only supports Xray-core v26.6.27, while older Xray-core versions have been removed from the panel.

Previously, @MHSanaei mentioned that Reverse Tunnel should use Xray-core v26.4.25, as newer versions introduced changes that broke compatibility.

Since v26.4.25 is no longer available in 3X-UI v3.4.2, there is currently no way to use the Reverse Tunnel feature.

Expected Behavior

Either:

  • Restore support for Xray-core v26.4.25 as an optional version, or
  • Update the Reverse Tunnel implementation to work correctly with newer Xray-core releases.

Additional Information

  • 3X-UI Version: v3.4.2
  • Supported Xray-core: v26.6.27 only
  • Reverse Tunnel: Not working
  • Older Xray-core versions are no longer available for selection.

Thank you for your work on this project.

How to reproduce the problem

  1. Install 3X-UI v3.4.1 with Reverse Tunnel configured and working.
  2. Upgrade 3X-UI from v3.4.1 to v3.4.2.
  3. Notice that older Xray-core versions (including v26.4.25) are no longer available, and only v26.6.27 can be used.
  4. Reverse Tunnel no longer works after the upgrade.
  5. Downgrade 3X-UI back to v3.4.1.
  6. Downgrade Xray-core to v26.4.25.
  7. Reverse Tunnel works normally again.

Expected behavior

No response

Actual behavior

No response

Relevant logs


Screenshots

No response

3x-ui version

3.4.2

Xray-core version

26.6.27

How did you install 3x-ui?

install.sh script

Operating system

Ubuntu 24.04

Which parts of the panel are affected?

No response

Browser (only if it is a UI bug)

No response

Is the panel behind a reverse proxy or CDN?

None

Before submitting

  • I searched existing issues and this bug has not been reported.
  • I am running the latest released version of 3x-ui (or have verified the bug still exists on it).
  • This bug report is written in English.
  • I have redacted any sensitive data (tokens, real domains, client UUIDs).
Originally created by @JamaliPour on GitHub (Jul 4, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5793 ### Describe the bug ### Description After upgrading to **3X-UI v3.4.2**, the **Reverse Tunnel** feature no longer works. The issue appears to be related to the fact that **v3.4.2 only supports Xray-core v26.6.27**, while older Xray-core versions have been removed from the panel. Previously, @MHSanaei mentioned that **Reverse Tunnel should use Xray-core v26.4.25**, as newer versions introduced changes that broke compatibility. Since **v26.4.25 is no longer available in 3X-UI v3.4.2**, there is currently no way to use the Reverse Tunnel feature. ### Expected Behavior Either: * Restore support for **Xray-core v26.4.25** as an optional version, or * Update the Reverse Tunnel implementation to work correctly with newer Xray-core releases. ### Additional Information * **3X-UI Version:** v3.4.2 * **Supported Xray-core:** v26.6.27 only * **Reverse Tunnel:** Not working * Older Xray-core versions are no longer available for selection. Thank you for your work on this project. ### How to reproduce the problem 1. Install 3X-UI v3.4.1 with Reverse Tunnel configured and working. 2. Upgrade 3X-UI from v3.4.1 to v3.4.2. 3. Notice that older Xray-core versions (including v26.4.25) are no longer available, and only v26.6.27 can be used. 4. Reverse Tunnel no longer works after the upgrade. 5. Downgrade 3X-UI back to v3.4.1. 6. Downgrade Xray-core to v26.4.25. 7. Reverse Tunnel works normally again. ### Expected behavior _No response_ ### Actual behavior _No response_ ### Relevant logs ```shell ``` ### Screenshots _No response_ ### 3x-ui version 3.4.2 ### Xray-core version 26.6.27 ### How did you install 3x-ui? install.sh script ### Operating system Ubuntu 24.04 ### Which parts of the panel are affected? _No response_ ### Browser (only if it is a UI bug) _No response_ ### Is the panel behind a reverse proxy or CDN? None ### Before submitting - [x] I searched [existing issues](../issues?q=is%3Aissue) and this bug has not been reported. - [x] I am running the latest released version of 3x-ui (or have verified the bug still exists on it). - [x] This bug report is written in English. - [x] I have redacted any sensitive data (tokens, real domains, client UUIDs).
bsakaguchi 2026-10-31 20:36:38 +07:00
Author
Owner

@github-actions[bot] commented on GitHub (Jul 4, 2026):

Two separate things are going on here, and it's worth separating them.

1. The version restriction is real and intentional, not a bug in the version list itself.

GetXrayVersions() (internal/web/service/server.go) fetches the release list from api.github.com/repos/XTLS/Xray-core/releases and filters it:

if major > 26 || (major == 26 && minor > 6) || (major == 26 && minor == 6 && patch >= 27) {
    versions = append(versions, release.TagName)
}

UpdateXray() (same file) then rejects any version not in that filtered list, so the panel's "Install Xray" action cannot install v26.4.25 anymore. This floor was raised from v26.4.25 to v26.6.27 in v3.4.2 via the commit "Bump minimum eligible Xray version," also called out in the v3.4.2 release notes: "the minimum eligible Xray version was raised (bundled core bumped to xray-core v26.6.27); update any custom cores accordingly." So yes — the panel currently has no supported way to pin back to v26.4.25.

2. Reverse Tunnel breaking on Xray-core >= v26.5 is a known, already-diagnosed issue — and it may not actually require v26.4.25.

This exact symptom (reverse tunnel/VLESS Reverse Proxy works on v26.4.25, breaks on newer cores) was reported and root-caused in #4782 and #4821: xray-core reworked its reverse-proxy mechanism, and the freedom outbound now enforces a default egress policy that silently drops traffic unless its finalRules contains an explicit allow rule.

3x-ui already ships a fix for that specific mechanism:

  • New installs: the bundled default template (internal/web/service/config.json) already sets "finalRules": [{"action": "allow"}] unconditionally on the direct freedom outbound.
  • Upgrades: a one-time migration (FreedomFinalRulesReverseFix seeder, normalizeFreedomFinalRules/isLegacyPrivateOnlyFinalRules in internal/database/db.go) rewrites a stored freedom outbound's finalRules to {"action": "allow"}, but only if it currently matches exactly the old narrow pattern [{"action": "allow", "ip": ["geoip:private"]}]. It runs once and is tracked in history_of_seeders.

The gap: if your bridge server's freedom (direct) outbound has finalRules that's missing entirely, or doesn't match that exact legacy shape, the migration skips it and the outbound is left without an allow rule — so reverse-tunnel traffic keeps getting dropped by Xray-core's new default policy, independent of which core version >= 26.5 you run.

To pin down which situation you're in, could you check on the bridge (reverse-out) server:

  1. Panel -> Xray Configuration -> Outbounds -> the freedom/direct outbound — what does its finalRules currently contain (if anything)?
  2. Was this panel upgraded in place from an earlier version, or is it a fresh v3.4.2 install?
  3. Xray error log from the bridge server around the time a client connects through the tunnel (Panel -> Logs, or the xray binary's stderr).

If finalRules is empty or missing, adding:

"finalRules": [{ "action": "allow" }]

to that outbound and restarting Xray may restore Reverse Tunnel on v26.6.27 without needing v26.4.25 at all. If it's already set to a plain allow rule and traffic still doesn't route, that would point to a different, not-yet-reported regression, and the log from step 3 would help isolate it.

This reply was generated automatically; a maintainer may follow up with more detail.

<!-- gh-comment-id:4883691267 --> @github-actions[bot] commented on GitHub (Jul 4, 2026): Two separate things are going on here, and it's worth separating them. **1. The version restriction is real and intentional, not a bug in the version list itself.** `GetXrayVersions()` (`internal/web/service/server.go`) fetches the release list from `api.github.com/repos/XTLS/Xray-core/releases` and filters it: ```go if major > 26 || (major == 26 && minor > 6) || (major == 26 && minor == 6 && patch >= 27) { versions = append(versions, release.TagName) } ``` `UpdateXray()` (same file) then rejects any version not in that filtered list, so the panel's "Install Xray" action cannot install v26.4.25 anymore. This floor was raised from v26.4.25 to v26.6.27 in v3.4.2 via the commit "Bump minimum eligible Xray version," also called out in the [v3.4.2 release notes](https://github.com/MHSanaei/3x-ui/releases/tag/v3.4.2): "the minimum eligible Xray version was raised (bundled core bumped to xray-core v26.6.27); update any custom cores accordingly." So yes — the panel currently has no supported way to pin back to v26.4.25. **2. Reverse Tunnel breaking on Xray-core >= v26.5 is a known, already-diagnosed issue — and it may not actually require v26.4.25.** This exact symptom (reverse tunnel/VLESS Reverse Proxy works on v26.4.25, breaks on newer cores) was reported and root-caused in #4782 and #4821: xray-core reworked its reverse-proxy mechanism, and the `freedom` outbound now enforces a default egress policy that silently drops traffic unless its `finalRules` contains an explicit allow rule. 3x-ui already ships a fix for that specific mechanism: - New installs: the bundled default template (`internal/web/service/config.json`) already sets `"finalRules": [{"action": "allow"}]` unconditionally on the `direct` freedom outbound. - Upgrades: a one-time migration (`FreedomFinalRulesReverseFix` seeder, `normalizeFreedomFinalRules`/`isLegacyPrivateOnlyFinalRules` in `internal/database/db.go`) rewrites a stored freedom outbound's `finalRules` to `{"action": "allow"}`, but **only if it currently matches exactly the old narrow pattern** `[{"action": "allow", "ip": ["geoip:private"]}]`. It runs once and is tracked in `history_of_seeders`. The gap: if your bridge server's freedom (`direct`) outbound has `finalRules` that's missing entirely, or doesn't match that exact legacy shape, the migration skips it and the outbound is left without an allow rule — so reverse-tunnel traffic keeps getting dropped by Xray-core's new default policy, independent of which core version >= 26.5 you run. To pin down which situation you're in, could you check on the bridge (reverse-out) server: 1. Panel -> Xray Configuration -> Outbounds -> the `freedom`/`direct` outbound — what does its `finalRules` currently contain (if anything)? 2. Was this panel upgraded in place from an earlier version, or is it a fresh v3.4.2 install? 3. Xray error log from the bridge server around the time a client connects through the tunnel (Panel -> Logs, or the xray binary's stderr). If `finalRules` is empty or missing, adding: ```json "finalRules": [{ "action": "allow" }] ``` to that outbound and restarting Xray may restore Reverse Tunnel on v26.6.27 without needing v26.4.25 at all. If it's already set to a plain allow rule and traffic still doesn't route, that would point to a different, not-yet-reported regression, and the log from step 3 would help isolate it. *This reply was generated automatically; a maintainer may follow up with more detail.*
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#4027
No description provided.