> For the complete documentation index, see [llms.txt](https://docs.devolutions.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.devolutions.net/gateway/guides/connect/remote-desktop-manager.md). Agents can also search and read this documentation through its [MCP server](https://docs.devolutions.net/~gitbook/mcp).

# Use a gateway in Remote Desktop Manager

Set Remote Desktop Manager entries to connect through Devolutions Gateway: VPN/tunnel/gateway settings, supported entry types, alternate gateways.

In Remote Desktop Manager, an entry goes through Devolutions Gateway when its ***VPN/tunnel/gateway*** settings use the ***Devolutions Gateway*** provider. At each connection, Remote Desktop Manager asks Devolutions Server or Devolutions Cloud for a short-lived authorization for this entry and this gateway, then connects to the gateway instead of the host. The user never needs network access to the host itself.

## Before you start

* The entry is in a Devolutions Server workspace where Devolutions Gateway is enabled, or in a Devolutions Cloud workspace. Local, Microsoft SQL Server and other workspaces do not support Devolutions Gateway: entries that use it show "Devolutions Gateway is not supported in this workspace." in their properties and "This workspace does not support Devolutions Gateway, or Devolutions Gateway is not enabled." when they open.
* At least one Devolutions Gateway is registered in the workspace. See [Register and configure the gateway in Devolutions Server](https://docs.devolutions.net/gateway/guides/devolutions-server/register-and-configure.md) or [Register and configure the gateway in Devolutions Cloud](https://docs.devolutions.net/gateway/guides/devolutions-cloud/register-and-configure.md).
* The user is allowed to use that gateway, and the gateway is allowed in the vault of the entry.
* The user's machine can reach the Devolutions Gateway URL (HTTP listener, 7171 by default) and its TCP listener (8181 by default). See [Ports and firewall](https://docs.devolutions.net/gateway/reference/ports-and-firewall.md).

## Set an entry to use Devolutions Gateway

1. In Remote Desktop Manager, open the ***Properties*** of the entry.
2. Open the ***VPN/tunnel/gateway*** section.
3. In ***General***, set ***Connect*** to ***Always connect***.
4. Set ***VPN provider*** to ***Devolutions Gateway***.
5. In ***Settings (Devolutions Gateway)***, pick the gateway. When a gateway is marked as default, the first item of the list is ***Default ({gateway name})***: the entry then follows whichever gateway is the default.
6. Click ***Check health*** to test the gateway.
7. Optional: add ***Alternate gateways*** with the ***Edit*** button.
8. Save the entry.
9. Open the entry. Once the session is connected, check that it is logged in the workspace: in the Devolutions Server web interface, under ***Reports*** – ***Activity logs*** (called ***Workspace logs*** in older versions); in the Devolutions Cloud web interface, under ***Reports*** – ***Devolutions Gateway sessions*** (***Gateway Sessions*** in older documentation).

{% hint style="info" %}
Remote Desktop Manager does not pause after opening a Devolutions Gateway connection: the VPN wait of the ***Advanced*** tab (***After execution, wait***, default taken from ***VPN default pause***, 5 seconds, in the Remote Desktop Manager VPN options) is skipped for the ***Devolutions Gateway*** provider, on every platform. Older documentation said to set the ***Delay*** value of the ***Advanced*** tab to 0 to remove a five-second delay when opening a connection; current versions do not need it.
{% endhint %}

{% hint style="info" %}
To apply the same gateway to many entries, set it on a folder (or on the root of the vault) and leave the entries on ***Inherited***. See [Inheritance in Remote Desktop Manager](https://docs.devolutions.net/rdm/knowledge-base/knowledge-base-articles/inheritance-in-remote-desktop-manager).
{% endhint %}

The gateway list shows Devolutions Gateway farms and the gateways that are not part of a farm, as returned by Devolutions Server or Devolutions Cloud for the vault of the entry. Gateways that are set to ***Force Gateway rulesets*** are not listed: pick one of their Gateway Rulesets instead. When the selected gateway is not assigned to the vault, Remote Desktop Manager warns "The selected Gateway isn’t assigned to the vault. Some users might not have access to it."

### Connect options

With the ***Devolutions Gateway*** provider, ***Connect*** offers these choices. The default is ***Always connect***.

<table><thead><tr><th width="320">CONNECT</th><th>DESCRIPTION</th></tr></thead><tbody><tr><td><strong>Always connect</strong></td><td>Every session of the entry goes through Devolutions Gateway.</td></tr><tr><td><strong>Connect if unable to ping/port scan</strong></td><td>Remote Desktop Manager first tries to reach the host directly and uses Devolutions Gateway only when the host does not answer.</td></tr><tr><td><strong>Connect if HTTP status code isn’t successful</strong></td><td>Uses Devolutions Gateway when a direct HTTP request to the host does not return a success code. The timeout and accepted status are set with the advanced settings button.</td></tr><tr><td><strong>Ask for confirmation to connect</strong></td><td>Asks the user at each connection whether to go through Devolutions Gateway.</td></tr><tr><td><strong>Inherited</strong></td><td>Uses the setting of the parent folder. Not available on the root.</td></tr><tr><td><strong>Not enabled</strong></td><td>The entry does not use Devolutions Gateway.</td></tr></tbody></table>

***Connect manually*** and the options based on a network adapter or a custom ping are not available with Devolutions Gateway.

## Supported entry types

<table><thead><tr><th width="320">ENTRY TYPE</th><th>DESKTOP</th><th>IOS, ANDROID</th></tr></thead><tbody><tr><td><strong>RDP (Microsoft Remote Desktop)</strong></td><td>Yes</td><td>Yes</td></tr><tr><td><strong>VNC</strong></td><td>Yes</td><td>Yes</td></tr><tr><td><strong>Apple Remote Desktop</strong></td><td>Yes</td><td>Yes</td></tr><tr><td><strong>HP iLO</strong></td><td>Yes</td><td>Yes</td></tr><tr><td><strong>Host</strong></td><td>Yes</td><td>Yes</td></tr><tr><td><strong>SSH Shell</strong>, <strong>SSH Tunnel</strong>, <strong>Port Forward</strong>, <strong>SFTP</strong>, <strong>SCP</strong></td><td>Yes</td><td>Yes</td></tr><tr><td><strong>Telnet</strong></td><td>Yes</td><td>No</td></tr><tr><td><strong>Raw</strong></td><td>Yes</td><td>No</td></tr><tr><td><strong>PowerShell Remote Console</strong></td><td>Yes</td><td>No</td></tr><tr><td><strong>Active Directory Console</strong></td><td>Yes</td><td>No</td></tr><tr><td><strong>Hyper-V console</strong></td><td>Yes</td><td>No</td></tr><tr><td><strong>Website</strong></td><td>Yes</td><td>No</td></tr><tr><td><strong>Devolutions Gateway tunnel</strong></td><td>Yes</td><td>No</td></tr><tr><td><strong>Folders and the root</strong> (for inheritance)</td><td>Yes</td><td>No</td></tr></tbody></table>

The DESKTOP column covers Remote Desktop Manager for Windows, macOS and Linux, for the entry types available on each operating system.

Other entry types, such as TN3270 and IBM 5250, cannot use Devolutions Gateway. If one is forced through it, the session fails with "Unable to connect with Devolutions Gateway:" followed by "This entry type is not supported."

On iOS and Android, the entry editor has a ***Gateway*** page with the gateway and the alternate gateways.

### How each entry type goes through the gateway

* **RDP, SSH, SFTP, SCP, Port Forward, VNC, ARD, PowerShell over SSH:** Remote Desktop Manager connects to the TCP listener of Devolutions Gateway and sends the authorization as a preconnection blob. For RDP, any Microsoft RD Gateway settings of the entry are ignored for this session.
* **Website, PowerShell over WinRM, Telnet, HP iLO and Devolutions Gateway tunnel:** Remote Desktop Manager starts a local proxy on `127.0.0.1` (a random free port) that carries the traffic to Devolutions Gateway over its HTTP(S) listener. Remote Desktop Manager ships the tool that runs this proxy (jetsocat); it stops when Remote Desktop Manager closes.
* **Telnet:** the traffic is encrypted between the user's machine and Devolutions Gateway, but not between Devolutions Gateway and the host.
* **Website on Windows:** supported with Microsoft Edge and Google Chrome only ("Website entries via Devolutions Gateway are currently only supported when using Microsoft Edge or Google Chrome web browsers."). To open the website in an external browser, see [Use Devolutions Gateway with an external browser](https://docs.devolutions.net/gateway/guides/connect/external-browser.md). On macOS and Linux, Remote Desktop Manager sets the proxy of the website entry.
* **RDP with Kerberos:** when the gateway has a KDC proxy configured in Devolutions Server or Devolutions Cloud, Remote Desktop Manager uses it for the session. See [Use the KDC proxy](https://docs.devolutions.net/gateway/guides/connect/kdc-proxy.md).

## Alternate gateways

***Alternate gateways*** lists other gateways to use when the main gateway cannot be used.

* With ***Always prompt with list*** off, Remote Desktop Manager tries the main gateway, then each alternate gateway in order. When none works: "Unable to connect to any specified Devolutions Gateway."
* With ***Always prompt with list*** on, the user picks the gateway from a list (main and alternate gateways, dialog ***Connect via gateway parameters***) at each connection. This option is available only when the entry has alternate gateways, and only with Devolutions Server.

## Quick Connect and other dynamic connections

Quick Connect, and other features that create a connection on the fly, can go through a gateway only when the gateway allows it: the ***Allow dynamic connections*** option ("Allow features like Quick Connect to dynamically create connections through Devolutions Gateway."). Otherwise the connection fails with "Dynamic connections are not allowed on this gateway." or "Dynamic connections are not allowed on this gateway: "{name}"". On macOS and mobile, Quick Connect adds "Allow them in the 'Security' section of the Devolutions Gateway configureation, found under 'Administration'."

## Website entries: other hosts and ports

By default, a website entry that goes through Devolutions Gateway reaches only the host and port of its URL. Two options of the website entry (***Advanced*** settings) widen this:

<table><thead><tr><th width="350">OPTION</th><th>EFFECT</th></tr></thead><tbody><tr><td><strong>Allow any additional hosts with Devolutions Gateway</strong></td><td>Pages of the website can load content from any other host through the gateway, on ports 80 (HTTP) and 443 (HTTPS). Ignored when the entry uses a Gateway Ruleset that has rules, in Devolutions Server.</td></tr><tr><td><strong>Allow any port with Devolutions Gateway</strong></td><td>The session can reach any port of the allowed hosts; with both options, any host on any port. Applied by Devolutions Server; Devolutions Cloud applies only the additional hosts option.</td></tr></tbody></table>

## Who can change the gateway of an entry

The entry permission ***Edit VPN/Tunnel/Gateway configuration*** controls who can change the ***VPN/tunnel/gateway*** settings of entries, including the gateway.

## Other features that use the gateway

* **Privileged access providers and PowerShell settings**: the Active Directory, local SSH and Windows local providers, and the PAM PowerShell settings of entries, have ***Use Devolutions Gateway*** and a ***Devolutions Gateway*** picker, to reach the domain controller or hosts through a gateway. Messages: "The domain controller could not be detected through Devolutions Gateway. Specify it explicitly in the provider settings." and "The Devolutions Gateway certificate is not trusted. Trust it, then try again."
* **Network scan**: an import from a network scan can run from a gateway of a Devolutions Server workspace. See [Network scan](https://docs.devolutions.net/gateway/guides/network-scan.md).
* **Variables**: `$GATEWAY_LISTENERS$` "Returns the listener bindings in JSON format when the entry uses a Devolutions Gateway tunnel VPN".

## Certificates behind the gateway

When an entry skips certificate validation or trusts a certificate, through Devolutions Gateway this applies to the gateway's certificate only. Devolutions Gateway validates the certificate of the host itself, with the trusted root certificates of the machine it runs on. If that check fails, the session ends with "The Devolutions Gateway could not establish a TLS connection to '{host}'. The certificate of that host must be trusted by the machine the gateway runs on. See the gateway logs for details."

## Session recording

Entries that go through Devolutions Gateway can be recorded on the gateway. See [Record sessions](https://docs.devolutions.net/gateway/guides/recording.md).

## Manage gateways from Remote Desktop Manager

Users who can manage gateways open ***Administration*** – ***Privileged access*** – ***Devolutions Gateway*** to add, edit, test and update gateways, see their logs and active sessions, and manage KDC proxy tokens and agents. On Linux, only Gateway Rulesets can be added or edited from Remote Desktop Manager. In a local or other workspace without gateway support, the same menu shows "Secure remote access" with ***Use it in the cloud*** and ***Learn more about Devolutions Gateway***. See [Set up with Devolutions Server](https://docs.devolutions.net/gateway/guides/devolutions-server.md) and [Set up with Devolutions Cloud](https://docs.devolutions.net/gateway/guides/devolutions-cloud.md).

## Messages

<table><thead><tr><th width="400">MESSAGE</th><th>MEANING</th></tr></thead><tbody><tr><td>"Connecting to {host} via Devolutions Gateway {gateway}"</td><td>The session is being opened through the gateway.</td></tr><tr><td>"Connected with Devolutions Gateway"</td><td>The session goes through the gateway.</td></tr><tr><td>"Unable to launch the session via Devolutions Gateway"</td><td>The authorization or the connection to the gateway failed. The next message gives the reason.</td></tr><tr><td>"Unable to connect with Devolutions Gateway:" followed by a reason</td><td>Devolutions Server or Devolutions Cloud refused or could not create the authorization. For example: "The token’s gateway URL is invalid.", or "Devolutions Server could not generate a token for the host '{host}'."</td></tr><tr><td>"Unable to connect to any specified Devolutions Gateway."</td><td>The main gateway and every alternate gateway failed.</td></tr><tr><td>"You do not have permission to use this gateway."</td><td>The user is not allowed to use the gateway.</td></tr><tr><td>"Access denied: the configured Devolutions Gateway can’t be used in the current vault."</td><td>The gateway is not allowed in the vault of the entry.</td></tr><tr><td>"Access denied for "{host}" on Devolutions Gateway "{gateway}". Devolutions Gateway ruleset is enforced."</td><td>The gateway is set to <em><strong>Force Gateway rulesets</strong></em>: pick one of its Gateway Rulesets.</td></tr><tr><td>"Network access denied for "{host}" ({IP}) on Devolutions Gateway ruleset "{ruleset}""</td><td>A deny rule of the Gateway Ruleset matches the host. See <a href="https://docs.devolutions.net/gateway/guides/devolutions-server/rulesets.md">Gateway rulesets in Devolutions Server</a>.</td></tr><tr><td>"Host "{host}" ({IP}) does not match any allowed rules on Devolutions Gateway ruleset "{ruleset}"."</td><td>The Gateway Ruleset has allow rules and none matches the host.</td></tr><tr><td>"The entry '{entry}' does not allow connecting to '{host}' through Devolutions Gateway."</td><td>The host is not one the entry is allowed to reach.</td></tr><tr><td>"The Devolutions Gateway could not connect to '{host}'. See the gateway logs for details."</td><td>Devolutions Gateway cannot reach the host: check name resolution, routing and firewalls from the gateway machine.</td></tr><tr><td>"No gateway available"</td><td>Devolutions Cloud returned no usable gateway for the session.</td></tr><tr><td>"The configured Devolutions Gateway could not be used. Check that the gateway exists and is correctly configured."</td><td>A PowerShell script or Active Directory operation set to go through a gateway cannot use it: check the gateway selected in its settings.</td></tr><tr><td>"The connection must use a Devolutions Gateway VPN. Do you want to continue?"</td><td>A Devolutions Gateway tunnel entry is saved without the Devolutions Gateway provider.</td></tr></tbody></table>

## Next

* [Open sessions in a web browser](https://docs.devolutions.net/gateway/guides/connect/web-client.md)
* [Devolutions Gateway tunnel entry](https://docs.devolutions.net/gateway/guides/connect/tunnel-entry.md)
* [VPN/tunnel/gateway entry settings in Remote Desktop Manager](https://docs.devolutions.net/rdm/knowledge-base/knowledge-base-articles/entry-settings/common-settings/vpn-tunnel-gateway)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.devolutions.net/gateway/guides/connect/remote-desktop-manager.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
