Open-source alternative to RD Gateway and RD Web Access

Apache Guacamole can replace the RD Gateway and RD Web Access roles with HTTPS browser access, LDAP or SAML sign-in and Duo or TOTP MFA, but it does not replace RDP session hosts or every native client feature.

On this page

Can Apache Guacamole replace RD Gateway and RD Web Access?

Yes, Apache Guacamole can take over both the RD Gateway and RD Web Access roles for most farms, but your RDS session hosts and RDS CALs stay in place. Guacamole is a clientless gateway that users reach over HTTPS from any HTML5 browser, so the front end moves to a server you run, while RDP sessions still terminate on Windows session hosts. If your renewal, MFA requirement or licensing review is driven by the gateway and web access roles, that is the part you can replace; the session hosts and their licensing questions are a separate decision.

The main trade-off is that you take on a different operating model. Apache Guacamole is released under the Apache License, Version 2.0, so there is no license fee for the software itself, but you own the installation, patching, certificates and backups. Its architecture splits the work in two: the Java web application handles the browser interface and authentication, while the guacd daemon loads the protocol plugins that connect to desktops on the user's behalf. Both components must be deployed, sized and secured, and the web application speaks only the Guacamole protocol to guacd, so your team needs to understand both halves before go-live.

Before you commit, confirm three things in your own environment: which authentication extensions you need (LDAP or Active Directory, Duo or TOTP, SAML or OpenID Connect), whether your users depend on native RDP client features such as certain redirection behaviors, and whether your session recording requirement can be met by the session recording player extension. Those answers determine whether the migration is a straight front-end swap or needs additional work.

Which RD Gateway and RD Web Access capabilities Guacamole covers

This table maps each RD Gateway and RD Web Access capability to the closest Guacamole feature and marks where Guacamole has no equivalent. Read the Guacamole column as the native or extension feature to verify, and treat every gap as a decision to confirm in your own environment and the Guacamole manual before planning a cutover.

CapabilityGuacamole equivalentCoverage and what to confirm
HTTPS tunneling to internal hostsBrowser gateway: web application over HTTPS, with guacd opening RDP, VNC or SSH sessions to internal targetsCovered for RDP, VNC and SSH. Confirm the TLS termination point, certificate chain and firewall rules for guacd in your network design.
Web feed and RemoteApp launchConnection groups and connection lists in the web interface, not an RDS web feedPartial. Users get desktop-style connections, but published RemoteApp windows are not a native Guacamole feature. Confirm with the manual before retiring RemoteApp.
Sign-inLDAP or Active Directory, SAML, OpenID Connect, CAS, smart card SSO, or database accountsCovered through extensions. Confirm which identity source you will use and how group membership maps to connection permissions.
Multi-factor authenticationDuo and TOTP extensionsCovered through extensions. Confirm enrollment, fallback methods and how MFA interacts with your SSO flow.
Connection authorizationPer-user and per-group connection permissions stored in the Guacamole database or mapped from directory groupsCovered, but permissions are defined in Guacamole rather than in RD Gateway resource authorization policies. Plan a mapping exercise.
Session recordingSession recording player extension for recorded Guacamole sessionsPartial. Confirm recording scope, storage location, retention and whether it meets your evidence needs for remote access monitoring.
Load balancing and high availabilityMultiple web application and guacd instances behind a load balancer, with a shared database backendRequires design work. Confirm session affinity and database high availability with your architecture team, since the manual does not replace a tested failover plan.
Certificate handlingCertificates managed at the reverse proxy or application server, separate from RD Gateway's certificate configurationCovered by your own PKI or public CA. Confirm renewal process and the trust chain used by end users.
RD Connection Broker session brokering and native client redirectionNo equivalent. Drive, printer, clipboard and smart card redirection depend on protocol support and Guacamole settingsGap. Test each redirection type you rely on. Confirm the current state in the Guacamole manual before committing.

Which open-source option fits which RDS front end

Most teams replacing RD Gateway and RD Web Access start with Apache Guacamole, but a reverse proxy or a retained gateway can fit specific situations. Each option changes who runs what, so the choice depends on your access patterns, client mix and the staff you have to operate it.

Apache Guacamole as the primary front end

Guacamole is the main replacement for RD Web Access and the browser path of RD Gateway. It runs the web application and the guacd daemon on your servers, speaks RDP to session hosts, and signs users in through LDAP or SAML with Duo or TOTP for multi-factor authentication. Your team owns the web tier, the database backend (MariaDB or MySQL, PostgreSQL or SQL Server), TLS certificates, patching and connection definitions. Check which native client features your users depend on before you cut over, because browser sessions do not provide the same device redirection as the Windows client.

Guacamole manual

Guacamole behind a reverse proxy

Placing Guacamole behind an existing reverse proxy or load balancer lets you reuse TLS termination, web application firewall rules and health checks you already operate. This fits organizations that publish several internal web apps through one edge tier. The trade-off is that the proxy becomes part of the authentication and session path, so its header handling, timeouts and WebSocket support must be tested with real sessions. Your team must still operate the Guacamole nodes, the guacd hosts and the proxy configuration, and confirm that the proxy does not strip headers used by your SSO setup.

Keeping RD Gateway for native-client users

Some users connect with the Windows Remote Desktop client and rely on RD Gateway for RDP tunneling, device redirection or established policies. Keeping the gateway role for that group lets you retire RD Web Access and move browser users to Guacamole without forcing a client change. The cost is that you keep the Windows Server gateway, its certificates, its Network Policy Server integration and its licensing, so two access paths must be secured and monitored. Confirm with your Microsoft licensing advisor how RDS CALs apply to each path before you split the user base.

Two front ends during migration

Running Guacamole and the existing gateway side by side is a common transition state, and it lets you move connection groups one session collection at a time. Each path needs its own access policy, logging and MFA enforcement so that a weaker path does not become the easy route. Plan a fixed end date for the old path, record which users still rely on it, and retire it only after the RD Web Access feed and gateway logs show no remaining traffic.

Session recording and access logging

Guacamole's session recording player extension and the logs from its authentication layer help meet NIST SP 800-171 requirement 3.1.12 for monitoring and controlling remote access sessions. Whichever front end you choose, decide where recordings and logs are stored, who can view them and how long they are kept. Verify that the recording configuration covers every connection path, including any retained RD Gateway users, so monitoring does not have gaps.

Remote support tools outside this replacement

RustDesk is a remote support tool for helpdesk and unattended access, not a replacement for RDP session delivery to published desktops. Choose it for support sessions, and keep Guacamole or RD Gateway for scheduled access to session hosts. CISA advisory AA23-025A recommends auditing which remote access tools are authorized and allowlisting portable remote management software, so every additional tool adds to that inventory.

Running Guacamole alongside RDS session hosts and brokers

When session hosts stay on Windows Server and users keep RDS CALs, Guacamole replaces the browser-facing gateway and web access roles while guacd opens RDP connections to the same session hosts users reach today. The session host role and session collections stay in place, so most of the work is in the gateway, authentication and connection definitions.

  • Connection path: guacd needs a route to each session host or to the load balancer address in front of them. Confirm that the firewall rules that allowed the RD Gateway now permit guacd's source address.
  • Licensing: RDS CALs remain required per user or device for connections to an RD Session Host, so Guacamole does not remove that cost. The licensing topic covers the details, and you should confirm the terms with Microsoft or your licensing partner.
  • Broker role: Guacamole does not read session collection state from the RD Connection Broker. Decide whether users pick hosts from connection groups you maintain or whether the broker keeps placing sessions.
  • Session features: printing, drive redirection, clipboard and audio depend on RDP channels that must be tested on each host image.

Before cutover, ask your Microsoft licensing contact to confirm how your current agreement maps to the user and device counts you expect.

Moving RD Web Access users and gateway policies to Guacamole

This sequence moves users, connections and access policies from RD Web Access and RD Gateway to Guacamole in controlled phases, so each stage is tested before the gateway role is retired.

  1. Deploy guacd and the web application

    Your infrastructure team installs guacd, the Guacamole web application and a supported database backend (MariaDB or MySQL, PostgreSQL or SQL Server, as documented in the Guacamole manual) on hosts in your own environment. The web application handles the interface and authentication, while guacd loads the protocol plugins that reach your session hosts. Ask your team to confirm the operating system, Java runtime and container approach they will support before installation starts. This step is done when a test administrator can sign in over HTTPS and the application reaches a single test RDP host through guacd.

  2. Import connections for each session collection

    Export the RemoteApp and desktop entries from each RD Web Access collection and the gateway resource policies that map users to hosts. Recreate them as Guacamole connections and connection groups, one group per former collection, so the browser view matches what users know. Remove entries that no longer have a live host and record which group each former collection maps to. This step is done when each collection has a matching connection group and the owners of the session hosts have confirmed the target list.

  3. Integrate Active Directory through LDAP

    Your directory administrators provide a bind account with read access to the user and group objects, plus the search base and group filters the Guacamole LDAP extension needs. Map directory groups to connection group permissions so access follows existing group membership rather than hand-maintained lists. Your certificate owner should supply the certificate chain if the directory uses LDAPS. This step is done when a test user group signs in and sees only the connection groups their directory groups allow.

  4. Add Duo or TOTP multi-factor authentication

    Choose Duo or TOTP based on your existing identity tooling, and confirm the choice with your security team before configuration. Enrol the test user group first, then extend enrolment in waves. Recovery and lost-device procedures should be written and approved before any production user is enrolled. CIS Control 6.4 requires multi-factor authentication for remote network access, so keep the evidence of each enrolled user for your assessors. This step is done when a test user cannot reach a connection without the second factor and the recovery procedure has been tested.

  5. Test printing and drive redirection

    Test printing, clipboard, drive redirection and audio on each protocol and session host combination that users rely on, with a test user group running scripted and manual tasks. Record which features work, which differ from the RD client, and which are unavailable, so help desk staff and users have accurate expectations. Confirm with the application owners whether any workflow depends on a feature that will not carry over. This step is done when a written results list has been reviewed and each gap has an accepted workaround or an owner.

  6. Run Guacamole and RD Gateway in parallel

    Keep RD Web Access and RD Gateway running while users move in groups, starting with the test user group and then each former collection. Track sign-ins, failed MFA attempts, session errors and help desk tickets for both paths, and set rollback criteria with the application owners before the first group moves. Enable session recording where your policy requires it and confirm that the recordings are stored under your retention rules. This step is done when every collection has run on Guacamole for an agreed period and the open issues list is closed or accepted.

  7. Retire the gateway role

    Once all collections are confirmed on Guacamole, remove user-facing links to RD Web Access, disable the gateway listener and revoke the publishing rules on the gateway server. Keep the configuration backed up for your records, and update firewall rules, DNS entries and your documented remote access diagram. NIST SP 800-46 Rev. 2 expects every remote access component to be secured against threats identified in your threat model, so the decommissioning should be reflected in that model. This step is done when the gateway no longer accepts connections, the change is recorded and the network documentation is updated.

What does it cost and take to replace RD Gateway with Guacamole?

What does it cost to replace RD Gateway with Guacamole in total?

The software license is the smallest line item, because Apache Guacamole is released under the Apache License, Version 2.0 and carries no per-user fee. The recurring costs sit in hosting, staff time, MFA tooling, certificates, support and testing. Hosting covers at least two Guacamole application nodes, guacd, and a database backend such as MariaDB, MySQL, PostgreSQL or SQL Server, plus load balancing if you want redundancy. Staff time covers operating the platform, applying upgrades and reviewing access. Ask any quote to break these components out separately so you can see which ones your own infrastructure already covers.

Do we still need RDS CALs if Guacamole sits in front of our servers?

Yes, in most configurations you still need RDS CALs for users or devices that connect to an RD Session Host, because Guacamole connects to those session hosts over RDP. Guacamole removes the need for the RD Gateway and RD Web Access roles in the browser path, but it does not change the licensing rules that apply to the session hosts themselves. Read the sibling licensing page on Guacamole and RDS CALs before you change the front end, and confirm the current terms with Microsoft or your licensing partner for your exact setup.

How long does a migration from RD Gateway to Guacamole take?

The duration depends mainly on the number of connections to import and the scope of integration. A farm with a small set of connections and an existing Active Directory domain is quicker to move than one with many session collections, custom RemoteApp feeds, separate MFA policies and recording requirements. The main work items are deploying guacd and the web application with a database, importing connections per session collection, integrating directory sign-in, adding MFA, testing printing and drive redirection, and retiring the gateway role. No fixed duration applies to every environment, so ask a provider to tie the timeline to a written count of connections and integrations.

Can our internal team migrate RD Gateway to Guacamole without outside help?

A team with Linux administration, Active Directory and reverse proxy experience can plan and run the migration itself, because the stack is documented in the Guacamole manual and uses standard components. The skills gaps usually sit in TLS certificate management, MFA integration, database backup and hardening of an internet-facing login page. If those areas are thin, or if you need evidence for an audit, a fixed-scope engagement can cover the build and the documentation. Whichever route you choose, budget for testing time and for training the staff who will run the platform after go-live.

Do printing and drive redirection work through Guacamole?

Printing and drive redirection depend on the protocol plugin and the client path, so they must be tested in your environment rather than assumed. Guacamole's RDP support can carry some redirection features, but behavior differs between browsers, operating systems and session host versions, and some native client features may not be available in the browser. Build a test matrix that covers the printers, file types and drives your users rely on, and record what works and what does not. Treat this as part of the scope agreed in writing before work starts.

Which MFA and sign-in options does Guacamole support for the gateway?

Guacamole's documented extensions cover Active Directory and LDAP sign-in, Duo and TOTP multi-factor authentication, CAS, OpenID Connect, SAML and smart card single sign-on. For a gateway that replaces RD Gateway, the usual choice is directory sign-in combined with Duo or TOTP, because CISA advisory AA23-025A and CIS Controls v8.1 Safeguard 6.4 both point to MFA on remote access. Confirm which extension meets your identity provider and MFA policy before you commit to an architecture, and add the cost of any MFA product you buy separately.

What should we ask for in a written quote from a consultant?

Ask for a scope that lists every component: guacd and web application nodes, database, reverse proxy, certificates, MFA integration, directory integration, session recording, and the retirement plan for RD Gateway and RD Web Access. Request the number of connections and session collections in scope, the test cases for printing, drive redirection and multi-monitor use, and the handover documents. Confirm which items are one-time and which recur, such as retainers for upgrades, backups and continuous testing. Ask who performs each task, what evidence is delivered, and how changes after go-live are priced.

Does DeployOpen issue compliance certificates for the new gateway?

No. DeployOpen plans, implements, hardens, documents and tests the platform in your own infrastructure, and it prepares the systems, controls and evidence that an assessment will review. Independent auditors and certification bodies issue audit reports, attestations and certifications. For a gateway tied to NIST SP 800-171 requirement 3.1.12 or CMMC Level 2 practice AC.L2-3.1.12, ask the assessor which evidence they expect, and ask the provider to deliver it as part of the written scope.

How a browser session reaches an RDS session host through Guacamole

The session starts in the user's browser, which connects over HTTPS to a reverse proxy at the edge of the DMZ. The proxy forwards the request to the Guacamole web application, which handles sign-in through LDAP, SAML or MFA before any remote desktop is opened. Guacamole then hands the connection to the guacd daemon, which loads the RDP plugin and connects to the RDS session host inside the internal network. Check that only the proxy crosses the trust boundary and that the session host accepts traffic only from guacd.

Browser traffic crosses the DMZ boundary only at the reverse proxy, and guacd opens the RDP connection inside the internal network.

What native RDP clients and RemoteApp still do better

Guacamole does not give users RemoteApp. RemoteApp publishes individual Windows applications so they appear as local windows on the user's desktop, mixed with local apps in the taskbar and with their own clipboard and window behavior. A Guacamole connection opens a remote desktop session inside a browser tab, so a published application arrives as a full remote screen or as a session you have to navigate. Users who depend on seamless application windows, or on several remote apps side by side with local ones, should be treated as a separate group. Inventory which RemoteApp programs are published from each session collection today, then decide per application whether a full desktop in a browser tab is acceptable.

Native clients also expose device redirection and session options that a browser session may handle differently or not at all. Examples to verify include printer and drive redirection, smart card pass-through, audio playback and microphone input, multiple monitors, and clipboard behavior between local and remote systems. Check each one against the Guacamole manual for the protocol and version you deploy, and run the same test scripts in both a native RDP client and a Guacamole connection. Record the results in a table, because the answer depends on the protocol parameters you configure and on the client browser. Do not assume parity from the documentation alone.

Decide who stays on a native client by mapping each user group to the features they need, not by job title. Users who need seamless apps, special peripherals, or low-latency multimedia are candidates to keep the native RDP client on their managed devices, while users who only need a full desktop or a few server consoles usually suit the browser. Keep the native path under the same MFA and session controls as the gateway, so the exception does not weaken the access model. Review the exception list at each change to the Guacamole or Windows configuration, and document the reason for every user kept on a native client.

How DeployOpen scopes and delivers an RDS front-end replacement

DeployOpen plans, implements, integrates, hardens, documents and supports self-hosted open-source platforms inside your own infrastructure, so an RD Gateway and RD Web Access replacement with Apache Guacamole runs in your cloud account, data center or air-gapped network. Engagements are fixed-scope, with the scope, deliverables and timelines agreed in writing before work starts.

How we scope

  • Inventory every RD Gateway, RD Web Access and RemoteApp path, session collection and the RDP session hosts behind each one.
  • Agree which authentication sources, MFA methods such as Duo or TOTP, and session recording needs the Guacamole deployment must meet.
  • Confirm the written scope, deliverables and timeline for the Guacamole front end, with ongoing support available as a retainer.

How we build

  • Deploy the Guacamole web application and guacd with a MariaDB, MySQL, PostgreSQL or SQL Server backend in your environment.
  • Configure LDAP or Active Directory, SAML or OpenID Connect sign-in, and MFA extensions, then map connection groups to existing access rules.
  • Test RDP sessions for printing, drive redirection, clipboard and session behavior, and run security tests on the gateway and its login path.

How we hand over

  • Document the architecture, configuration, connection inventory, access model and the RDS roles being retired.
  • Deliver a runbook for upgrades, backups of the database and configuration, and the process for adding or removing connections.
  • Record evidence of MFA, access control and session logging settings so your security and compliance teams can review them.

How we support

  • Apply Guacamole upgrades and security fixes in your environment under a written support arrangement.
  • Run continuous testing of the front end against changes to the RDS farm, identity provider or network path.
  • Confirm with your licensing advisor how remaining RDS CALs apply while Guacamole connects to Windows session hosts.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.