[GH-ISSUE #5447] [Bug]: Vless Reverse proxy #3808

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

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

Describe the bug

Hello Vless Reverse proxy of v3 sanaei panel is stopping working if you install xanmod script

How to reproduce the problem

1.Vless reverse proxy

Expected behavior

solve this bug as soon as possible thank you

Actual behavior

No response

Relevant logs


Screenshots

No response

3x-ui version

3.3.1

Xray-core version

26.6.1

How did you install 3x-ui?

install.sh script

Operating system

ubuntu 22.04

Which parts of the panel are affected?

Other

Browser (only if it is a UI bug)

No response

Is the panel behind a reverse proxy or CDN?

Yes — other

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 @Sepandkazemi on GitHub (Jun 20, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5447 ### Describe the bug Hello Vless Reverse proxy of v3 sanaei panel is stopping working if you install xanmod script ### How to reproduce the problem 1.Vless reverse proxy ### Expected behavior solve this bug as soon as possible thank you ### Actual behavior _No response_ ### Relevant logs ```shell ``` ### Screenshots _No response_ ### 3x-ui version 3.3.1 ### Xray-core version 26.6.1 ### How did you install 3x-ui? install.sh script ### Operating system ubuntu 22.04 ### Which parts of the panel are affected? Other ### Browser (only if it is a UI bug) _No response_ ### Is the panel behind a reverse proxy or CDN? Yes — other ### 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:35:07 +07:00
Author
Owner

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

The symptom you describe -- VLESS Reverse Proxy stopping after a system change -- is consistent with a known root cause documented in #4782, but the panel v3.3.1 already contains a partial fix for it. Whether that migration applied to your config, and whether the XanMod kernel is actually the trigger or a coincidence, cannot be determined without more information.

Background on the known issue

Starting with Xray-core 26.5.x, the freedom outbound enforces a default safety policy: traffic arriving via VLESS Reverse Proxy is silently dropped unless finalRules in that outbound contains an explicit allow entry. The panel v3.3.1 includes a FreedomFinalRulesReverseFix migration (internal/database/db.go) that upgrades the specific pattern of a private-only allow rule to an unconditional allow. However, if your freedom outbound had no finalRules at all -- typical of a fresh install -- the migration is a no-op and the outbound still lacks the required allow rule.

Regarding XanMod

XanMod is a Linux kernel variant; nothing in the 3x-ui source references it. It does not affect Xray reverse proxy config or the finalRules policy. The correlation with the kernel install is most likely coincidental -- a reboot may have triggered a core restart that surfaced a pre-existing config gap. To confirm or rule it out, boot back into the standard kernel and check whether reverse proxy works.

Known workaround (try this first)

In the panel on the bridge server, go to Xray Configuration -> Outbounds, edit the freedom outbound, and ensure finalRules contains at least one unconditional allow rule. In the Outbounds edit form, add a Final Rules entry with action: allow and no other filters. Save and restart the Xray core. If this resolves the issue, that confirms the root cause is the finalRules safety policy introduced in xray-core 26.5+, not the kernel.

Information needed to investigate further

  1. Does the issue occur with the standard (non-XanMod) kernel? Does booting the original kernel restore reverse proxy?
  2. What exactly does "xanmod script" refer to -- only the kernel package, or a broader optimization script that also modifies network settings?
  3. From Xray Configuration -> Template on the bridge server, paste the full outbounds array (redact UUIDs/IPs). Specifically: does the freedom outbound have a finalRules field?
  4. Xray log output at warning level from the bridge server immediately after a failed connection attempt. Enable via Settings -> Log Level -> Warning, attempt a connection, then paste the relevant lines.
  5. You previously reported the same symptom in #5228 and did not provide the requested details when asked. This issue cannot be escalated without them.

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

<!-- gh-comment-id:4756979443 --> @github-actions[bot] commented on GitHub (Jun 20, 2026): The symptom you describe -- VLESS Reverse Proxy stopping after a system change -- is consistent with a known root cause documented in #4782, but the panel v3.3.1 already contains a partial fix for it. Whether that migration applied to your config, and whether the XanMod kernel is actually the trigger or a coincidence, cannot be determined without more information. **Background on the known issue** Starting with Xray-core 26.5.x, the freedom outbound enforces a default safety policy: traffic arriving via VLESS Reverse Proxy is silently dropped unless finalRules in that outbound contains an explicit allow entry. The panel v3.3.1 includes a FreedomFinalRulesReverseFix migration (internal/database/db.go) that upgrades the specific pattern of a private-only allow rule to an unconditional allow. However, if your freedom outbound had no finalRules at all -- typical of a fresh install -- the migration is a no-op and the outbound still lacks the required allow rule. **Regarding XanMod** XanMod is a Linux kernel variant; nothing in the 3x-ui source references it. It does not affect Xray reverse proxy config or the finalRules policy. The correlation with the kernel install is most likely coincidental -- a reboot may have triggered a core restart that surfaced a pre-existing config gap. To confirm or rule it out, boot back into the standard kernel and check whether reverse proxy works. **Known workaround (try this first)** In the panel on the bridge server, go to Xray Configuration -> Outbounds, edit the freedom outbound, and ensure finalRules contains at least one unconditional allow rule. In the Outbounds edit form, add a Final Rules entry with action: allow and no other filters. Save and restart the Xray core. If this resolves the issue, that confirms the root cause is the finalRules safety policy introduced in xray-core 26.5+, not the kernel. **Information needed to investigate further** 1. Does the issue occur with the standard (non-XanMod) kernel? Does booting the original kernel restore reverse proxy? 2. What exactly does "xanmod script" refer to -- only the kernel package, or a broader optimization script that also modifies network settings? 3. From Xray Configuration -> Template on the bridge server, paste the full outbounds array (redact UUIDs/IPs). Specifically: does the freedom outbound have a finalRules field? 4. Xray log output at warning level from the bridge server immediately after a failed connection attempt. Enable via Settings -> Log Level -> Warning, attempt a connection, then paste the relevant lines. 5. You previously reported the same symptom in #5228 and did not provide the requested details when asked. This issue cannot be escalated without them. *This reply was generated automatically; a maintainer may follow up.*
Author
Owner

@Sepandkazemi commented on GitHub (Jun 20, 2026):

thank you the problem is outbound of foreign server after reboot should add outbound again to reverse proxy working properly

<!-- gh-comment-id:4757180633 --> @Sepandkazemi commented on GitHub (Jun 20, 2026): thank you the problem is outbound of foreign server after reboot should add outbound again to reverse proxy working properly
Author
Owner

@Sepandkazemi commented on GitHub (Jun 20, 2026):

You right it's not relevant to xanmod script

<!-- gh-comment-id:4757182894 --> @Sepandkazemi commented on GitHub (Jun 20, 2026): You right it's not relevant to xanmod script
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#3808
No description provided.