I'm not sure if this would be a Gateway issue or a Cloudflare issue, but thought I'd ask here as well. I do have a support case open with Cloudflare as well.
I have a Devolutions Server with gateways and I am currently unable to access any web sessions while proxied over Cloudflare. This happens with both using a tunnel and without using a tunnel. When not using a tunnel, as soon as I set the DNS record to a gray cloud, it works great. I have tried this with two different gateway servers so far with the same results. Here is a sample of the logs when connecting:
2025-10-16T20:29:56.725672Z INFO listener{port=7171}:https{client=172.18.0.1:37338}:request{method=GET path=/jet/rdp}: devolutions_gateway::middleware::log: duration=33.316µs status=101 Switching Protocols
2025-10-16T20:29:56.755589Z ERROR listener{port=7171}:https{client=172.18.0.1:37338}:request{method=GET path=/jet/rdp}: devolutions_gateway::api::rdp: RDP failure client=172.18.0.1:37338 error="couldn’t read clean cleanpath PDU: WebSocket protocol error: Connection reset without closing handshake: WebSocket protocol error: Connection reset without closing handshake: Connection reset without closing handshake"
On the Cloudflare logs, I am just seeing a 500 status on the edge servers, but no status code at all for the origin. Internally, everything works as expected. While inspecting tunnel logs, I do not see any X509/SSL errors (at first I was getting these until I specified the hostname in the TLS settings on Cloudflare Tunnel) and get no errors at all.
Unfortunately, I don't have much else to go on and while I believe this is an issue on the Cloudflare side, has anyone seen this and dealt with this before?
Hello csudderth,
Thank you for reaching out to our forum. Could you please confirm if you followed the instructions in this KB:
Cloudflare with Devolutions Gateway - Devolutions Documentation
Best regards,
Michel Audi
Hi Michel,
I'm actually good to go here. It was an issue on the Cloudflare side. If anyone runs into any issues in the future, check your workers if you have any on your Cloudflare account.