[GH-ISSUE #4773] [Bug]: Reverse tag #3310

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

Originally created by @rezakhosh78 on GitHub (Jun 1, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4773

Describe the bug

Reverse tag does not work on X-Ray versions higher than v26.4.25.

How to reproduce the problem

Reverse tag does not work on X-Ray versions higher than v26.4.25.

Expected behavior

No response

Actual behavior

No response

Relevant logs


Screenshots

No response

3x-ui version

3.2.5

Xray-core version

v26.6.1

How did you install 3x-ui?

install.sh script

Operating system

Ubuntu22

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 @rezakhosh78 on GitHub (Jun 1, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4773 ### Describe the bug Reverse tag does not work on X-Ray versions higher than v26.4.25. ### How to reproduce the problem Reverse tag does not work on X-Ray versions higher than v26.4.25. ### Expected behavior _No response_ ### Actual behavior _No response_ ### Relevant logs ```shell ``` ### Screenshots _No response_ ### 3x-ui version 3.2.5 ### Xray-core version v26.6.1 ### How did you install 3x-ui? install.sh script ### Operating system Ubuntu22 ### 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:31:33 +07:00
Author
Owner

@github-actions[bot] commented on GitHub (Jun 1, 2026):

Thank you for the report!

Could you please provide more details to help investigate this?

  1. What exactly doesn't work? Does the reverse tag field fail to save, does routing stop working, does Xray fail to start, or something else?
  2. Xray startup logs — please run x-ui log or check /usr/local/x-ui/bin/xray output and share any error messages related to reverse configuration.
  3. Your reverse outbound configuration (with sensitive data redacted) — the JSON for the outbound where the reverse tag is set.
  4. Steps to reproduce — a more detailed walkthrough (e.g. what you configured in the UI, what you expected vs. what actually happened).

This version-specific regression (working on v26.4.25 but broken on v26.6.1) is useful context — Xray-core may have changed how reverse proxy configuration is parsed in newer releases. The more detail you can share, the easier it will be to pinpoint the cause.

<!-- gh-comment-id:4594965325 --> @github-actions[bot] commented on GitHub (Jun 1, 2026): Thank you for the report\! Could you please provide more details to help investigate this? 1. **What exactly doesn't work?** Does the reverse tag field fail to save, does routing stop working, does Xray fail to start, or something else? 2. **Xray startup logs** — please run `x-ui log` or check `/usr/local/x-ui/bin/xray` output and share any error messages related to reverse configuration. 3. **Your reverse outbound configuration** (with sensitive data redacted) — the JSON for the outbound where the reverse tag is set. 4. **Steps to reproduce** — a more detailed walkthrough (e.g. what you configured in the UI, what you expected vs. what actually happened). This version-specific regression (working on v26.4.25 but broken on v26.6.1) is useful context — Xray-core may have changed how reverse proxy configuration is parsed in newer releases. The more detail you can share, the easier it will be to pinpoint the cause.
Author
Owner

@MHSanaei commented on GitHub (Jun 1, 2026):

don't tell me i already know that
go share with xray i can't do anything about it

<!-- gh-comment-id:4594987560 --> @MHSanaei commented on GitHub (Jun 1, 2026): don't tell me i already know that go share with xray i can't do anything about it
Author
Owner

@rezakhosh78 commented on GitHub (Jun 1, 2026):

Okay, thank you.

<!-- gh-comment-id:4595257106 --> @rezakhosh78 commented on GitHub (Jun 1, 2026): Okay, thank you.
Author
Owner

@welltimat commented on GitHub (Jun 2, 2026):

if you mean "reverse object" it was removed and replaced by "reverse" fields in inbound and outbound. It works. can search for "new vless reverse proxy" for details. also it is important that freedom outbound on bridge server should have final rules with allow set (it was not required before in older versions).

<!-- gh-comment-id:4600848528 --> @welltimat commented on GitHub (Jun 2, 2026): if you mean "reverse object" it was removed and replaced by "reverse" fields in inbound and outbound. It works. can search for "new vless reverse proxy" for details. also it is important that freedom outbound on bridge server should have final rules with allow set (it was not required before in older versions).
Author
Owner

@rezakhosh78 commented on GitHub (Aug 10, 2026):

VLESS Reverse traffic is blocked by default Freedom outbound since v26.5+ unless finalRules

Description

There appears to be a backward-incompatible behavior change affecting VLESS Reverse when using the standard/default Freedom outbound configuration.

The following Freedom outbound works correctly with Xray-core v26.4.25:

{
  "protocol": "freedom",
  "settings": {
    "domainStrategy": "AsIs"
  },
  "tag": "direct"
}

With this configuration, VLESS Reverse works normally on v26.4.25.

However, after upgrading to Xray-core v26.7.28, the Reverse connection appears to establish successfully, but actual traffic cannot pass through the Reverse tunnel.

The configuration itself is unchanged.

Versions tested

Working:

v26.4.25

Not working:

v26.7.28

Actual behavior

With v26.7.28 and the default Freedom configuration:

{
  "protocol": "freedom",
  "settings": {
    "domainStrategy": "AsIs"
  },
  "tag": "direct"
}

the VLESS Reverse tunnel appears to be established, but normal Internet traffic does not work through the Reverse connection.

There is no obvious configuration error indicating that the Freedom outbound is blocking the Reverse traffic.

Workaround

Adding an unconditional allow rule to Freedom.finalRules immediately fixes the problem on v26.7.28:

{
  "protocol": "freedom",
  "settings": {
    "domainStrategy": "AsIs",
    "finalRules": [
      {
        "action": "allow"
      }
    ]
  },
  "tag": "direct"
}

No other Reverse configuration changes are required.

After adding:

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

VLESS Reverse starts passing traffic normally again.

Expected behavior

A standard Freedom outbound without finalRules:

{
  "protocol": "freedom",
  "settings": {
    "domainStrategy": "AsIs"
  },
  "tag": "direct"
}

should either:

  1. preserve the previous Freedom behavior for VLESS Reverse traffic, or
  2. clearly report/log that traffic from vless-reverse is being blocked by the new default policy.

Silently establishing the Reverse connection while blocking its actual traffic makes the issue difficult to diagnose and also breaks existing configurations that worked on previous Xray versions.

Regression

This configuration works on:

v26.4.25

but does not work on:

v26.7.28

unless an explicit unconditional finalRules: allow rule is added.

This appears related to the newer Freedom finalRules / default security policy behavior introduced after v26.4.25.

Suggested fix

Please consider one of the following:

  • Preserve backward-compatible Freedom behavior when finalRules is not explicitly configured.
  • Do not implicitly apply block all to VLESS Reverse traffic when the user has not configured finalRules.
  • Add a clear warning/error log when VLESS Reverse traffic is rejected by the implicit Freedom policy.
  • Document this as a breaking configuration change and provide the required migration configuration.

For example, existing Reverse users currently need to manually change their Freedom outbound to:

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

to restore the behavior they had before the upgrade.

The important difference here is that the problem is reproducible with the normal Freedom configuration without any finalRules at all, and adding an explicit unconditional allow fixes it on v26.7.28.

Reproduction Method

Suggested fix

  • Preserve backward-compatible Freedom behavior when finalRules is not explicitly configured.
  • Do not implicitly apply block all to VLESS Reverse traffic when the user has not configured finalRules.
  • Add a clear warning/error log when VLESS Reverse traffic is rejected by the implicit Freedom policy.
  • Document this as a breaking configuration change and provide the required migration configuration.

For example, existing Reverse users currently need to manually change their Freedom outbound to:

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

@MHSanaei

<!-- gh-comment-id:5242119052 --> @rezakhosh78 commented on GitHub (Aug 10, 2026): VLESS Reverse traffic is blocked by default Freedom outbound since v26.5+ unless finalRules ### Description There appears to be a backward-incompatible behavior change affecting VLESS Reverse when using the standard/default Freedom outbound configuration. The following Freedom outbound works correctly with Xray-core `v26.4.25`: ```json { "protocol": "freedom", "settings": { "domainStrategy": "AsIs" }, "tag": "direct" } ``` With this configuration, VLESS Reverse works normally on `v26.4.25`. However, after upgrading to Xray-core `v26.7.28`, the Reverse connection appears to establish successfully, but actual traffic cannot pass through the Reverse tunnel. The configuration itself is unchanged. ## Versions tested Working: ```text v26.4.25 ``` Not working: ```text v26.7.28 ``` ## Actual behavior With `v26.7.28` and the default Freedom configuration: ```json { "protocol": "freedom", "settings": { "domainStrategy": "AsIs" }, "tag": "direct" } ``` the VLESS Reverse tunnel appears to be established, but normal Internet traffic does not work through the Reverse connection. There is no obvious configuration error indicating that the Freedom outbound is blocking the Reverse traffic. ## Workaround Adding an unconditional `allow` rule to `Freedom.finalRules` immediately fixes the problem on `v26.7.28`: ```json { "protocol": "freedom", "settings": { "domainStrategy": "AsIs", "finalRules": [ { "action": "allow" } ] }, "tag": "direct" } ``` No other Reverse configuration changes are required. After adding: ```json "finalRules": [ { "action": "allow" } ] ``` VLESS Reverse starts passing traffic normally again. ## Expected behavior A standard Freedom outbound without `finalRules`: ```json { "protocol": "freedom", "settings": { "domainStrategy": "AsIs" }, "tag": "direct" } ``` should either: 1. preserve the previous Freedom behavior for VLESS Reverse traffic, or 2. clearly report/log that traffic from `vless-reverse` is being blocked by the new default policy. Silently establishing the Reverse connection while blocking its actual traffic makes the issue difficult to diagnose and also breaks existing configurations that worked on previous Xray versions. ## Regression This configuration works on: ```text v26.4.25 ``` but does not work on: ```text v26.7.28 ``` unless an explicit unconditional `finalRules: allow` rule is added. This appears related to the newer Freedom `finalRules` / default security policy behavior introduced after `v26.4.25`. ## Suggested fix Please consider one of the following: * Preserve backward-compatible Freedom behavior when `finalRules` is not explicitly configured. * Do not implicitly apply `block all` to VLESS Reverse traffic when the user has not configured `finalRules`. * Add a clear warning/error log when VLESS Reverse traffic is rejected by the implicit Freedom policy. * Document this as a breaking configuration change and provide the required migration configuration. For example, existing Reverse users currently need to manually change their Freedom outbound to: ```json "finalRules": [ { "action": "allow" } ] ``` to restore the behavior they had before the upgrade. The important difference here is that the problem is reproducible with the normal Freedom configuration **without any `finalRules` at all**, and adding an explicit unconditional `allow` fixes it on `v26.7.28`. ### Reproduction Method ## Suggested fix * Preserve backward-compatible Freedom behavior when `finalRules` is not explicitly configured. * Do not implicitly apply `block all` to VLESS Reverse traffic when the user has not configured `finalRules`. * Add a clear warning/error log when VLESS Reverse traffic is rejected by the implicit Freedom policy. * Document this as a breaking configuration change and provide the required migration configuration. For example, existing Reverse users currently need to manually change their Freedom outbound to: ```json "finalRules": [ { "action": "allow" } ] ``` @MHSanaei
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#3310
No description provided.