Skip to content

[Bug]: #4975

Description

@MaxShitikov

Describe the bug

When creating a VLESS inbound with security: reality, clients cannot connect and the server logs show REALITY: processed invalid connection from <client IP>: failed to read client hello. However, if I change the inbound's security to none (keeping all other settings identical), the connection works immediately. The same client configuration works only when Reality is disabled.

How to reproduce the problem

  1. Fresh 3x-ui installation (v3.2.8) on Ubuntu 22.04 / 24.04.
  2. Xray-core version 26.6.1 (also tested with older versions).
  3. Create a new VLESS inbound:
    • Port: 17625
    • Protocol: vless
    • Security: reality
    • Generate new key pair (publicKey: uBswDPCGA4joMeW4kbREVJwFvOhIYraUx2kyP7160Tc, privateKey: wEl2fJL9QwbdsKseUrs5mtq6JitCxStEMxcZ2IkhMEg)
    • Target: www.amd.com:443
    • serverNames: ["www.amd.com"]
    • shortIds: ["ea55","c1224a","2604bcf6a336","c7e9ab71","230bc53a5a","cdc23d02bf4d8a","18","d7b09df8dc5fbc78"]
    • fingerprint: chrome
    • flow: xtls-rprx-vision
  4. Add a client with UUID 3993aaad-549e-465c-a01f-34f7e5f192ab and same flow.
  5. Export the client config (vless:// link) and import into a Reality‑capable client (v2rayNG 1.8.5+, Nekobox 0.4.0+, Shadowrocket).
  6. Attempt to connect – the client fails.
  7. Check server logs: tail -f /var/log/x-ui/error.log shows repeated REALITY: processed invalid connection from <client IP>: failed to read client hello.
  8. Change the inbound security from reality to none (keep everything else the same), regenerate client link, and the client connects immediately.

Expected behavior

The client should connect successfully with Reality enabled, just as it does when security is set to none. The handshake should complete without failed to read client hello.

Actual behavior

The client fails to connect. Server logs show failed to read client hello despite correct publicKey, shortId, SNI, and fingerprint. Disabling Reality restores connectivity.

Relevant logs

2026/06/05 16:28:38.041425 [Info] transport/internet/tcp: REALITY: processed invalid connection from 109.94.21.160:64950: failed to read client hello
2026/06/05 16:28:56.030605 [Info] transport/internet/tcp: REALITY: processed invalid connection from 109.94.21.160:64951: failed to read client hello
2026/06/05 16:29:17.074246 [Info] transport/internet/tcp: REALITY: processed invalid connection from 109.94.21.160:64979: failed to read client hello

Screenshots

No response

3x-ui version

3.2.8

Xray-core version

v26.6.1

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

  • 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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions