mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #3913] VLESS + WS + TLS not working correctly behind CloudflareFeature request #2644
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#2644
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 @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=tlssni=domainHowever, 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:
Clear guidance or automatic configuration for Cloudflare proxy environments would help prevent this confusion.
Describe alternatives you've considered
No response
Checklist