<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Mohammad Aftab Arab</title>
    <description>The latest articles on DEV Community by Mohammad Aftab Arab (@aftab_arab).</description>
    <link>https://dev.to/aftab_arab</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4174060%2F80520613-3e4c-45bf-808b-117427af9a06.png</url>
      <title>DEV Community: Mohammad Aftab Arab</title>
      <link>https://dev.to/aftab_arab</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/aftab_arab"/>
    <language>en</language>
    <item>
      <title>Cloudflare Browser-Based RDP: Replacing VPN + RDP with Zero Trust and the RDP error I faced.</title>
      <dc:creator>Mohammad Aftab Arab</dc:creator>
      <pubDate>Fri, 13 Nov 2026 23:17:59 +0000</pubDate>
      <link>https://dev.to/aftab_arab/cloudflare-browser-based-rdp-replacing-vpn-rdp-with-zero-trust-and-the-rdp-error-i-faced-47of</link>
      <guid>https://dev.to/aftab_arab/cloudflare-browser-based-rdp-replacing-vpn-rdp-with-zero-trust-and-the-rdp-error-i-faced-47of</guid>
      <description>&lt;p&gt;Remote access to Windows servers is one of those problems everyone has and nobody enjoys. For years the default answer has been a VPN plus an RDP client. Cloudflare now offers another option: &lt;strong&gt;RDP in a browser tab&lt;/strong&gt;, with no VPN, no client software, and no inbound ports open on your network.&lt;/p&gt;

&lt;p&gt;This article is a practical guide to that feature. It covers how it works, what you need before you start, how to set it up, how it compares with the VPN approach, and what went wrong when we deployed it for a public sector organisation. We deployed it in &lt;strong&gt;Q3 2026&lt;/strong&gt;, within a year of the feature reaching general availability. To our knowledge, that makes ours one of the first production deployments of the native service, so treat this as field notes from early in the product's life.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;u&gt;&lt;strong&gt;TL;DR&lt;/strong&gt;&lt;/u&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;What:&lt;/strong&gt; Cloudflare Access and Cloudflare Tunnel let administrators reach private Windows servers over RDP from a web browser. No VPN, no RDP client, no inbound firewall rules.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Who it's for:&lt;/strong&gt; sysadmins, cloud engineers, and security leads replacing VPN + RDP, especially in air-gapped environments.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;My deployment:&lt;/strong&gt; An infrastructure on Cloud, with multiple network segments, many Windows Server targets, and one outbound-only tunnel.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The error:&lt;/strong&gt; &lt;/li&gt;
&lt;/ul&gt;


&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Code 4: An unexpected error occurred during connection setup.
Detailed error:
received an RDCleanPath error: general error (code 1)
&lt;/code&gt;&lt;/pre&gt;


&lt;p&gt;can mean the target's RDP security layer is set to legacy &lt;strong&gt;RDP&lt;/strong&gt; mode(RDP Security Layer = 0). Switching it to &lt;strong&gt;Negotiate&lt;/strong&gt; (Security Layer = 1)fixed it for me. Cloudflare's docs also list &lt;strong&gt;SSL&lt;/strong&gt; (Security Layer = 2)as supported, which I did not test.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  Why VPN + RDP wears thin
&lt;/h2&gt;

&lt;p&gt;The organisation I worked with had a typical setup. Administrators connected to an SSL VPN, then opened Microsoft's Remote Desktop client (mstsc) to reach servers in a private cloud network. It worked, but it came with familiar costs:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Two things to install and maintain&lt;/strong&gt; on every administrator's machine: the VPN client and the RDP client.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Network-level access.&lt;/strong&gt; Once a user is on the VPN, they typically see far more of the network than the one server they need.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Two places to manage joiners and leavers:&lt;/strong&gt; the VPN and the servers themselves.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hard-to-evidence access.&lt;/strong&gt; Answering "who connected to what, and when?" for an auditor means stitching logs together.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;RDP itself also has a poor security reputation. Cloudflare's own write-up on the feature points to weak credentials and exposed port 3389 as the usual culprits, and to vulnerabilities such as BlueKeep (&lt;a href="https://nvd.nist.gov/vuln/detail/CVE-2019-0708" rel="noopener noreferrer"&gt;CVE-2019-0708&lt;/a&gt;) as the reason you don't want RDP reachable from the internet. Putting RDP behind identity-aware access, with nothing exposed inbound, addresses that directly.&lt;/p&gt;

&lt;h2&gt;
  
  
  What browser-based RDP is, and how it works
&lt;/h2&gt;

&lt;p&gt;Browser-based RDP is part of &lt;strong&gt;Cloudflare Access&lt;/strong&gt;, alongside the clientless SSH and VNC options that already existed. A user signs in (enforced MFA/OTP/SSO) through CloudflareAccess portal (with your customizable team name  in the URL), picks the Windows server, enters their Windows credentials, and gets a desktop rendered in the browser.&lt;/p&gt;

&lt;p&gt;The moving parts, in plain terms:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Cloudflare Access&lt;/strong&gt; authenticates the user against your identity provider and checks them against your policies. Access applications are deny-by-default.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A browser RDP client&lt;/strong&gt; (Cloudflare uses &lt;a href="https://github.com/Devolutions/IronRDP" rel="noopener noreferrer"&gt;IronRDP&lt;/a&gt;, written in Rust) runs in the page. Browsers can't speak raw RDP over TCP, so the client wraps the session in a WebSocket over TLS.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cloudflare's network&lt;/strong&gt; proxies that session to your environment and applies policy and logging along the way.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cloudflare Tunnel&lt;/strong&gt; (&lt;code&gt;cloudflared&lt;/code&gt;) makes an &lt;em&gt;outbound-only&lt;/em&gt; connection from your private network to Cloudflare, so there is nothing to open inbound. Can be installed on the target server, but since we are avoiding installing anything on the target server, we go with a linux server with cloudflared installed and an active tunnel alongside being reachable to the target servers.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The Windows server&lt;/strong&gt; receives a normal RDP connection from the connector side and authenticates the user with their Windows credentials. Cloudflare doesn't manage those credentials.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Two design details matter later in this article. First, Cloudflare connects to the target over &lt;strong&gt;TLS&lt;/strong&gt;. Second, Cloudflare's launch post says it deliberately keeps legacy, weak RDP security features from reaching your servers. Keep both in mind for the troubleshooting section.&lt;/p&gt;

&lt;p&gt;Sources: &lt;a href="https://blog.cloudflare.com/browser-based-rdp/" rel="noopener noreferrer"&gt;Cloudflare launch post&lt;/a&gt; and &lt;a href="https://developers.cloudflare.com/cloudflare-one/networks/connectors/cloudflare-tunnel/use-cases/rdp/rdp-browser/" rel="noopener noreferrer"&gt;Cloudflare docs&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  A short history: from Guacamole to a native service
&lt;/h2&gt;

&lt;p&gt;Browser-based RDP behind Cloudflare is not new in spirit. What's new is that Cloudflare now provides it natively.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;When&lt;/th&gt;
&lt;th&gt;What happened&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Before 2025&lt;/td&gt;
&lt;td&gt;Teams that wanted browser-based RDP behind Cloudflare Access ran their own gateway, such as &lt;a href="https://guacamole.apache.org/" rel="noopener noreferrer"&gt;Apache Guacamole&lt;/a&gt; or &lt;a href="https://devolutions.net/gateway/" rel="noopener noreferrer"&gt;Devolutions Gateway&lt;/a&gt;, and published it as an Access application.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;March 2025&lt;/td&gt;
&lt;td&gt;Cloudflare &lt;a href="https://blog.cloudflare.com/browser-based-rdp/" rel="noopener noreferrer"&gt;announced&lt;/a&gt; a native browser-based RDP service in closed beta.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;End of June 2025&lt;/td&gt;
&lt;td&gt;
&lt;a href="https://developers.cloudflare.com/changelog/post/2025-07-01-browser-based-rdp-open-beta/" rel="noopener noreferrer"&gt;Open beta&lt;/a&gt; for all customers.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;September 2025&lt;/td&gt;
&lt;td&gt;
&lt;a href="https://developers.cloudflare.com/changelog/post/2025-09-22-browser-based-rdp-ga/" rel="noopener noreferrer"&gt;General availability&lt;/a&gt;.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Since then&lt;/td&gt;
&lt;td&gt;Still evolving. At the time of writing, file transfer is labelled beta in the docs.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The practical difference is that you no longer run and patch a gateway yourself. Cloudflare's launch post lists infrastructure complexity, maintenance burden, and extra security reviews as the pain points of the self-hosted approach. For a network and security team that has to justify every extra component, that matters.&lt;/p&gt;

&lt;h2&gt;
  
  
  Architecture
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftg8d9mvkow2qktzqxcuy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftg8d9mvkow2qktzqxcuy.png" alt="High-level design: administrators reach private Windows servers through Cloudflare Access and an outbound-only tunnel" width="800" height="465"&gt;&lt;/a&gt;&lt;em&gt;Figure 1: High-level design. No inbound ports are opened on the private network.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Following the numbers in the diagram:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The administrator opens the App Launcher over HTTPS.&lt;/li&gt;
&lt;li&gt;They select the RDP application, which hands them to Cloudflare Access.&lt;/li&gt;
&lt;li&gt;Access sends them to the identity provider for SSO and MFA.&lt;/li&gt;
&lt;li&gt;Once an Allow policy matches, Access starts a browser RDP session.&lt;/li&gt;
&lt;li&gt;The session travels through the Cloudflare Tunnel, which the connector opened outbound.&lt;/li&gt;
&lt;li&gt;The connector reaches the Windows target on TCP/3389, and the administrator signs in with Windows credentials.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;For the detail behind each box (addressing, ports, security group rules, and the registry settings on the target), here is the low-level design:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F39vdocrju29fv7qv0bh8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F39vdocrju29fv7qv0bh8.png" alt="Low-level design: components, addressing, ports and security rules" width="799" height="550"&gt;&lt;/a&gt;&lt;em&gt;Figure 2: Low-level design. Open the image full size to read the detail.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What has to be true before you start
&lt;/h2&gt;

&lt;p&gt;These requirements come from &lt;a href="https://developers.cloudflare.com/cloudflare-one/networks/connectors/cloudflare-tunnel/use-cases/rdp/rdp-browser/" rel="noopener noreferrer"&gt;Cloudflare's current documentation&lt;/a&gt; as of October 2026. Check the docs for changes, because this is a young feature.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Requirement&lt;/th&gt;
&lt;th&gt;Detail&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Cloudflare domain&lt;/td&gt;
&lt;td&gt;An active domain on Cloudflare (full or partial setup) for the application hostname&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Windows version&lt;/td&gt;
&lt;td&gt;Windows Server 2016, 2019, 2022, 2025, or Windows 10/11 Pro and Enterprise&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;RDP security layer&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Set to Negotiate or SSL (per the docs), not the legacy RDP option. Security Layer = 1 or 2*  (Legacy is Security Layer = 0) [I have tried and tested Security Layer = 1 but not 2. The Cloudflare docs do confirm it though.]&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Connectivity&lt;/td&gt;
&lt;td&gt;A Cloudflare Tunnel with a route covering each target's IP&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Hostname&lt;/td&gt;
&lt;td&gt;Browser RDP works with public hostnames only&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Policies&lt;/td&gt;
&lt;td&gt;Allow or Block only. Bypass and Service Auth aren't supported for browser-rendered apps&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Client auth&lt;/td&gt;
&lt;td&gt;"Authenticate with Cloudflare One Client" must stay off for this app&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;User credentials&lt;/td&gt;
&lt;td&gt;Users still need valid Windows credentials on the target&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Browser&lt;/td&gt;
&lt;td&gt;Current Chrome, Edge, Firefox, or Safari. Clipboard sharing needs extra configuration in Firefox&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The bold row is the one that cost me a lot of time.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;*I have tried and tested Security Layer = 1 and not 2 because this was before Cloudflare had this in their docs. So I was just trying the next layer and if it did not work I would have moved to 2.&lt;br&gt;
My sincere apologies if you came here for that.&lt;br&gt;
And due to time, I moved to production after confirming it was working.&lt;br&gt;
And as you guys already know, &lt;strong&gt;If it works don't touch it.&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Setup walkthrough [On Cloudflare Dashboard]
&lt;/h2&gt;

&lt;p&gt;This is a condensed version of the flow. UI labels change, so follow the current &lt;a href="https://developers.cloudflare.com/cloudflare-one/networks/connectors/cloudflare-tunnel/use-cases/rdp/rdp-browser/" rel="noopener noreferrer"&gt;Cloudflare docs&lt;/a&gt; for exact clicks.&lt;/p&gt;
&lt;h3&gt;
  
  
  1. Create the tunnel and install the connector
&lt;/h3&gt;

&lt;p&gt;Create a &lt;code&gt;cloudflared&lt;/code&gt; tunnel in the Cloudflare dashboard and run the install command it generates on your connector host. The connector can run on the RDP server itself or on any host inside the private network. We used a dedicated Linux VM.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# The cloudflare dashboard gives you the exact install steps for your OS.&lt;/span&gt;
&lt;span class="c"&gt;# You can chose to install as a service (runs automatically) or run it manually&lt;/span&gt;
&lt;span class="c"&gt;# I installed it as a service.&lt;/span&gt;
&lt;span class="c"&gt;# For a token-based tunnel, the final step looks like this:&lt;/span&gt;
sudo cloudflared service install &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;TUNNEL_TOKEN&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Confirm the tunnel shows as &lt;strong&gt;Healthy&lt;/strong&gt; in the dashboard.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Route your subnets through the tunnel
&lt;/h3&gt;

&lt;p&gt;Add a &lt;strong&gt;Private CIDR&lt;/strong&gt; (Networking &amp;gt; Tunnels &amp;gt; Routes &amp;gt; Add Route &amp;gt; Private CIDR) route for each subnet that contains targets. Use &lt;code&gt;virtual networks&lt;/code&gt; (Networking &amp;gt; Routes &amp;gt; Virtual Networks) to keep environments logically separate. We used one virtual network per segment.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Add targets
&lt;/h3&gt;

&lt;p&gt;Create a &lt;strong&gt;target&lt;/strong&gt; (Zero Trust &amp;gt; Access Controls &amp;gt; Targets) for each Windows server: a friendly hostname plus its private IP and virtual network. The hostname is just a label for grouping and selection, and isn't used for DNS resolution. An IP and virtual network pairing can belong to only one target.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Create a DNS record for the application hostname
&lt;/h3&gt;

&lt;p&gt;Create a proxied DNS record for the hostname users will visit. It doesn't have to point at anything live, because Cloudflare's RDP proxy handles the routing. The docs give placeholder values for A, AAAA, and CNAME records.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. Create the Access application
&lt;/h3&gt;

&lt;p&gt;Create a self-hosted application on your public hostname, enable the browser-based RDP option, and choose &lt;strong&gt;RDP&lt;/strong&gt;. Then select your target hostnames and the RDP port (normally 3389), attach your Allow policies, choose your identity provider, and set a session duration.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fijjly2u9kgersy0k6ziq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fijjly2u9kgersy0k6ziq.png" alt="Access application configuration for browser-based RDP" width="800" height="2113"&gt;&lt;/a&gt;&lt;em&gt;Figure 3: The browser-based RDP application settings.&lt;/em&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  6. Write policies
&lt;/h3&gt;

&lt;p&gt;Policies decide who gets in. We used email-based Allow policies, one for the organisation's administrators and one for the implementation partner's engineers. In current Cloudflare docs, new policies deny clipboard and file transfer by default, and you enable each direction explicitly. For a public sector environment, that default is worth keeping.&lt;/p&gt;

&lt;h3&gt;
  
  
  7. (Recommended) Add a Gateway network policy
&lt;/h3&gt;

&lt;p&gt;Cloudflare recommends an explicit Gateway policy that allows traffic to Access infrastructure targets, so that Access policies are evaluated in the intended order. Also make sure "Enforce Cloudflare One Client session duration" is off, or users will be blocked.&lt;/p&gt;

&lt;h3&gt;
  
  
  8. Prepare the Windows servers and the network
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Set the RDP &lt;strong&gt;security layer to Negotiate or SSL&lt;/strong&gt;, per Cloudflare's docs. We verified Negotiate (more on this below).&lt;/li&gt;
&lt;li&gt;Allow TCP/3389 to each target &lt;strong&gt;only from the connector's private IP&lt;/strong&gt;, in both the cloud security group and the Windows firewall.&lt;/li&gt;
&lt;li&gt;Don't expose 3389 to the internet at all.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  9. Connect as a user
&lt;/h3&gt;

&lt;p&gt;Users sign in to the App Launcher at &lt;code&gt;https://&amp;lt;team-name&amp;gt;.cloudflareaccess.com&lt;/code&gt;, authenticate with the identity provider, select a server tile, and enter Windows credentials.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhjlz7tzzrt5iuv7xm6kr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhjlz7tzzrt5iuv7xm6kr.png" alt="Branded App Launcher" width="799" height="543"&gt;&lt;/a&gt;&lt;em&gt;Figure 4: The customised App Launcher that administrators/users use as their entry point.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Our deployment
&lt;/h2&gt;

&lt;p&gt;The environment, anonymised:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Item&lt;/th&gt;
&lt;th&gt;Detail&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Platform&lt;/td&gt;
&lt;td&gt;Huawei Cloud, private VPC&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Previous access method&lt;/td&gt;
&lt;td&gt;SSL VPN + Microsoft RDP client (MSTSC)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Targets&lt;/td&gt;
&lt;td&gt;Multiple Windows Server hosts (Windows Server 2019, domain-joined), across a few network segments - /24 subnets&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Connector&lt;/td&gt;
&lt;td&gt;One Ubuntu VM running &lt;code&gt;cloudflared&lt;/code&gt;, deployed token-based&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Tunnel&lt;/td&gt;
&lt;td&gt;A single tunnel advertising all subnets&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Segmentation&lt;/td&gt;
&lt;td&gt;One virtual network per subnet&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Identity&lt;/td&gt;
&lt;td&gt;Email-based Allow policies, MFA enforced, and a custom-branded login page and App Launcher&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Isolation&lt;/td&gt;
&lt;td&gt;Cloudflare Browser Isolation applied to the RDP sessions&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Logging&lt;/td&gt;
&lt;td&gt;Cloudflare Access audit logging enabled&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Deployed&lt;/td&gt;
&lt;td&gt;Q3 2026&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Design decisions worth copying:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;A dedicated connector host.&lt;/strong&gt; It does one job. Its only inbound rule is SSH port 22 from an administrator's IP, and its outbound traffic reaches Cloudflare.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Least-privilege network rules.&lt;/strong&gt; Each Windows target accepts RDP only from the connector's private IP.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;One tunnel, many routes.&lt;/strong&gt; It's easy to operate, and adding a subnet means adding a route.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Branding.&lt;/strong&gt; A custom-branded login page and App Launcher give administrators a recognisable, legitimate-looking entry point.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Before and after
&lt;/h2&gt;

&lt;p&gt;An honest comparison, including the trade-offs:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Dimension&lt;/th&gt;
&lt;th&gt;Before: SSL VPN + MSTSC&lt;/th&gt;
&lt;th&gt;After: Cloudflare browser-based RDP&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Software on admin devices&lt;/td&gt;
&lt;td&gt;VPN client and RDP client&lt;/td&gt;
&lt;td&gt;A web browser&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Network exposure model&lt;/td&gt;
&lt;td&gt;VPN gives network-level reach once connected&lt;/td&gt;
&lt;td&gt;Access is granted per application and per target&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Inbound ports&lt;/td&gt;
&lt;td&gt;VPN gateway exposed to the internet&lt;/td&gt;
&lt;td&gt;No inbound ports for RDP&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Authentication&lt;/td&gt;
&lt;td&gt;VPN credentials, then Windows credentials&lt;/td&gt;
&lt;td&gt;Identity provider SSO and MFA, then Windows credentials&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Joiners and leavers&lt;/td&gt;
&lt;td&gt;Manage the VPN and the servers&lt;/td&gt;
&lt;td&gt;Update Access policies (the Windows accounts still exist separately)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Access evidence&lt;/td&gt;
&lt;td&gt;Logs spread across systems&lt;/td&gt;
&lt;td&gt;Cloudflare Access logs, centrally available&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Operational dependency&lt;/td&gt;
&lt;td&gt;VPN gateway&lt;/td&gt;
&lt;td&gt;Cloudflare's service plus the connector host&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Per-server prerequisites&lt;/td&gt;
&lt;td&gt;Few&lt;/td&gt;
&lt;td&gt;RDP security layer must allow TLS&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Feature limits&lt;/td&gt;
&lt;td&gt;Full RDP client features&lt;/td&gt;
&lt;td&gt;Some limits (see below - Limitations section - you'll have to scroll a bit)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The trade-offs are real. You gain a dependency on a third-party service, you have to prepare each server or enforce domain level GPOs, and the feature set is smaller than a full RDP client. For this organisation, the security and management gains outweighed that but your answer may differ.&lt;/p&gt;

&lt;h2&gt;
  
  
  When it failed: the troubleshooting story
&lt;/h2&gt;

&lt;p&gt;Everything looked right. The tunnel was healthy, the routes were in place, users could sign in through Cloudflare, and the target list appeared. But every connection died right after the user entered their Windows credentials:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Unable to connect to your remote desktop.

Code 4: An unexpected error occurred during connection setup.

Detailed error:
received an RDCleanPath error: general error (code 1)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Over two troubleshooting sessions, we worked down the stack.&lt;/p&gt;

&lt;h3&gt;
  
  
  What I checked, and what each check told me
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Layer&lt;/th&gt;
&lt;th&gt;How we checked&lt;/th&gt;
&lt;th&gt;Result&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Tunnel&lt;/td&gt;
&lt;td&gt;Cloudflare dashboard&lt;/td&gt;
&lt;td&gt;Healthy and connected&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Network&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;nc -zv &amp;lt;target-ip&amp;gt; 3389&lt;/code&gt; from the connector&lt;/td&gt;
&lt;td&gt;Connected&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cloud security groups&lt;/td&gt;
&lt;td&gt;Console review&lt;/td&gt;
&lt;td&gt;Correct&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Windows RDP service&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;netstat -an&lt;/code&gt; on the target&lt;/td&gt;
&lt;td&gt;Listening on 3389&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Windows firewall&lt;/td&gt;
&lt;td&gt;Review&lt;/td&gt;
&lt;td&gt;Not blocking&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Native RDP&lt;/td&gt;
&lt;td&gt;VPN + MSTSC to the same server&lt;/td&gt;
&lt;td&gt;Worked&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Credentials&lt;/td&gt;
&lt;td&gt;Several account types and username formats&lt;/td&gt;
&lt;td&gt;No change&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Windows Security log&lt;/td&gt;
&lt;td&gt;Event Viewer&lt;/td&gt;
&lt;td&gt;No failed-logon events at all&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;That last row was the most puzzling clue. If credentials were being rejected, there would have been failed-logon events. There were none, which meant the connection was dying &lt;em&gt;before&lt;/em&gt; Windows authentication.&lt;/p&gt;

&lt;h3&gt;
  
  
  Reading the Windows event logs
&lt;/h3&gt;

&lt;p&gt;The pattern of events that are present and absent tells you how far a connection got:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Event&lt;/th&gt;
&lt;th&gt;Log&lt;/th&gt;
&lt;th&gt;Meaning&lt;/th&gt;
&lt;th&gt;Seen in our failures?&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;261&lt;/td&gt;
&lt;td&gt;TerminalServices-RemoteConnectionManager&lt;/td&gt;
&lt;td&gt;RDP listener received a connection&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;1149&lt;/td&gt;
&lt;td&gt;TerminalServices-RemoteConnectionManager&lt;/td&gt;
&lt;td&gt;RDP authentication stage reached&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4624&lt;/td&gt;
&lt;td&gt;Security&lt;/td&gt;
&lt;td&gt;Successful logon&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4625&lt;/td&gt;
&lt;td&gt;Security&lt;/td&gt;
&lt;td&gt;Failed logon&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4798&lt;/td&gt;
&lt;td&gt;Security&lt;/td&gt;
&lt;td&gt;Local group membership enumerated&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Event 261 says the connection reached the Windows RDP listener. The absence of everything after it says the session never got to authentication.&lt;br&gt;
One caveat: treat 1149 as a progress marker, not proof that credentials were valid, because its exact behaviour varies with NLA settings.&lt;br&gt;
Rely on 4624 and 4625 for actual logon outcomes.&lt;/p&gt;
&lt;h3&gt;
  
  
  Reading the tunnel connector logs
&lt;/h3&gt;

&lt;p&gt;The &lt;code&gt;cloudflared&lt;/code&gt; logs showed a sequence of "origin connection established", "proxy stream acknowledged", and "tcp proxy stream finished successfully", followed by a "use of closed network connection" error. In other words, the tunnel reached the server and the TCP connection opened, and then something closed it. That ruled out the tunnel and the network and pointed at the RDP layer.&lt;/p&gt;
&lt;h3&gt;
  
  
  The root cause
&lt;/h3&gt;

&lt;p&gt;I queried the RDP security settings on the target:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="nc"&gt;Get&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;ItemProperty&lt;/span&gt; &lt;span class="sb"&gt;`
  'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp' |
  Select SecurityLayer, MinEncryptionLevel, UserAuthentication
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SecurityLayer       : 0
MinEncryptionLevel  : 2
UserAuthentication  : 0
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;SecurityLayer = 0&lt;/code&gt; was the server's &lt;strong&gt;original state&lt;/strong&gt;. It selects the legacy RDP security layer, which doesn't use TLS:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;SecurityLayer&lt;/th&gt;
&lt;th&gt;Mode&lt;/th&gt;
&lt;th&gt;Works with Cloudflare browser RDP?&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;RDP (legacy)&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;No&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;Negotiate&lt;/td&gt;
&lt;td&gt;Yes (tested by us)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;SSL (TLS)&lt;/td&gt;
&lt;td&gt;Listed as supported in the docs; not tested by us&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Cloudflare's documentation &lt;u&gt;now&lt;/u&gt; states this requirement explicitly: the browser RDP service connects to the target over TLS, so the security layer must be Negotiate or SSL, and a server set to legacy RDP will fail to connect. When I deployed, the documentation did not cover this requirement. As an early adopter I have watched both the product interface and the docs change since, so check the current docs. If you're reading this before deploying, you can skip the two troubleshooting sessions.&lt;/p&gt;

&lt;p&gt;Native RDP clients still worked against the same server, because MSTSC is happy with the legacy layer. That is why "RDP works from my machine" proved nothing here.&lt;/p&gt;

&lt;h3&gt;
  
  
  The fix
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="c1"&gt;# Change the security layer from legacy (0) to Negotiate (1)&lt;/span&gt;
&lt;span class="nc"&gt;Set&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;ItemProperty&lt;/span&gt; &lt;span class="sb"&gt;`
  'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp' `&lt;/span&gt;
  &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Name&lt;/span&gt; &lt;span class="nc"&gt;SecurityLayer&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Value&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;

&lt;span class="c1"&gt;# Restart Remote Desktop Services to apply&lt;/span&gt;
&lt;span class="nc"&gt;Restart&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Service&lt;/span&gt; &lt;span class="nc"&gt;TermService&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Force&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;em&gt;Note: use &lt;strong&gt;restart&lt;/strong&gt;, not &lt;strong&gt;stop&lt;/strong&gt; and &lt;strong&gt;start&lt;/strong&gt;. Once you stop, you may not be able to connect to it again, unless you have direct console access.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;After the change, browser RDP sessions connected and the Windows desktop rendered in the browser. We set the value to 1 (Negotiate). We did not test 2 (SSL), so we can't confirm it from experience.&lt;/p&gt;

&lt;p&gt;Three practical warnings:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Restarting Remote Desktop Services drops active RDP sessions.&lt;/strong&gt; If you're connected via RDP, you'll be disconnected. Make sure you have another way in (the cloud console, for example) before you restart.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;On domain-joined servers, check Group Policy first.&lt;/strong&gt; If a policy sets the security layer, it will take precedence over the local registry value. The relevant Windows policy is "Require use of specific security layer for remote (RDP) connections", and setting it there is also the consistent way to fix a whole fleet.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Be careful when relaxing NLA.&lt;/strong&gt; Cloudflare's docs warn that if you disable Network Level Authentication (needed for Entra-joined accounts), you should turn off NLA only and not switch the security layer to legacy RDP. Our targets had NLA disabled and the fix worked, but we didn't test with NLA enabled, so we can't say it's required for other account types. Test in your own environment.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Red herrings that wasted our time
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Certificate errors from the &lt;code&gt;cloudflared&lt;/code&gt; CLI.&lt;/strong&gt; On a token-deployed tunnel, running commands like &lt;code&gt;cloudflared tunnel run&lt;/code&gt; by hand produces &lt;code&gt;cert.pem&lt;/code&gt; errors. That is expected for token-based tunnels and doesn't mean the production tunnel is broken. Check health in the Clouflare dashboard instead.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;"Native RDP works, so the server is fine."&lt;/strong&gt; Native clients tolerate the legacy layer, and Cloudflare's service doesn't.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;"TCP/3389 is reachable, so the network is fine."&lt;/strong&gt; True, but a successful TCP connection says nothing about whether the RDP handshake will succeed.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Toggling NLA and trying more accounts.&lt;/strong&gt; It didn't help, because the failure happened before authentication.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  An error decoder for &lt;code&gt;Code 4 / general error (code 1)&lt;/code&gt;
&lt;/h3&gt;

&lt;p&gt;That error message is a catch-all, and the same headline can have different causes. This table reflects our experience and what other users report, so treat it as a starting point:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;What you see&lt;/th&gt;
&lt;th&gt;Likely layer&lt;/th&gt;
&lt;th&gt;First things to check&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Same error with a &lt;strong&gt;WSA 10060 timeout&lt;/strong&gt; appended&lt;/td&gt;
&lt;td&gt;Network reachability&lt;/td&gt;
&lt;td&gt;Route covers the target IP in the right virtual network. Cloud security group and Windows firewall allow 3389 from the connector. &lt;code&gt;nc -zv&lt;/code&gt; from the connector.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;No timeout detail. Event 261 appears, but no 1149, 4624, or 4625&lt;/td&gt;
&lt;td&gt;RDP security layer / TLS&lt;/td&gt;
&lt;td&gt;Check &lt;code&gt;SecurityLayer&lt;/code&gt;. It must not be 0. I fixed ours with 1 (Negotiate).&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Event 261 plus logon failures (4625)&lt;/td&gt;
&lt;td&gt;Credentials or authorisation&lt;/td&gt;
&lt;td&gt;Username format, account rights, Remote Desktop Users membership&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Tunnel shows unhealthy&lt;/td&gt;
&lt;td&gt;Connector&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;cloudflared&lt;/code&gt; service on the connector host, outbound connectivity&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Everything works for Chrome but clipboard fails in Firefox&lt;/td&gt;
&lt;td&gt;Browser settings&lt;/td&gt;
&lt;td&gt;Firefox needs additional clipboard flags per the docs&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Public sector considerations
&lt;/h2&gt;

&lt;p&gt;If you work in government or a regulated environment, these points deserve attention:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Identity and MFA at the front door.&lt;/strong&gt; Access policies and your identity provider decide who reaches a server, before any Windows login.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Audit evidence.&lt;/strong&gt; Cloudflare Access logs give you a central record of access decisions, and audit logging is enabled in our deployment. Confirm what session-level detail your own plan retains and for how long, and whether it satisfies your audit requirements.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Clipboard and file transfer controls.&lt;/strong&gt; New policies deny both by default. Enable only what each role needs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Policy hygiene.&lt;/strong&gt; Review Allow policies on a schedule and remove leavers promptly. This is my recommendation, not a Cloudflare requirement.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Third-party and data-flow review.&lt;/strong&gt; Traffic and metadata flow through Cloudflare's network. Check this against your data sovereignty, procurement, and security assessment rules. Cloudflare said at launch that it planned to include browser-based RDP in its FedRAMP High offering, so check its current compliance status if that matters to you.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A break-glass path.&lt;/strong&gt; Keep an alternate administrative route, such as the cloud provider's console or even the VPN + mstsc on &lt;strong&gt;standby&lt;/strong&gt;, so a bad RDP change or service outage can't lock everyone out.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Limitations, and when it may not fit
&lt;/h2&gt;

&lt;p&gt;From Cloudflare's current docs(maybe be outdated depending on when you are reading this), known limitations include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Cloudflare uses TLS to connect to the target but &lt;strong&gt;doesn't verify the target's TLS certificate&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;No audio redirection.&lt;/li&gt;
&lt;li&gt;Clipboard transfers are capped at 500 KB, text only for the text controls.&lt;/li&gt;
&lt;li&gt;File transfer is in beta, with size and count limits.&lt;/li&gt;
&lt;li&gt;Local printing is limited to PDFs via the file transfer panel.&lt;/li&gt;
&lt;li&gt;Entra-joined accounts need NLA enforcement turned off.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It may not suit you if you need full RDP client features such as audio or rich device redirection, if you can't route administrative traffic through a third party, or if your servers can't use a TLS-capable security layer.&lt;/p&gt;

&lt;p&gt;Alternatives include self-hosted gateways like Apache Guacamole or Devolutions Gateway (more control, more to run and patch), the Cloudflare One Client with a native RDP client (needs software on devices), or a conventional VPN.&lt;/p&gt;

&lt;h2&gt;
  
  
  Pre-flight checklist for each new target
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;[ ] Server's subnet is covered by a tunnel route&lt;/li&gt;
&lt;li&gt;[ ] Cloud security group allows TCP/3389 only from the connector's private IP&lt;/li&gt;
&lt;li&gt;[ ] Windows firewall allows 3389 from the connector&lt;/li&gt;
&lt;li&gt;[ ] &lt;strong&gt;RDP security layer is not legacy: Negotiate (verified by me) or SSL (per the docs). Check for a Group Policy override&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;[ ] Windows OS version is on Cloudflare's supported list&lt;/li&gt;
&lt;li&gt;[ ] Target created with the correct IP and virtual network&lt;/li&gt;
&lt;li&gt;[ ] Target hostname is selected in the Access application&lt;/li&gt;
&lt;li&gt;[ ] User matches an Allow policy&lt;/li&gt;
&lt;li&gt;[ ] &lt;code&gt;nc -zv &amp;lt;target-ip&amp;gt; 3389&lt;/code&gt; succeeds from the connector (dedicated Ubuntu server)&lt;/li&gt;
&lt;li&gt;[ ] End-to-end test from a browser, outside the VPN&lt;/li&gt;
&lt;li&gt;[ ] Alternate administrative access confirmed before changing RDP settings&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Do users need a VPN or RDP client?&lt;/strong&gt;&lt;br&gt;
No. They need a supported web browser and valid Windows credentials.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Does Cloudflare store or manage the Windows passwords?&lt;/strong&gt;&lt;br&gt;
No. Users authenticate to Windows with credentials already configured on the server.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can the connector run on the RDP server?&lt;/strong&gt;&lt;br&gt;
Yes, or on any host inside the private network. We used a dedicated Linux VM.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Does it work with domain-joined servers?&lt;/strong&gt;&lt;br&gt;
Yes. Our targets were domain-joined. Cloudflare's docs list supported username formats, including &lt;code&gt;DOMAIN\user&lt;/code&gt; and UPN.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What does "Code 4 ... general error (code 1)" mean?&lt;/strong&gt;&lt;br&gt;
It's a generic proxy-side failure. Use the decoder table above to narrow the cause.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Is it generally available?&lt;/strong&gt;&lt;br&gt;
Yes, since September 2025. Check the docs for the current feature status.&lt;/p&gt;

&lt;h2&gt;
  
  
  Wrapping up
&lt;/h2&gt;

&lt;p&gt;Browser-based RDP through Cloudflare removed the VPN client, the inbound exposure, and the two-system user management for this organisation, in exchange for one new dependency and some per-server preparation. The one setting that blocked us, &lt;code&gt;SecurityLayer = 0&lt;/code&gt;, is now documented as a prerequisite, so check it first on any server you plan to onboard.&lt;/p&gt;

&lt;p&gt;If you're evaluating this for a public sector or regulated environment and want to talk through the design, you can get in touch.&lt;/p&gt;




&lt;h3&gt;
  
  
  Sources
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://blog.cloudflare.com/browser-based-rdp/" rel="noopener noreferrer"&gt;Cloudflare: RDP without the risk (launch post)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://developers.cloudflare.com/cloudflare-one/networks/connectors/cloudflare-tunnel/use-cases/rdp/rdp-browser/" rel="noopener noreferrer"&gt;Cloudflare docs: Connect to RDP in a browser&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://developers.cloudflare.com/changelog/post/2025-07-01-browser-based-rdp-open-beta/" rel="noopener noreferrer"&gt;Cloudflare changelog: open beta&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://developers.cloudflare.com/changelog/post/2025-09-22-browser-based-rdp-ga/" rel="noopener noreferrer"&gt;Cloudflare changelog: general availability&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/Devolutions/IronRDP" rel="noopener noreferrer"&gt;IronRDP on GitHub&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://nvd.nist.gov/vuln/detail/CVE-2019-0708" rel="noopener noreferrer"&gt;NVD: CVE-2019-0708 (BlueKeep)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>security</category>
      <category>architecture</category>
      <category>cloud</category>
    </item>
  </channel>
</rss>
