mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 19:11:53 +07:00
[GH-ISSUE #6727] [Bug]: Reality inbound fails on Ubuntu 24 but works on Debian 12 (3x-ui 3.9.0, Min Client Ver 1.0.0) #4485
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#4485
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 @shanghainese on GitHub (Oct 4, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/6727
Is your feature request related to a problem?
On Ubuntu 24, 3x-ui 3.9.0 fails to operate correctly with Reality nodes—despite the minimum version requirement being set to 1.0.0—whereas it works fine on Debian 12.
Describe the solution you'd like
please update,thanks
Alternatives you've considered
No response
Concrete use case
No response
Mockups, screenshots, or examples
No response
Which parts of the panel would this affect?
No response
Are you willing to help?
Before submitting
@github-actions[bot] commented on GitHub (Oct 4, 2026):
I can't say yet whether this is a bug. The report doesn't name the client app, the error, or the Xray-core version on either server. Also, nothing in the panel's REALITY path depends on the OS, so Ubuntu 24 versus Debian 12 by itself shouldn't change the result. I've relabelled this as a bug report waiting for details. I also changed the title from
[Feature]:3x-ui 3.9.0 fails to operate correctly with Reality nodes(1.0.0)so it describes the problem more clearly.What the code shows
1.0.0is passed to Xray-core asrealitySettings.minClientVer. The panel only checks the format (frontend/src/lib/xray/stream-wire-normalize.ts:135,validateRealityClientVer). The panel's own help text (internal/web/translation/en-US.json:635) says1.0.0is only needed on cores v26.7.11 to v26.9.7: "On Xray-core v26.9.8+ empty means no minimum … Cores v26.7.11 to v26.9.7 instead enforce a built-in 26.3.27 minimum when empty; set 1.0.0 there to accept those clients."X25519MLKEM768key share in the REALITY handshake. Clients that don't send one fail withREALITY authentication failed, whatever Min Client Ver is set to. This mostly affects Mihomo/Clash. It's documented indocs/content/docs/en/config/reality.mdx:126-136. The Clash subscription now sets the option for REALITY nodes (internal/sub/clash_service.go:1186-1187): If your two servers run different Xray-core versions, or your clients imported their profiles before this option existed, that would explain why one server works and the other doesn't.Please reply with:
x-uimenu on the server). Please paste them as text.streamSettingsJSON from the Ubuntu server, withprivateKeyremoved, and the client'sfingerprintsetting.reality-opts: support-x25519mlkem768: trueafter you refresh the subscription?Verdict: Insufficient information
Related: #6568 (Mihomo/Clash REALITY failures on Xray-core 26.9.x caused by the ML-KEM requirement and the empty-minClientVer gate). This isn't marked as a duplicate because it's not yet clear which client and core version you're using.
This reply was generated automatically. A maintainer may follow up.
@shanghainese commented on GitHub (Oct 4, 2026):
I tested 3.9.0 again. Reality can be used normally with v2rayNG (26.6.27). The latest versions of stash and clash on iOS cannot be used, but shadowrocket can. Openclash (0.47.071) in immortalwrt 24.10.6 cannot be used either.
@github-actions[bot] commented on GitHub (Oct 4, 2026):
Thanks for testing. Your results point to a client compatibility limit, not a 3x-ui bug. The clients that fail (Clash for iOS, Stash, OpenClash) are all Mihomo/Clash-family clients. The ones that work (v2rayNG, Shadowrocket) are not. That matches the REALITY handshake requirement in Xray-core v26.9.8+, and 3x-ui 3.9.0 ships with Xray-core v26.9.30.
Why these clients fail
.github/workflows/release.yml:118,DockerInit.sh:36).X25519MLKEM768key share. This applies whatever Min Client Ver is set to, so setting1.0.0can't fix it. The panel docs cover this indocs/content/docs/en/config/reality.mdx:126-136: "Xray-core v26.9.8+ independently requires anX25519MLKEM768key share … Clearing the version limit alone does not fix the handshake."What to try
internal/sub/clash_service.go:1186-1187), and VLESS links carry the same hint assupport-x25519mlkem768=true(internal/sub/service.go:1243). The option only has an effect if the Mihomo core inside OpenClash is new enough to support it. If it isn't, update the core from OpenClash's core update page. If you set a fingerprint by hand, use one that offers ML-KEM, such aschrome.Verdict: Not a bug (expected behaviour). The handshake requirement comes from upstream Xray-core v26.9.8+, and 3x-ui already turns on the client-side option in its Clash subscription and its links.
Severity: N/A
Confidence: Medium
Root cause: No 3x-ui defect. Xray-core ≥ v26.9.8 requires an
X25519MLKEM768key share in the REALITY ClientHello, and the failing Mihomo/Clash-family clients don't send one. 3x-ui 3.9.0 bundles v26.9.30.Already fixed: Not applicable. The panel-side mitigations are already in v3.9.0:
0a2cd789fix(sub): enable ML-KEM for Mihomo REALITY subscriptions (#6451)andce221c33fix(sub): carry REALITY ML-KEM hint in VLESS links (#6712).Duplicate of: Related: #6568 (same Mihomo/Clash failure on Xray-core 26.9.x caused by the ML-KEM requirement).
Evidence:
DockerInit.sh:36andrelease.yml:118pinXray-core/releases/download/v26.9.30.internal/sub/clash_service.go:1186-1187:// Xray 26.9.8+ rejects REALITY handshakes without an ML-KEM key share./realityOpts["support-x25519mlkem768"] = true.docs/content/docs/en/config/reality.mdx:126-136. Reporter's matrix: the Xray-based (v2rayNG) and independent (Shadowrocket) clients work, and every Mihomo/Clash-family client fails.Not determined: The Xray-core version on the Debian 12 server, and the Mihomo core version inside OpenClash. Checking whether the OpenClash node YAML has
support-x25519mlkem768: trueafter a subscription refresh would settle whether this is the old-core case.This reply was generated automatically. A maintainer may follow up.
@shanghainese commented on GitHub (Oct 4, 2026):
I tested 3.9.0 again. Reality can be used normally with v2rayNG (26.6.27).
The latest versions of stash and clash on iOS cannot be used, but
shadowrocket can. Openclash (0.47.071) in immortalwrt 24.10.6 cannot be
used either.
On Sun, 4 Oct 2026 at 08:17, github-actions[bot] @.***>
wrote:
@shanghainese commented on GitHub (Oct 4, 2026):
I conducted further tests using three VPS instances—two running Ubuntu 24 and one running Debian 12—all upgraded to version 3.9.0. While the three Reality nodes generated by 3x-ui worked perfectly in Clash on iOS, I encountered compatibility issues with OpenClash on ImmortalWrt; despite using the latest version, none of the three nodes would work within the soft router's OpenClash setup.
@shanghainese commented on GitHub (Oct 4, 2026):
I conducted further tests using three VPS instances—two running Ubuntu 24
and one running Debian 12—all upgraded to version 3.9.0. While the three
Reality nodes generated by 3x-ui worked perfectly in Clash on iOS, I
encountered compatibility issues with OpenClash on ImmortalWrt; despite
using the latest version, none of the three nodes would work within the
soft router's OpenClash setup.
On Sun, 4 Oct 2026 at 08:44, github-actions[bot] @.***>
wrote:
@bemyak commented on GitHub (Oct 5, 2026):
I also experience a similar issue on NixOS host. When using XRay v26.9.9, the panel shows TCP connection count constantly at 200, even though there are no clients connected. Connection fails (e.g. via Hiddify) with Time Out even from unrestricted regions. Rolling XRay back to 26.6.27 fixed the issue.
@shanghainese commented on GitHub (Oct 9, 2026):
After testing, I discovered that the issue arises only after the nodes undergo subscription conversion; if the node links generated by 3x-ui are imported directly into OpenClash, they work fine. They also work in Clash, v2rayNG, Shadowrocket, and v2box Pro. Thank you very much for your hard work on 3x-ui.
@xiaowuliao commented on GitHub (Oct 22, 2026):
Was it fixed in the 3x-ui version 3.10.2 and Xray-core v26.10.10?