mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[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
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#4027
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 @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:
Additional Information
Thank you for your work on this project.
How to reproduce the problem
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
@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 fromapi.github.com/repos/XTLS/Xray-core/releasesand filters it: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
freedomoutbound now enforces a default egress policy that silently drops traffic unless itsfinalRulescontains an explicit allow rule.3x-ui already ships a fix for that specific mechanism:
internal/web/service/config.json) already sets"finalRules": [{"action": "allow"}]unconditionally on thedirectfreedom outbound.FreedomFinalRulesReverseFixseeder,normalizeFreedomFinalRules/isLegacyPrivateOnlyFinalRulesininternal/database/db.go) rewrites a stored freedom outbound'sfinalRulesto{"action": "allow"}, but only if it currently matches exactly the old narrow pattern[{"action": "allow", "ip": ["geoip:private"]}]. It runs once and is tracked inhistory_of_seeders.The gap: if your bridge server's freedom (
direct) outbound hasfinalRulesthat'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:
freedom/directoutbound — what does itsfinalRulescurrently contain (if anything)?If
finalRulesis empty or missing, adding: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.