[GH-ISSUE #3913] VLESS + WS + TLS not working correctly behind CloudflareFeature request #2644

Closed
opened 2026-10-31 20:26:56 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @zawthureintun on GitHub (Mar 11, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/3913

Environment

OS: Ubuntu
Panel: 3X-UI
Protocol: VLESS
Transport: WebSocket
Cloudflare Tunnel enabled

Issue

If I create an inbound without TLS, the connection works.
When I manually add TLS parameters in the client link, it works and internet access is available.

Example working client link:

vless://UUID@connect.mydomain.com:443?type=ws&security=tls&encryption=none&path=%2Fvpn&host=connect.kyawkhwa.vip&sni=connect.kyawkhwa.vip

However, when I enable TLS directly in the inbound settings and use the same certificate, the client can connect but cannot access the internet.

Summary

VLESS + WS (no TLS in inbound) → works
VLESS + WS + TLS in inbound → client connects but no internet

Could you update the 3X-UI to generate client key that can solve this issue.

Thank you.

Describe the solution you'd like

I would like 3X-UI to properly support VLESS + WebSocket + TLS when the server is behind Cloudflare (orange cloud proxy).

Currently, when TLS is disabled in the inbound, the connection works if the client manually adds:

  • security=tls
  • sni=domain

However, when TLS is enabled directly in the inbound and a valid certificate is configured, the client can connect but no internet traffic passes through.

It appears that TLS termination by Cloudflare proxy may conflict with TLS enabled in the Xray inbound.

The expected behavior would be either:

  1. The panel detects when the server is behind Cloudflare and recommends the correct configuration (WS without TLS in inbound), or
  2. TLS-enabled inbound works correctly behind Cloudflare proxy without breaking internet access.

Clear guidance or automatic configuration for Cloudflare proxy environments would help prevent this confusion.

Describe alternatives you've considered

No response

Checklist

  • This feature report is written entirely in English.
Originally created by @zawthureintun on GitHub (Mar 11, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/3913 ### Is your feature request related to a problem? **Environment** OS: Ubuntu Panel: 3X-UI Protocol: VLESS Transport: WebSocket Cloudflare Tunnel enabled Issue If I create an inbound without TLS, the connection works. When I manually add TLS parameters in the client link, it works and internet access is available. Example working client link: vless://UUID@connect.mydomain.com:443?type=ws&security=tls&encryption=none&path=%2Fvpn&host=connect.kyawkhwa.vip&sni=connect.kyawkhwa.vip However, when I enable TLS directly in the inbound settings and use the same certificate, the client can connect but cannot access the internet. Summary VLESS + WS (no TLS in inbound) → works VLESS + WS + TLS in inbound → client connects but no internet Could you update the 3X-UI to generate client key that can solve this issue. Thank you. ### Describe the solution you'd like I would like 3X-UI to properly support **VLESS + WebSocket + TLS when the server is behind Cloudflare (orange cloud proxy)**. Currently, when TLS is **disabled in the inbound**, the connection works if the client manually adds: * `security=tls` * `sni=domain` However, when TLS is **enabled directly in the inbound** and a valid certificate is configured, the client can connect but **no internet traffic passes through**. It appears that TLS termination by **Cloudflare proxy** may conflict with TLS enabled in the Xray inbound. The expected behavior would be either: 1. The panel detects when the server is behind Cloudflare and recommends the correct configuration (WS without TLS in inbound), or 2. TLS-enabled inbound works correctly behind Cloudflare proxy without breaking internet access. Clear guidance or automatic configuration for **Cloudflare proxy environments** would help prevent this confusion. ### Describe alternatives you've considered _No response_ ### Checklist - [x] This feature report is written entirely in English.
bsakaguchi 2026-10-31 20:26:56 +07:00
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#2644
No description provided.