> 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/server/web-interface/administration/modules/gateway.md). Agents can also search and read this documentation through its [MCP server](https://docs.devolutions.net/~gitbook/mcp).

# Gateway

Manage the Devolutions Gateway instances, farms and rulesets of Devolutions Server, including key pair, health, diagnostics, sessions and updates.

The ***Devolutions Gateway*** page of ***Administration*** lists the Devolutions Gateway instances that Devolutions Server can connect through to access resources in segmented networks, with their farms and Gateway rulesets. Multiple Devolutions Gateway instances can be added to that list.

To install Devolutions Gateway, see [Install Devolutions Gateway from the Devolutions Server Console](https://docs.devolutions.net/gateway/guides/devolutions-server/install-from-console). To add an installed gateway to this list, see [Register and configure the gateway in Devolutions Server](https://docs.devolutions.net/gateway/guides/devolutions-server/register-and-configure).

{% hint style="info" %}
Devolutions Server must reach the ***Devolutions Gateway URL*** of every gateway: it reads the gateway health, logs, sessions and configuration through it, and pushes the revocation list, configuration changes and update requests through it.
{% endhint %}

### Toolbar

<table><thead><tr><th width="220">BUTTON</th><th>DESCRIPTION</th></tr></thead><tbody><tr><td><strong>Add</strong></td><td>Add a <em><strong>Gateway</strong></em>, a <em><strong>Gateway farm</strong></em> (see <a href="https://docs.devolutions.net/gateway/guides/devolutions-server/farms">Gateway farms in Devolutions Server</a>) or a <em><strong>Gateway Ruleset</strong></em> (see <a href="https://docs.devolutions.net/gateway/guides/devolutions-server/rulesets">Gateway rulesets in Devolutions Server</a>).</td></tr><tr><td><strong>Scan</strong></td><td>Check the health of every gateway in the list. The result is "All Devolutions Gateways are up" or "{0} gateways are down". This button is disabled when the list is empty.</td></tr><tr><td><strong>Refresh</strong></td><td>Reload the list.</td></tr><tr><td><strong>More</strong></td><td>Open the key pair, revocation list and recording tools.</td></tr></tbody></table>

The following tools are available in the ***More*** menu (ellipsis) of the toolbar. The key pair is the Devolutions Server key pair that signs the tokens Devolutions Server gives to users and applications for Devolutions Gateway sessions. Every gateway must have the public key of this key pair as its provisioner public key.

<table><thead><tr><th width="220">TOOL</th><th>DESCRIPTION</th></tr></thead><tbody><tr><td><strong>Download public key</strong></td><td>Download the public key of the Devolutions Server key pair, to configure it as the provisioner public key of a Devolutions Gateway.</td></tr><tr><td><strong>Download private key</strong></td><td>Download the private key of the Devolutions Server key pair. A confirmation is shown first: "The private key is sensitive and should be treated with special care. Please keep it in a secure location and delete unused copies."</td></tr><tr><td><strong>Update key pair</strong></td><td>Replace the current key pair with an existing one in the <em><strong>Edit your Devolutions Server key pair</strong></em> dialog (<em><strong>Upload</strong></em>, <em><strong>Clear</strong></em>, <em><strong>Save</strong></em>).</td></tr><tr><td><strong>Renew key pair</strong></td><td>Generate a new key pair. The confirmation reads "All Devolutions Gateways will have to be reconfigured. Do you want to continue?": after a renewal, every gateway must receive the new public key.</td></tr><tr><td><strong>Publish revocation list to all gateways</strong></td><td>Send the current list of revoked tokens, such as revoked KDC proxy tokens, to every Devolutions Gateway. In Devolutions Server 2027.1 and later, a user who can manage KDC proxy tokens only on some gateways (for example with the <em><strong>Gateway owner</strong></em> role on them) sees <em><strong>Publish revocation list to your gateways</strong></em> instead: the list is sent only to the gateways on which the user can manage KDC proxy tokens, and the confirmation reads "Published revocation list to your gateways."</td></tr><tr><td><strong>Recording server system settings</strong></td><td>Open the <a href="https://docs.devolutions.net/server/web-interface/administration/configuration/system-settings.md#recording-server">Recording server</a> system settings that control Devolutions Gateway recording.</td></tr></tbody></table>

{% hint style="warning" %}
Store a downloaded private key in a secure location and delete unused copies: anyone who holds it can create tokens that every gateway configured with this key pair accepts.
{% endhint %}

### Gateway list

<table><thead><tr><th width="220">COLUMN</th><th>DESCRIPTION</th></tr></thead><tbody><tr><td><strong>Name</strong></td><td>Name of the gateway, farm or Gateway Ruleset, with its health indicator. A dot marks the default gateway. A farm expands to show its members.</td></tr><tr><td><strong>Version</strong></td><td>Version of Devolutions Gateway, with its update status ("{0} outdated", "Updating to {0}", "Update pending", "Failed update").</td></tr><tr><td><strong>Storage</strong></td><td>Disk usage of the recording storage of the gateway.</td></tr><tr><td><strong>URL</strong></td><td>The <em><strong>Devolutions Gateway URL</strong></em>.</td></tr><tr><td><strong>Draining</strong></td><td>For a farm member, whether new sessions are no longer sent to this gateway.</td></tr><tr><td><strong>Active Sessions</strong></td><td>Number of sessions running through the gateway. For a farm, the total of its members. A gateway that does not answer shows "-".</td></tr></tbody></table>

The ***Name filter*** box filters the list by name. The ***Version filter*** list shows the gateways on ***Latest ({version})***, the gateways on an ***Outdated version***, the gateways with a ***Deferred update***, or the gateways with a ***Failed update***. ***Latest*** and ***Outdated version*** are disabled when Devolutions Server cannot get the latest version number.

The health indicator shows the first state that applies:

<table><thead><tr><th width="300">STATE</th><th>MEANING</th></tr></thead><tbody><tr><td>"Unreachable Devolutions Gateway"</td><td>Devolutions Server cannot reach the <em><strong>Devolutions Gateway URL</strong></em>.</td></tr><tr><td>"Configuration is not in sync"</td><td>The ID reported by the gateway is not the ID of this gateway in Devolutions Server. Use <em><strong>Publish Gateway configuration</strong></em> in the row menu.</td></tr><tr><td>"Revocation list is not in sync"</td><td>The gateway does not have the current revocation list. Use <em><strong>Publish revocation list</strong></em> in the row menu.</td></tr><tr><td>"Gateway is configured with HTTP. Secure HTTPS communication should be used."</td><td>The <em><strong>Devolutions Gateway URL</strong></em> starts with <code>http:</code>.</td></tr><tr><td>Up</td><td>The tooltip shows the time of the last health check.</td></tr></tbody></table>

Devolutions Server checks the health of each gateway every 300 seconds by default. The interval is set per gateway in ***Advanced*** – ***Health check interval*** (***Custom***, minimum 15 seconds). When a gateway goes up or down, Devolutions Server writes "Gateway Online" or "Gateway Offline" to its logs. When the recording storage disk of a gateway reaches 90 % used, it logs "{GatewayName} Gateway recording storage disk is {DiskPercentageUsed}% full."

### Gateway actions

The row menu of a gateway offers the following actions. A farm offers ***Sessions***, ***Update version*** and ***Delete***; a Gateway Ruleset offers ***Delete*** only.

<table><thead><tr><th width="220">ACTION</th><th>DESCRIPTION</th></tr></thead><tbody><tr><td><strong>Publish Gateway configuration</strong></td><td>Write the Devolutions Server ID of this gateway into the configuration of the gateway. Shown only when the configuration is not in sync.</td></tr><tr><td><strong>Ping</strong></td><td>Check the health of the gateway: "Devolutions Gateway '{0}' is alive and healthy." or "Could not ping your Devolutions Gateway "{0}"."</td></tr><tr><td><strong>Logs</strong></td><td>Read the log files of the gateway: <em><strong>Log file</strong></em> (<em><strong>Latest</strong></em> first), <em><strong>Search</strong></em>, <em><strong>Copy to clipboard</strong></em>, <em><strong>Download</strong></em>.</td></tr><tr><td><strong>Active Sessions</strong></td><td>List the sessions running through the gateway (<em><strong>Gateway</strong></em>, <em><strong>Launched by</strong></em>, <em><strong>Destination</strong></em>, <em><strong>Protocol</strong></em>, <em><strong>Start time</strong></em>) and end one with <em><strong>Terminate session</strong></em>.</td></tr><tr><td><strong>Diagnostic</strong></td><td>Open <em><strong>Devolutions Gateway Diagnostic</strong></em>: <em><strong>Current version</strong></em>, <em><strong>Gateway health</strong></em>, <em><strong>Public key configuration</strong></em>, <em><strong>Clock difference</strong></em>, <em><strong>TCP listening hostname configuration</strong></em>, <em><strong>TCP listening port configuration</strong></em>, <em><strong>Revocation list in sync</strong></em>, <em><strong>Secure HTTPS communication enabled</strong></em>, <em><strong>Agent installed</strong></em> and <em><strong>Agent version</strong></em> (Devolutions Agent on the gateway machine). A clock difference of more than 30 seconds between Devolutions Server and the gateway is reported as a desynchronization.</td></tr><tr><td><strong>KDC proxy</strong></td><td>Manage the KDC proxy tokens of the gateway: add a token (<em><strong>KDC server URL</strong></em> starting with <code>tcp://</code> or <code>udp://</code>, <em><strong>Kerberos realm</strong></em>, <em><strong>Expires after</strong></em> one, three or six months or one year), copy the KDC proxy URL, download a configuration file (<code>.reg</code> or <code>.ps1</code>), revoke or delete a token. See <a href="https://docs.devolutions.net/gateway/guides/connect/kdc-proxy">Use the KDC proxy</a>.</td></tr><tr><td><strong>Agent tunnel</strong></td><td>List the Devolutions Agent instances connected to the gateway through the agent tunnel (<em><strong>Name</strong></em>, <em><strong>Status</strong></em>, <em><strong>Subnets</strong></em>, <em><strong>Domains</strong></em>, <em><strong>Last seen</strong></em>), <em><strong>Generate enrollment string</strong></em> for a new agent, or <em><strong>Delete</strong></em> an agent. Available only when the agent tunnel is enabled on the gateway; otherwise the message is "Agent Tunnel is not enabled on this Gateway. In gateway.json, set AgentTunnel.Enabled = true and restart the Gateway." See <a href="https://docs.devolutions.net/gateway/guides/connect/agent-tunnel">Agent tunnel</a>.</td></tr><tr><td><strong>Publish revocation list</strong></td><td>Send the current list of revoked tokens to this gateway.</td></tr><tr><td><strong>Update version</strong></td><td>Update Devolutions Gateway on this machine. Disabled when the gateway cannot be updated remotely (Devolutions Gateway older than 2025.1.0, or no Devolutions Agent on the gateway machine).</td></tr><tr><td><strong>Delete</strong></td><td>Remove the gateway from Devolutions Server. The Gateway Rulesets that use this gateway are deleted with it, after the confirmation "{0} virtual gateways will be deleted. Do you want to continue?". Deleting a farm offers <em><strong>Also, delete all Devolutions Gateways in the farm.</strong></em></td></tr></tbody></table>

### Update Devolutions Gateway

Devolutions Server can update Devolutions Gateway on its machine, one gateway at a time with ***Update version*** or several at once: enable ***Bulk update*** with the toggle, select the gateways, then click ***Update***.

A gateway can be updated from Devolutions Server only when:

* Devolutions Gateway is version 2025.1.0 or later. Otherwise the tooltip reads "Devolutions Gateway must be on version 2025.1.0 or later to update through DVLS."
* [Devolutions Agent](https://docs.devolutions.net/agent/for-administrators/deploy/windows) 2025.1.0 or later is installed on the gateway machine with its ***Devolutions Gateway Updater*** feature, which is selected by default on a first installation. Otherwise the tooltip reads "Devolutions Agent must be installed to update through DVLS." The Windows installer files are named `DevolutionsAgent-<version>-x64.msi` and `DevolutionsAgent-<version>-arm64.msi`. See [Keep Devolutions Gateway up to date](https://docs.devolutions.net/agent/guides/gateway-updates).

The update dialog offers ***Version to install*** and two ***Update options***: ***Defer until no active sessions*** and ***Defer based on time*** (***Choose a date and time***). "The update will be triggered by whichever condition is met first." Click ***Update now*** or ***Defer update***. When sessions are running, Devolutions Server asks "Some instances have active sessions. Do you want to proceed with the update?" An update in progress or deferred can be stopped with ***Cancel update***.

Devolutions Server considers the update successful when the gateway reports the requested version within 5 minutes. Otherwise the update fails with "The server is not responding; please try again later." The request can also be refused with "Gateway is already at the requested version", "Gateway update is already running", "Gateway installed version doesn’t support remote updates" or "Devolutions Agent is not installed". Each request, start, success, failure and cancellation is written to the Devolutions Server logs under ***Gateway centralized update***.

### Gateway settings

Click a gateway in ***Administration*** – ***Devolutions Gateway*** to edit it. The gateway dialog has the following sections.

<table><thead><tr><th width="220">GENERAL</th><th>DESCRIPTION</th></tr></thead><tbody><tr><td><strong>Name</strong></td><td>Name of the gateway. Required, up to 250 characters.</td></tr><tr><td><strong>Description</strong></td><td>Description of the gateway, up to 250 characters.</td></tr><tr><td><strong>Set as default</strong></td><td>Use this gateway by default. Unavailable when the gateway belongs to a farm or when <em><strong>Force Gateway rulesets</strong></em> is checked.</td></tr><tr><td><strong>Force Gateway rulesets</strong></td><td>Use this gateway only through its Gateway rulesets. Unavailable when the gateway belongs to a farm or is the default gateway.</td></tr><tr><td><strong>Devolutions Gateway URL</strong></td><td>URL of the gateway listener. Required. <em><strong>Test connection</strong></em> checks that Devolutions Server can reach it.</td></tr><tr><td><strong>TCP Hostname</strong></td><td>Host name that clients use for TCP connections through the gateway.</td></tr><tr><td><strong>TCP Listening Port</strong></td><td>TCP port of the gateway, from 1025 to 65553. <em><strong>Auto-Detect</strong></em> reads the TCP host name and port from the gateway configuration: "Gateway TCP information was successfully loaded from configuration."</td></tr><tr><td><strong>Gateway farm</strong></td><td>Farm the gateway belongs to, or <em><strong>None</strong></em>.</td></tr></tbody></table>

<table><thead><tr><th width="220">ADVANCED</th><th>DESCRIPTION</th></tr></thead><tbody><tr><td><strong>Generated token duration (Minutes)</strong></td><td>Validity of the tokens Devolutions Server generates for this gateway, from 1 to 120 minutes.</td></tr><tr><td><strong>Health check interval</strong></td><td><em><strong>Default</strong></em> (300 seconds) or <em><strong>Custom</strong></em> (15 seconds minimum).</td></tr><tr><td><strong>Certificate thumbprint</strong></td><td>Thumbprint of the gateway certificate, read-only. <em><strong>Clear certificate thumbprint</strong></em> removes it.</td></tr><tr><td><strong>Force using IP address for RDP connections</strong></td><td>Connect RDP sessions to the IP address of the host instead of its name.</td></tr></tbody></table>

<table><thead><tr><th width="220">KDC PROXY</th><th>DESCRIPTION</th></tr></thead><tbody><tr><td><strong>KDC server URL</strong></td><td>URL of a KDC server, starting with <code>tcp://</code> or <code>udp://</code>. Required.</td></tr><tr><td><strong>Kerberos realm</strong></td><td>Kerberos realm served by this KDC server. Required. Only one KDC server per realm: "A KDC server already exists for this Kerberos realm."</td></tr><tr><td><strong>Set as default</strong></td><td>Use this KDC server by default.</td></tr></tbody></table>

<table><thead><tr><th width="220">SECURITY</th><th>DESCRIPTION</th></tr></thead><tbody><tr><td><strong>Permissions – Can use</strong></td><td>Users, user groups and application identities allowed to connect through the gateway. Not shown in Devolutions Server 2027.1 and later, where role assignments replace it.</td></tr><tr><td><strong>Vaults – Can use</strong></td><td>Vaults in which the gateway can be used: <em><strong>All</strong></em>, <em><strong>Custom</strong></em> (select the vaults with <em><strong>Batch grant access</strong></em>) or <em><strong>Never</strong></em>. This restriction applies to every user, administrators included.</td></tr><tr><td><strong>Allow user vault</strong></td><td>Allow the gateway in user vaults.</td></tr><tr><td><strong>Allow dynamic connections</strong></td><td>"Allow features like Quick Connect to dynamically create connections through Devolutions Gateway."</td></tr><tr><td><strong>Allow RDP reconnection</strong></td><td>"Allows certain RDP clients to seamlessly reconnect to the target server during brief network interruptions. For optimal security, it is recommended to leave this disabled; however, the associated risks are mitigated."</td></tr><tr><td><strong>RDP token reuse window (Minutes)</strong></td><td>How long a token can be reused for an RDP reconnection, from 1 to 15 minutes. Available when <em><strong>Allow RDP reconnection</strong></em> is checked.</td></tr></tbody></table>

When the gateway belongs to a farm, its ***Security*** section only shows "This Gateway is currently in a farm. Its security can be defined in the farm." The ***Gateway information*** section shows the ***ID*** of the gateway in Devolutions Server, with a copy button.

A vault lists the gateways it can use in the ***Gateways*** section of its settings (***Administration*** – ***Vaults*** – edit a vault). A gateway whose ***Vaults*** setting is ***All*** is always checked there and cannot be unchecked.

### Network scan through a gateway

Remote Desktop Manager and the Devolutions Server web interface can scan a network through a Devolutions Gateway. Before the scan, they request a network scan token for that gateway from Devolutions Server. Devolutions Server issues the token only to a user who can use the gateway (or its farm), and logs each request as a [log event](https://docs.devolutions.net/server/knowledge-base/troubleshooting-articles/devolutions-server-errors.md#devolutions-gateway):

* `GATEWAY_NETWORK_SCAN_TOKEN_ISSUED` (106008) when the token is issued.
* `GATEWAY_NETWORK_SCAN_TOKEN_ISSUANCE_DENIED` (106007) when the user is not allowed to use the gateway.

### Choose the agent of an entry

In Devolutions Server 2027.1 and later, an entry that connects through a Devolutions Gateway can choose which Devolutions Agent of the [agent tunnel](https://docs.devolutions.net/gateway/guides/connect/agent-tunnel) carries its sessions. The ***Agent*** field appears under the gateway in the Devolutions Gateway settings of the entry (***Network access***; ***VPN/tunnel/gateway*** before Devolutions Server 2027.1), and lists the agents enrolled on that gateway with their status, subnets, domains and last connection on hover.

<table><thead><tr><th width="220">CHOICE</th><th>DESCRIPTION</th></tr></thead><tbody><tr><td><strong>Automatic</strong></td><td>"The gateway picks the agent whose advertised subnets or domains match the destination."</td></tr><tr><td>An agent</td><td>"Sessions always go through this agent. If it is offline or cannot reach the destination, the session fails instead of taking another route."</td></tr></tbody></table>

An agent exists only on the gateway it enrolled with: changing the gateway of the entry clears the chosen agent. The field shows these messages:

<table><thead><tr><th width="340">MESSAGE</th><th>MEANING</th></tr></thead><tbody><tr><td>"Choosing an agent is not supported with the default gateway. Select a specific gateway to choose an agent."</td><td>The entry uses the default gateway.</td></tr><tr><td>"Choosing an agent is not supported when the gateway is a farm. Select a gateway that is not part of a farm."</td><td>The gateway is a farm or a member of a farm: an agent is connected to one farm member only.</td></tr><tr><td>"Agent Tunnel is not enabled on this Gateway. In gateway.json, set AgentTunnel.Enabled = true and restart the Gateway."</td><td>The agent tunnel is not enabled on the gateway.</td></tr><tr><td>"This Gateway version does not support Agent Tunnel. Upgrade the Gateway to a version that ships the Agent Tunnel API."</td><td>The gateway is too old for the agent tunnel.</td></tr><tr><td>"Devolutions Server could not list the agents for this Gateway."</td><td>The list of agents could not be read from the gateway.</td></tr><tr><td>"This agent is offline. Sessions fail until it reconnects."</td><td>The chosen agent is not connected.</td></tr><tr><td>"This agent is no longer enrolled on this gateway. Sessions fail until you choose another agent."</td><td>The saved agent is no longer listed (shown as "Unknown agent '{0}'").</td></tr><tr><td>"This agent only exists on this gateway. Sessions through an alternate gateway fail."</td><td>The entry also has alternate gateways.</td></tr></tbody></table>

### Control who can use a gateway

In Devolutions Server, the ***Permissions – Can use*** list in the ***Security*** section of a gateway, farm or Gateway ruleset sets which users, user groups and application identities can connect through it, and its ***Vaults*** setting sets in which vaults it can be used.

In Devolutions Server 2027.1 and later, access to a gateway is granted with role assignments instead of the ***Can use*** list. Edit a gateway, a farm, or a virtual gateway, then open the ***Role assignments*** tab to assign roles on it. When a gateway is created, this tab is pre-filled with the [default role assignments](https://docs.devolutions.net/server/web-interface/administration/configuration/system-settings.md#default-role-assignments) for gateways.

<table data-header-hidden data-search="false"><thead><tr><th width="220"></th><th></th></tr></thead><tbody><tr><td><strong>ROLE</strong></td><td><strong>DESCRIPTION</strong></td></tr><tr><td><strong>Gateway user</strong></td><td>Devolutions Server 2027.1 and later. Connect through an assigned gateway. Does not grant any other permission on the gateway.</td></tr><tr><td><strong>Gateway viewer</strong></td><td>Devolutions Server 2027.1 and later. View an assigned gateway, including its agents, KDC proxy tokens, sessions, logs and assignments. Does not allow any modification, nor connecting through the gateway.</td></tr><tr><td><strong>Gateway owner</strong></td><td>Devolutions Server 2027.1 and later. Manage every aspect of an assigned gateway, including its agents, KDC proxy tokens, sessions, updates, allowed vaults and assignments. Does not allow creating new gateways.</td></tr><tr><td><strong>Gateway administrator</strong></td><td>Assigned on the workspace. Manage Devolutions Gateway instances, review who can use them and which permissions apply, and terminate active gateway sessions. In Devolutions Server 2027.1 and later, among the gateway roles, only this one can add gateways and manage the gateway settings of the workspace.</td></tr></tbody></table>

In Devolutions Server 2027.1 and later, the ***Security*** tab of a gateway still defines the vaults in which it can be used. This restriction applies to every user, administrators included.

In Devolutions Server 2027.1 and later, for a farm, the ***Gateway user*** role assignments and allowed vaults of the farm apply to all its members, and the ***Gateway user*** role assignments and allowed vaults of a gateway have no effect while it belongs to a farm. The ***Gateway owner*** and ***Gateway viewer*** roles assigned on a farm do not apply to its members. See [Roles](https://docs.devolutions.net/server/concepts/intermediate-concepts/roles.md) for more information on role assignments.

{% hint style="info" %}
When Devolutions Server is upgraded to 2027.1 or later, the users and user groups that could use a gateway receive the ***Gateway user*** role on it. A gateway that everyone could use gives the ***Gateway user*** role to the ***Everyone*** user group. The default role assignments for gateways also give the ***Gateway user*** role to the ***Everyone*** user group, so new gateways remain available to all users until this default is changed.
{% endhint %}


---

# 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/server/web-interface/administration/modules/gateway.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.
