[GH-ISSUE #4137] External Proxy strips Reality security parameters from generated client URI #2809

Closed
opened 2026-10-31 20:28:07 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @vyacheslavshtyrlin on GitHub (Apr 29, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4137

Describe the bug

When External Proxy is configured on a VLESS+Reality inbound (without TLS, which is the correct setting for Reality), the generated client share link loses all Reality-specific parameters and reverts to security=none, making the link completely non-functional.

Setup context

nginx stream proxy sits in front of xray on port 443 with SNI-based routing:

stream {
map $ssl_preread_server_name $backend {
www.microsoft.com 127.0.0.1:2099; # Reality inbound
default 127.0.0.1:2083; # fallback
}
server {
listen 443;
ssl_preread on;
proxy_pass $backend;
}
}

Reality inbound listens on internal port 2099. External Proxy host:443 (TLS unchecked) is needed so clients connect via 443 instead of 2099 directly. TLS is unchecked because Reality handles its own TLS-like handshake — adding a TLS wrapper would be incorrect.

How to repeat the problem?

  1. Create a VLESS inbound with Reality security
  2. Configure Reality settings
  3. Enable External Proxy on the inbound: host:443 (TLS unchecked — correct for Reality since it handles its own TLS-like handshake)
  4. Add a client and generate the share link

Expected action

vless://uuid@host:443?type=tcp&encryption=none&security=reality&pbk=PUBLIC_KEY&fp=chrome&sni=SNI&sid=SHORT_ID&spx=%2F#name

Received action

vless://uuid@host:443?type=tcp&encryption=none&security=none#name
All Reality parameters (security=reality, pbk, sni, fp, sid) are stripped.

Workaround
Generate the URI without External Proxy (uses internal port), then manually replace the port with 443 in the URI.

3x-ui Version

2.9.3

Xray-core Version

26.4.17

Checklist

  • This bug report is written entirely in English.
  • This bug report is new and no one has reported it before me.
Originally created by @vyacheslavshtyrlin on GitHub (Apr 29, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4137 ### Describe the bug When External Proxy is configured on a VLESS+Reality inbound (without TLS, which is the correct setting for Reality), the generated client share link loses all Reality-specific parameters and reverts to security=none, making the link completely non-functional. Setup context nginx stream proxy sits in front of xray on port 443 with SNI-based routing: stream { map $ssl_preread_server_name $backend { www.microsoft.com 127.0.0.1:2099; # Reality inbound default 127.0.0.1:2083; # fallback } server { listen 443; ssl_preread on; proxy_pass $backend; } } Reality inbound listens on internal port 2099. External Proxy host:443 (TLS unchecked) is needed so clients connect via 443 instead of 2099 directly. TLS is unchecked because Reality handles its own TLS-like handshake — adding a TLS wrapper would be incorrect. ### How to repeat the problem? 1. Create a VLESS inbound with Reality security 2. Configure Reality settings 3. Enable External Proxy on the inbound: host:443 (TLS unchecked — correct for Reality since it handles its own TLS-like handshake) 4. Add a client and generate the share link ### Expected action vless://uuid@host:443?type=tcp&encryption=none&security=reality&pbk=PUBLIC_KEY&fp=chrome&sni=SNI&sid=SHORT_ID&spx=%2F#name ### Received action vless://uuid@host:443?type=tcp&encryption=none&security=none#name All Reality parameters (security=reality, pbk, sni, fp, sid) are stripped. **Workaround** Generate the URI without External Proxy (uses internal port), then manually replace the port with 443 in the URI. ### 3x-ui Version 2.9.3 ### Xray-core Version 26.4.17 ### Checklist - [x] This bug report is written entirely in English. - [x] This bug report is new and no one has reported it before me.
bsakaguchi 2026-10-31 20:28:07 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@vyacheslavshtyrlin commented on GitHub (Apr 29, 2026):

The External Proxy TLS field has three options — TLS, Same, Empty — with a single shared tooltip "Force TLS" that explains nothing. For Reality, Empty is the logical choice, yet it triggers this bug. Same is equally opaque. Each option needs a tooltip describing its actual effect on the generated URI.

Image
<!-- gh-comment-id:4348087210 --> @vyacheslavshtyrlin commented on GitHub (Apr 29, 2026): The External Proxy TLS field has three options — TLS, Same, Empty — with a single shared tooltip "Force TLS" that explains nothing. For Reality, Empty is the logical choice, yet it triggers this bug. Same is equally opaque. Each option needs a tooltip describing its actual effect on the generated URI. <img width="268" height="199" alt="Image" src="https://github.com/user-attachments/assets/15850f24-da4b-4027-80e0-4bc5b0bfaac3" />
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#2809
No description provided.