Issue with VLESS+WS+TLS over Cloudflare: OperationCanceled / Error 404 (Direct connection works) #5423
Unanswered
name321467
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The Problem
I am setting up a VLESS (post-quantum) + WebSocket + TLS connection through Cloudflare (CDN).
OperationCanceled, and websites do not load.My Environment
Chronology of Actions and Tests
Basic Setup:
I created a VLESS+WS config on port
2053and allowed the port in the firewall.Cloudflare Configuration:
Access Restriction:
I configured the firewall to allow port
2053only for Cloudflare's IP addresses.Connection Attempt via Domain:
OperationCancelederror. Previously, the client logs showedrejected by server, but now only theOperationCancelederror appears.SSL/TLS Mode Diagnostics in Cloudflare:
I tried changing the encryption modes to diagnose the issue:
https://my.domain:2053/my-pathdirectly returns a "Bad Request" response. I believe this is normal* since I don't have a placeholder website, and it confirms that the request is passing through Cloudflare and reaching Xray (the TLS handshake is successful).Other Steps:
In Cloudflare Security Events, I can see that my requests are being allowed, not blocked. I also configured a rule to bypass security systems in case WAF was blocking my requests at some stage. The path is identical in the client and server configs. In the 3x-ui panel, I can see that a connection attempt is registered when I run the ping and speed tests.
Questions
Server Config (Inbound)
{ "listen": null, "port": 2053, "protocol": "vless", "settings": { "clients": [ { "email": "my_email", "flow": "", "id": "my_id" } ], "decryption": "...", "encryption": "...", "selectedAuth": "ML-KEM-768, Post-Quantum" }, "streamSettings": { "network": "ws", "security": "tls", "tlsSettings": { "alpn": [ "http/1.1" ], "certificates": [ { "buildChain": false, "certificateFile": "/usr/local/x-ui/config/cert.pem", "keyFile": "/usr/local/x-ui/config/key.pem", "oneTimeLoading": false, "usage": "encipherment" } ], "cipherSuites": "", "disableSystemRoot": false, "echForceQuery": "none", "echServerKeys": "", "enableSessionResumption": false, "maxVersion": "1.3", "minVersion": "1.2", "rejectUnknownSni": false, "serverName": "my.doman", "verifyPeerCertInNames": [ "dns.google", "cloudflare-dns.com" ] }, "wsSettings": { "acceptProxyProtocol": false, "headers": {}, "heartbeatPeriod": 0, "host": "", "path": "/my-path" } }, "tag": "inbound-2053", "sniffing": { "enabled": true, "destOverride": [ "tls", "quic", "http" ], "metadataOnly": false, "routeOnly": false } }Beta Was this translation helpful? Give feedback.
All reactions