mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #5919] [Question]: VLESS Reverse Proxy #4105
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#4105
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 @mshahr1 on GitHub (Jul 13, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5919
What are you trying to do?
Dear Mr. Sanaei, considering that version 3.5.0 no longer supports the stable Xray core, what do you suggest for setting up a reverse connection? Is this VLESS reverse issue truly a bug within the Xray core itself, or is there a workaround to fix it? We have been waiting for this issue to be resolved for quite some time now.
What have you already tried?
Adding final rule according to xray document, but nothing change
3x-ui version
3.5.0
How did you install 3x-ui?
install.sh script
Operating system
ubuntu 24
Screenshots or config snippets
No response
Before submitting
@github-actions[bot] commented on GitHub (Jul 13, 2026):
Both parts of the question have concrete answers in the source and in the upstream Xray-core tracker.
The panel genuinely no longer lets you install the old "stable" core. The release list the version picker offers is filtered in
internal/web/service/server.go(the function backingGetXrayVersions()/UpdateXray()):i.e. only xray-core v26.6.27 and newer is selectable. That floor was raised in v3.4.2 and is unchanged in v3.5.0, which bundles v26.7.11 by default (
go.mod). So v26.4.25 — the version people pinned to as a workaround for reverse-proxy breakage — can no longer be chosen through Panel -> Xray Configuration -> Xray Version.The "VLESS reverse breaks after v26.4.25" report was a real upstream bug, and it's already fixed. This project's own investigation on #4782 and #5793 traced it to xray-core's reverse-proxy rework (
XTLS/Xray-core#5101): the new simplified reverse outbound registered withburstObservatorytoo late, so the health-checker marked it unreachable right after startup. That exact bug,XTLS/Xray-core#5750, is closed as completed (2026-03-27) - a patched build was community-tested and confirmed to register/verify the reverse outbound correctly. Since xray-core's tags are date-stamped (v26.6.27 ~ 2026-06-27, v26.7.11 ~ 2026-07-11, matching the20260711155151pseudo-version timestamp in this repo'sgo.mod), every core version the panel now lets you install already postdates that fix.A second, separate upstream report,
XTLS/Xray-core#6248("reverse setup problem after v26.4.25"), turned out not to be a core bug on inspection - maintainers traced it to a routing mismatch (portal blockedgeoip:privatewhile the bridge'sfreedomoutbound only allowed private IPs, silently dropping the WAN traffic the user actually wanted reverse-proxied). Closed not_planned. That matches the second cause 3x-ui identified independently: newer xray-core added a default egress-safety policy on thefreedomoutbound that drops everything unlessfinalRulesexplicitly allows it.3x-ui already ships a fix for that second cause, but it may not have reached your config. New installs' default template (
internal/web/service/config.json) sets:on the
directfreedom outbound, and an upgrade migration (normalizeFreedomFinalRules/ theFreedomFinalRulesReverseFixseeder ininternal/database/db.go) rewrites a stored one automatically - but only if it exactly matches the old narrow pattern[{"action":"allow","ip":["geoip:private"]}]. Any other existing value (missingfinalRulesentirely, or a custom rule that doesn't match that exact shape) is left untouched by the migration. You can check/set this yourself at Panel -> Xray Configuration -> Outbounds -> edit thefreedom/directoutbound -> Final Rules field (frontend/src/pages/xray/outbounds/protocols/freedom.tsx) - it needs to be correct on both the portal and the bridge, matching the traffic scope you actually intend to reverse (WAN vs LAN), the same distinction that resolvedXTLS/Xray-core#6248.Since you said adding a final rule "changed nothing," that points away from a simple missing-
finalRulescase. Two other possibilities worth ruling out:internal/xray/api.go:178,ValidateOutboundConfig- see the comment directly above it, andinternal/xray/outbound_validation_test.go). If your bridge's reverse outbound to the portal's public IP isn't wrapped in TLS/REALITY, the panel would now refuse to save it, with an error likexray core rejects outbound "<tag>": ...(internal/web/service/xray_setting.go:55). This gap is tracked separately in #5916.To pin down which applies to you, could you share:
xray -versionif you manage the binary outside the panel).reversesection, thefreedom/directoutbound'sfinalRules, and any routing rule touchinggeoip:privateor your reverse tag (redact UUIDs/domains/IPs).For reference, reverse tags are configured under Outbounds (VLESS outbound -> Reverse Tag,
frontend/src/pages/xray/outbounds/protocols/vless.tsx) and on the client (Client form -> Reverse Tag,frontend/src/pages/clients/ClientFormModal.tsx); routing rules then reference that tag. 3x-ui doesn't add its own semantics on top of this - the config still has to follow xray-core's own VLESS reverse proxy documentation, which you mentioned you've already consulted.This reply was generated automatically; a maintainer may follow up.
@vinaquino commented on GitHub (Jul 13, 2026):
god, i also cant use RAW, no any feedback. i use 3.5 version, and ubuntu 22. god, i need help.
@joshualiu20120416-ops commented on GitHub (Jul 13, 2026):
"VLESS Reverse Proxy can be tricky with the latest 3x-ui v3.5.0 updates, especially on Ubuntu 24. It usually involves specific Nginx/Caddy stream configuration. If you've been stuck on this for hours and need a working config quickly, I'm available for a remote setup session. DM/check my profile bio for contact info.
@JamaliPour commented on GitHub (Jul 14, 2026):
VERSION=v3.4.1 && bash <(curl -Ls "https://raw.githubusercontent.com/mhsanaei/3x-ui/$VERSION/install.sh") $VERSION/usr/local/x-ui/bin, and make a backup of thexray-linux-amd64file.xray-linux-amd64file with the backup you created in step 3 (Xray v26.4.25).@mshahr1 commented on GitHub (Jul 15, 2026):
I'm looking forward for solution in new xray versions.
@MHSanaei commented on GitHub (Jul 23, 2026):
Both parts have concrete answers.
Core version: correct — the panel no longer offers the old "stable" pin. The version picker only lists
v26.6.27and newer, and v3.5.0 bundlesv26.7.11, so the old v26.4.25 pin isn't selectable.Is reverse still broken? The original "VLESS reverse breaks after v26.4.25" was a real upstream xray-core bug and it's already fixed upstream — every core the panel now installs postdates that fix, so no downgrade is needed. What usually remains is config:
finalRules. Newer xray-core drops traffic on thefreedom/directoutbound unlessfinalRulesallows it. New installs ship"finalRules":[{"action":"allow"}]and a migration rewrites the old narrow private-only value automatically — but any other pre-existing value is left as-is. Check Xray Config → Outbounds → editfreedom/direct→ Final Rules on both the bridge and the portal, matching the WAN/LAN scope you actually want reverse-proxied. Since adding a rule "changed nothing," make sure it's set on both boxes and the portal's own routing isn't blocking the traffic before it reaches the reverse tag.If Final Rules on both boxes doesn't resolve it, share your bridge and portal outbound/routing JSON and we'll pinpoint it.
@mshahr1 commented on GitHub (Jul 24, 2026):
جناب سنایی تمامی این موارد رعایت شده. با این وجود همچنان کار نمیکنه.