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

# Register and configure the gateway in Devolutions Server

Register Devolutions Gateway in Devolutions Server, set its security, check its health, manage the key pair and update it with Devolutions Agent.

Devolutions Server can use a Devolutions Gateway once the gateway is registered on the ***Devolutions Gateway*** page of the Devolutions Server web interface: ***Administration*** – ***Devolutions Gateway***. A gateway installed side-by-side from the Devolutions Server Console is registered automatically; every other gateway is added by hand. The same page manages gateways, farms and rulesets, checks their health, and updates gateways.

The same management is available in Remote Desktop Manager connected to Devolutions Server: ***Administration*** – ***Privileged access*** – ***Devolutions Gateway***. See the Remote Desktop Manager section at the end of this page.

## Permissions

<table><thead><tr><th width="320">PERMISSION</th><th>WHAT IT ALLOWS</th></tr></thead><tbody><tr><td><em><strong>Gateways</strong></em> – <em><strong>Manage</strong></em></td><td>Opens the <em><strong>Devolutions Gateway</strong></em> page: add, edit, delete, update gateways, farms and rulesets, view logs, sessions and diagnostics.</td></tr><tr><td><em><strong>Gateways</strong></em> – <em><strong>Terminate sessions</strong></em></td><td>Terminate an active session from <em><strong>Active Sessions</strong></em>.</td></tr><tr><td><em><strong>Gateways</strong></em> – <em><strong>View permissions</strong></em></td><td>Open the <em><strong>Devolutions Gateway permissions</strong></em> reports.</td></tr><tr><td><em><strong>Gateways</strong></em> – <em><strong>View user access</strong></em></td><td>Open the <em><strong>Devolutions Gateway user access</strong></em> report.</td></tr><tr><td>Vault permission <em><strong>Manage gateways</strong></em></td><td>Choose which gateways a vault can use.</td></tr><tr><td><em><strong>Session recording</strong></em> – <em><strong>View</strong></em>, <em><strong>Delete</strong></em>, <em><strong>Download</strong></em>, <em><strong>Preserve</strong></em></td><td>Work with the recordings stored on gateways. Vault owners have them on their vaults.</td></tr></tbody></table>

The built-in administrative role ***Gateway administrator*** ("Manage Devolutions Gateway instances, review who can use them and which permissions apply, and terminate active gateway sessions.") includes the ***Gateways*** permissions. Who may *use*, view or manage a gateway is set with the role assignments of the gateway, and the vaults in which it can be used are set in its ***Security*** section, both described below.

## Add a gateway

Before you start, the gateway must be installed, running and configured with the Devolutions Server public key (`provisioner.pem`), and Devolutions Server must reach its URL.

1. In the Devolutions Server web interface, go to ***Administration*** – ***Devolutions Gateway***.
2. Click ***Add*** – ***Gateway***. On an empty page, click ***Add a gateway***.
3. In ***General***, enter a ***Name*** and the ***Devolutions Gateway URL***, for example `https://gateway.example.com:7171`.
4. Click ***Test connection***.
5. Click ***Auto-Detect*** to read ***TCP Hostname*** and ***TCP Listening Port*** from the gateway: "Gateway TCP information was successfully loaded from configuration."
6. In ***Role assignments***, assign the ***Gateway user*** role to the users and user groups that can use the gateway. In ***Security***, choose the vaults in which the gateway can be used.
7. Save.
8. If the gateway shows "Configuration is not in sync", open its menu and click ***Publish Gateway configuration***. Devolutions Server writes its gateway ID into the gateway configuration.
9. Open the gateway menu and click ***Publish revocation list***, so the gateway knows the revoked sessions.

If Devolutions Server shows a certificate confirmation because the gateway certificate is not trusted by the Devolutions Server machine, check the certificate before you accept it. Devolutions Server then keeps the certificate thumbprint in ***Advanced*** – ***Certificate thumbprint***.

### General

<table><thead><tr><th width="250">SETTINGS</th><th>DESCRIPTION</th></tr></thead><tbody><tr><td><strong>Name</strong></td><td>Name shown in gateway lists in Devolutions Server, Remote Desktop Manager and entries. Required ("The name is required"), up to 250 characters.</td></tr><tr><td><strong>Description</strong></td><td>Optional, up to 250 characters.</td></tr><tr><td><strong>Set as default</strong></td><td>Entries set to the default gateway use this one. Only one gateway or farm is the default. Unavailable when the gateway is in a farm or when <em><strong>Force Gateway rulesets</strong></em> is on.</td></tr><tr><td><strong>Force Gateway rulesets</strong></td><td>The gateway can only be used through Gateway rulesets, never directly. It disappears from the gateway pickers of entries. Unavailable when the gateway is in a farm or is the default. See <a href="https://docs.devolutions.net/gateway/guides/devolutions-server/rulesets.md">Gateway rulesets in Devolutions Server</a>.</td></tr><tr><td><strong>Devolutions Gateway URL</strong></td><td>The HTTP(S) address of the gateway (external URL), with its port. Required ("The API listener is required", "Invalid url"). Must be unique: "Another Devolutions Gateway with the URL "{0}" already exists." Use HTTPS: an <code>http:</code> URL shows a warning on the gateway. <em><strong>Test connection</strong></em> checks the gateway from Devolutions Server.</td></tr><tr><td><strong>TCP Hostname</strong></td><td>Host name clients use for native sessions (RDP, SSH…). It must resolve from the computers running Remote Desktop Manager.</td></tr><tr><td><strong>TCP Listening Port</strong></td><td>Port of the gateway TCP listener (default 8181), 1025 or higher. <em><strong>Auto-Detect</strong></em> fills <em><strong>TCP Hostname</strong></em> and <em><strong>TCP Listening Port</strong></em> from the gateway configuration.</td></tr><tr><td><strong>Gateway farm</strong></td><td><em><strong>None</strong></em>, or the farm the gateway belongs to. See <a href="https://docs.devolutions.net/gateway/guides/devolutions-server/farms.md">Gateway farms in Devolutions Server</a>.</td></tr></tbody></table>

### Advanced

<table><thead><tr><th width="250">SETTINGS</th><th>DESCRIPTION</th></tr></thead><tbody><tr><td><strong>Generated token duration (Minutes)</strong></td><td>How long a session authorization issued for this gateway stays valid to start a session. 1 to 120 minutes, default 5. Outside that range: "Invalid token duration. The token duration should be between 1 and 120 minutes."</td></tr><tr><td><strong>Health check interval</strong></td><td><em><strong>Default</strong></em>: every 300 seconds. <em><strong>Custom</strong></em>: a number of seconds, 15 or more.</td></tr><tr><td><strong>Certificate thumbprint</strong></td><td>Read only. The gateway certificate Devolutions Server accepted after you confirmed it. <em><strong>Clear certificate thumbprint</strong></em> removes it; Devolutions Server asks again at the next connection.</td></tr><tr><td><strong>Force using IP address for RDP connections</strong></td><td>Sends RDP sessions to the target's IP address instead of its host name. Leave it cleared for Kerberos authentication through the KDC proxy, which needs the host name.</td></tr></tbody></table>

### KDC proxy

The ***KDC proxy*** section lists the Kerberos KDC servers the gateway can proxy, with ***KDC Server URL*** (starting with `tcp://` or `udp://`), ***Kerberos realm*** and ***Set as default***. One KDC server per realm: "A KDC server already exists for this Kerberos realm." The first KDC server added is the default. See [Use the KDC proxy](https://docs.devolutions.net/gateway/guides/connect/kdc-proxy.md).

### Role assignments

Access to a gateway, a farm or a Gateway Ruleset is granted with role assignments. Edit it, 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#default-role-assignments) for gateways.

<table><thead><tr><th width="250">ROLE</th><th>DESCRIPTION</th></tr></thead><tbody><tr><td><strong>Gateway user</strong></td><td>Connect through an assigned gateway. Does not grant any other permission on the gateway.</td></tr><tr><td><strong>Gateway viewer</strong></td><td>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>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. Among the gateway roles, only this one can add gateways and manage the gateway settings of the workspace.</td></tr></tbody></table>

For a farm, the ***Gateway user*** role assignments of the farm apply to all its members, and those 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) in the Devolutions Server documentation.

{% hint style="info" %}
When Devolutions Server is upgraded, 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 %}

### Security

Hidden when the gateway is in a farm: "This Gateway is currently in a farm. Its security can be defined in the farm."

<table><thead><tr><th width="250">SETTINGS</th><th>DESCRIPTION</th></tr></thead><tbody><tr><td><strong>Permissions</strong> – <strong>Can use</strong></td><td>Users, user groups and application identities allowed to open sessions through the gateway.</td></tr><tr><td><strong>Vaults</strong></td><td><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>: the vaults whose entries can use the gateway. This also applies to administrators.</td></tr><tr><td><strong>Allow user vault</strong></td><td>Entries in users' own vaults can use the gateway.</td></tr><tr><td><strong>Allow dynamic connections</strong></td><td>"Allow features like Quick Connect to dynamically create connections through Devolutions Gateway." When cleared, such connections show "Dynamic connections are not allowed on this gateway: "{0}"".</td></tr><tr><td><strong>Allow RDP reconnection</strong></td><td>Lets RDP clients reconnect to the target after a brief network interruption by reusing the session authorization.</td></tr><tr><td><strong>RDP token reuse window (Minutes)</strong></td><td>1 to 15 minutes. Available only with <em><strong>Allow RDP reconnection</strong></em>. "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></tbody></table>

### Gateway information

***ID***: the gateway ID in Devolutions Server, with a copy button. It must match the `Id` of the gateway configuration file; ***Publish Gateway configuration*** writes it there.

## The gateway list

The toolbar has ***Add*** (***Gateway***, ***Gateway farm***, ***Gateway Ruleset***), ***Scan*** (checks the health of every gateway: "All Devolutions Gateways are up" or "{0} gateways are down"), ***Refresh*** and ***More***. Filter with ***Name filter*** and ***Version filter*** (***Latest***, ***Outdated version***, ***Deferred update***, ***Failed update***).

<table><thead><tr><th width="200">COLUMN</th><th>WHAT IT SHOWS</th></tr></thead><tbody><tr><td><strong>Name</strong></td><td>Gateway, farm or ruleset name, with its health indicator. A dot marks the default. Farms expand to show their members.</td></tr><tr><td><strong>Version</strong></td><td>Installed Devolutions Gateway version, update state and update button.</td></tr><tr><td><strong>Storage</strong></td><td>Space used on the gateway's recording storage.</td></tr><tr><td><strong>URL</strong></td><td>The Devolutions Gateway URL.</td></tr><tr><td><strong>Draining</strong></td><td>For farm members: whether new sessions avoid this gateway.</td></tr><tr><td><strong>Active Sessions</strong></td><td>Sessions running through the gateway; for a farm, the total of its members. "-" when the gateway is down.</td></tr></tbody></table>

<table><thead><tr><th width="250">GATEWAY MENU</th><th>WHAT IT DOES</th></tr></thead><tbody><tr><td><strong>Publish Gateway configuration</strong></td><td>Writes the Devolutions Server gateway ID into the gateway configuration. Shown only when the configuration is not in sync.</td></tr><tr><td><strong>Ping</strong></td><td>Checks the gateway now: "Devolutions Gateway '{0}' is alive and healthy." or "Could not ping your Devolutions Gateway "{0}"."</td></tr><tr><td><strong>Logs</strong></td><td>Reads the gateway log files: <em><strong>Log file</strong></em> picker (<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>Running sessions with <em><strong>Gateway</strong></em>, <em><strong>Launched by</strong></em>, <em><strong>Destination</strong></em>, <em><strong>Protocol</strong></em> and <em><strong>Start time</strong></em>. <em><strong>Terminate session</strong></em> closes one ("Do you want to terminate this Devolutions Gateway session?").</td></tr><tr><td><strong>Diagnostic</strong></td><td>Opens <em><strong>Devolutions Gateway Diagnostic</strong></em>, described below.</td></tr><tr><td><strong>KDC proxy</strong></td><td>Manages KDC proxy tokens for computers that use the gateway as Kerberos proxy. See <a href="https://docs.devolutions.net/gateway/guides/connect/kdc-proxy.md">Use the KDC proxy</a>.</td></tr><tr><td><strong>Agent tunnel</strong></td><td>Lists the Devolutions Agents connected to the gateway and generates enrollment strings. Requires agent tunnel enabled on the gateway. See <a href="https://docs.devolutions.net/gateway/guides/connect/agent-tunnel.md">Agent tunnel</a>.</td></tr><tr><td><strong>Publish revocation list</strong></td><td>Sends the list of revoked session authorizations to this gateway.</td></tr><tr><td><strong>Update version</strong></td><td>Updates the gateway through Devolutions Agent, described below. Unavailable when the gateway cannot be updated.</td></tr><tr><td><strong>Delete</strong></td><td>"Delete '{0}'?" If Gateway rulesets use the gateway: "{0} virtual gateways will be deleted. Do you want to continue?" The rulesets are deleted with it.</td></tr></tbody></table>

A farm's menu has ***Sessions***, ***Update version*** (updates the members that can be updated) and ***Delete***. A Gateway Ruleset's menu has ***Delete*** only.

## Health

Devolutions Server checks each gateway at its ***Health check interval*** (300 seconds by default). The indicator next to the name shows the first problem found:

<table><thead><tr><th width="330">INDICATOR</th><th>WHAT TO DO</th></tr></thead><tbody><tr><td>"Unreachable Devolutions Gateway"</td><td>Devolutions Server cannot reach the gateway URL. Check that the service runs, the URL and port, the firewall and the certificate. See <a href="https://docs.devolutions.net/gateway/help/troubleshooting/general.md">Devolutions Gateway troubleshooting</a>.</td></tr><tr><td>"Configuration is not in sync"</td><td>The gateway reports another ID than Devolutions Server. Click <em><strong>Publish Gateway configuration</strong></em>.</td></tr><tr><td>"Revocation list is not in sync"</td><td>Click <em><strong>Publish revocation list</strong></em>.</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>. Configure an HTTPS listener with a certificate. See <a href="https://docs.devolutions.net/gateway/guides/certificates.md">Certificates and TLS</a>.</td></tr><tr><td>Up</td><td>The tooltip shows the time of the last check.</td></tr></tbody></table>

Farms show "All Devolutions Gateways in the farm are up.", "Some Devolutions Gateway in the farm is down.", "All Devolutions Gateways in the farm are down.", "There is no usable Devolutions Gateway in the farm." or "There is no Devolutions Gateway in the farm."

When a gateway goes up or down, Devolutions Server logs "Gateway Online: …" or "Gateway Offline: …", and users subscribed to the "Devolutions Gateway down" notification are notified. When the recording storage of a gateway reaches 90% used, Devolutions Server logs "{GatewayName} Gateway recording storage disk is {DiskPercentageUsed}% full." The Devolutions Server ***System dashboard*** also lists each gateway with its status, version and last health check. The Devolutions Server security dashboard flags gateways without TLS: "Devolutions Gateway should be configured to use a secure communication channel (TLS)".

## Diagnostic

***Devolutions Gateway Diagnostic*** shows, with ***Refresh***:

<table><thead><tr><th width="330">ROW</th><th>WHAT IT CHECKS</th></tr></thead><tbody><tr><td><strong>Current version</strong></td><td>Installed Devolutions Gateway version.</td></tr><tr><td><strong>Gateway health</strong></td><td>Whether the gateway answers.</td></tr><tr><td><strong>Public key configuration</strong></td><td>Whether the gateway accepts Devolutions Server authorizations. Failure: "Your configured public key appears to be invalid." or "Your configured public key seems to be invalid, or the gap between your Devolutions Server and Devolutions Gateway clock is too big."</td></tr><tr><td><strong>Clock difference</strong></td><td>Seconds between the Devolutions Server and gateway clocks. Above 30 seconds: "We detected a clock desynchronization between your Devolutions Server and Devolutions Gateway. Your Devolutions Gateway might be slow or unresponsive." Synchronize both machines with a time server.</td></tr><tr><td><strong>TCP listening hostname configuration</strong>, <strong>TCP listening port configuration</strong></td><td>Whether the gateway settings match the gateway configuration: "Your configured TCP port does not match the one configured on your Devolutions Gateway."</td></tr><tr><td><strong>Revocation list in sync</strong></td><td>Whether the gateway has the current revocation list.</td></tr><tr><td><strong>Secure HTTPS communication enabled</strong></td><td>Whether the gateway URL uses HTTPS.</td></tr><tr><td><strong>Agent installed</strong>, <strong>Agent version</strong></td><td>Whether Devolutions Agent runs on the gateway machine, required to update the gateway from Devolutions Server.</td></tr></tbody></table>

## Keys and revocation list

The ***More*** menu of the ***Devolutions Gateway*** page holds the Devolutions Server key pair that signs session authorizations. Every gateway registered in Devolutions Server must hold its public key.

<table><thead><tr><th width="300">COMMAND</th><th>WHAT IT DOES</th></tr></thead><tbody><tr><td><strong>Download public key</strong></td><td>Saves <code>gateway_public_key.pem</code>. Install it on each gateway as <code>provisioner.pem</code> (the installer, the Devolutions Server Console or the configuration file).</td></tr><tr><td><strong>Download private key</strong></td><td>Saves the Devolutions Server private key (<code>gateway_private_key.key</code>), after the warning "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>Opens <em><strong>Edit your Devolutions Server key pair</strong></em>: replace the public key and private key with your own (<em><strong>Upload</strong></em> or paste, <em><strong>Clear</strong></em>, <em><strong>Save</strong></em>).</td></tr><tr><td><strong>Renew key pair</strong></td><td>Generates a new key pair, after the warning "All Devolutions Gateways will have to be reconfigured. Do you want to continue?"</td></tr><tr><td><strong>Publish revocation list to all gateways</strong></td><td>Sends the revocation list to every gateway: "Published revocation list to all gateways" or "Failed to publish revocation list to {0} Gateways".</td></tr><tr><td><strong>Recording server system settings</strong></td><td>Opens the session recording settings of Devolutions Server. Requires the permission to edit system settings. See <a href="https://docs.devolutions.net/gateway/guides/recording.md">Record sessions</a>.</td></tr></tbody></table>

{% hint style="danger" %}
Anyone with the Devolutions Server private key can create session authorizations that your gateways accept. Download it only when you need it, keep it in a protected location and delete the copies you no longer need. After ***Renew key pair*** or ***Update key pair***, install the new public key on every gateway, otherwise their sessions fail and the diagnostic reports an invalid public key.
{% endhint %}

## Update gateways through Devolutions Agent

Devolutions Gateway cannot update itself. Devolutions Server asks the gateway to update, and Devolutions Agent, installed on the same machine, downloads and installs the new version.

Requirements, checked by Devolutions Server:

* Devolutions Agent 2025.1.0 or later is installed and running on the gateway machine, with its Devolutions Gateway updater: "Devolutions Agent must be installed to update through DVLS." See [Keep Devolutions Gateway up to date](https://docs.devolutions.net/agent/guides/gateway-updates) in the Devolutions Agent documentation.
* The gateway runs Devolutions Gateway 2025.1.0 or later: "Devolutions Gateway must be on version {0} or later to update through DVLS."

Devolutions Agent 2026.3.1 or later updates Devolutions Gateway only when the gateway service runs under Network Service, the gateway's virtual account or a verified managed service account: it does not update a gateway whose service account signs in with a password.

To update:

1. On the ***Devolutions Gateway*** page, click the update button in the ***Version*** column of a gateway, or ***Update version*** in its menu. For several gateways, turn on ***Bulk update***, select the gateways and click ***Update***. For a farm, ***Update version*** updates its members.
2. In ***Version to install***, keep the latest version or choose another one.
3. Choose ***Update now***, or set ***Update options*** and click ***Defer update***:

   * ***Defer until no active sessions***: the update starts when the gateway has no running session.
   * ***Defer based on time***: the update starts at the date and time you choose.

   "The update will be triggered by whichever condition is met first." If sessions are running, Devolutions Server asks "Some instances have active sessions. Do you want to proceed with the update?"

Devolutions Server checks pending updates every minute. An update is successful when the gateway reports the requested version within 5 minutes; otherwise it fails with "The server is not responding; please try again later." To stop a pending update, click ***Cancel update***. The ***Version*** column shows "Update pending", "Updating to {0}", "Failed update", "{0} outdated" or "Latest is: {0}".

<table><thead><tr><th width="400">REASON A GATEWAY IS NOT UPDATED</th><th>WHAT TO DO</th></tr></thead><tbody><tr><td>"Gateway is already at the requested version"</td><td>Nothing to do.</td></tr><tr><td>"Gateway update is already running"</td><td>Wait for the running update.</td></tr><tr><td>"Gateway installed version doesn't support remote updates"</td><td>Update the gateway once by hand to 2025.1.0 or later.</td></tr><tr><td>"Devolutions Agent is not installed"</td><td>Install Devolutions Agent with the Devolutions Gateway updater on the gateway machine.</td></tr></tbody></table>

Each step is written in the activity logs (log type "Gateway centralized update"): "User {UserName} requested an update for Devolutions Gateway {GatewayName} to version {Version}.", "Devolutions Gateway {GatewayName} update to version {Version} has started.", "… succeeded.", "… failed. Reason: {Reason}" and the cancellations. The latest version shown comes from Devolutions, so Devolutions Server needs internet access to show it; otherwise the filter shows "Latest (Unavailable)". Other ways to update: [Update Devolutions Gateway](https://docs.devolutions.net/gateway/for-administrators/install/update.md).

## Sessions, traffic and reports

* The ***Privileged session monitoring*** page of the Devolutions Server web interface (permission ***Privileged session*** – ***View***) lists sessions with ***Gateway name***, ***Host***, ***Vault***, ***Gateway farm***, ***Protocol***, ***User***, ***Active*** and ***Start date***, with ***Download recording***, ***Delete recording*** and ***View traffic events***.
* Traffic events show, per host, ***Total***, ***First event start***, ***Last traffic end***, ***Connect failures total***, ***Abnormal terminations total***, ***Bytes Tx total*** and ***Bytes Rx total***. Devolutions Server collects them every 5 minutes from gateways 2025.3.3 or later.
* Reports: ***Devolutions Gateway permissions*** (who can use each gateway, and in which vaults) and ***Devolutions Gateway user access*** (the gateways a user, user group or application can use).
* Activity logs record gateway changes ("Gateway Created/Updated/Deleted"), viewed logs and sessions, each session authorization issued ("A Devolutions Gateway token has been generated from the gateway '{0}' towards the host '{1}' by '{2}'.") and opened, closed, failed or terminated sessions.

## Manage gateways in Remote Desktop Manager

In Remote Desktop Manager connected to Devolutions Server, ***Administration*** – ***Privileged access*** – ***Devolutions Gateway*** opens the ***Gateways*** view, for users with the ***Gateways*** – ***Manage*** permission.

* Toolbar: ***Add*** (***Gateway***, ***Gateway farm***, ***Gateway Ruleset***), ***Edit***, ***Delete***, ***Ping***, ***Publish revocation list***, ***Publish Gateway configuration***, ***Details***, ***Update***, ***Download public key*** (saves `gateway_public_key.pem`) and ***Refresh***.
* Columns: ***Name***, ***Version***, ***Storage***, ***Description***, ***Url*** and ***Is default***, with the same health indicators as the web interface.
* The gateway editor has the same sections as the web interface (***General***, ***Advanced***, ***KDC proxy***, ***Security***, ***Gateway information***). When a gateway's certificate is not trusted, Remote Desktop Manager asks whether to trust it and keeps its thumbprint.
* The details pane of a gateway has the tabs ***Logs***, ***Sessions***, ***Diagnostics***, ***KDC proxy tokens***, ***Update*** and ***Agent tunnel***.
* Deleting a farm asks "The Devolutions Gateway farm '{0}' will be deleted. Do you also want to delete all Devolutions Gateways in the farm?" (***Yes*** deletes the members too, ***No*** keeps them as standalone gateways).
* On Linux, Remote Desktop Manager cannot add gateways or farms; it edits Gateway rulesets only.

## Register with PowerShell

The Devolutions.PowerShell module manages Devolutions Server gateways: `New-DSGateway` (`-Name`, `-Description`, `-DevolutionsGatewayUrl`, `-TCPListeningPort`, `-TokenDuration` 1 to 120, `-HealthCheckInterval`, `-KdcProxySettings`, `-Security`, `-ForceIpAddressForRdpConnections`, `-IsDefault`), `Get-DSGateway`, `Update-DSGateway`, `Remove-DSGateway`, `Test-DSGateway`, `Get-DSGatewayLogs`, `Get-DSGatewaySession` and `Publish-DSGatewayRevocationList`; security with `New-DSGatewaySecurity`. See the [Devolutions PowerShell documentation](https://docs.devolutions.net/powershell).

## Messages

<table><thead><tr><th width="420">MESSAGE</th><th>WHAT TO DO</th></tr></thead><tbody><tr><td>"Devolutions Gateway is unreachable. Please make sure it is up and running."</td><td>Start the gateway service, then check the URL, port, firewall and certificate from the Devolutions Server machine.</td></tr><tr><td>"DVLS could not authenticate against the Gateway. Verify the provisioner private key in this Gateway entry matches the provisioner.pem configured on the Gateway, and that the Gateway entry's stored Gateway ID matches the running Gateway's Id field."</td><td>Install the Devolutions Server public key on the gateway as <code>provisioner.pem</code>, restart the gateway service, then click <em><strong>Publish Gateway configuration</strong></em>.</td></tr><tr><td>"Expected ID {0} for this Gateway, but health check returned {1}. This suggests a misconfiguration of the Gateway and might cause permission issues. Please contact the admin of the workspace for further investigation."</td><td>Click <em><strong>Publish Gateway configuration</strong></em>.</td></tr><tr><td>"Devolutions Server could not resolve your Devolutions Gateway hostname: {0}"</td><td>Fix the DNS name in <em><strong>Devolutions Gateway URL</strong></em>, or add it to the DNS used by the Devolutions Server machine.</td></tr><tr><td>"Devolutions Gateway http request failed. Requested url {0} returned status code {1}"</td><td>Check the gateway logs and the URL (reverse proxy path, port).</td></tr><tr><td>"Gateway ID {0} could not be found."</td><td>The gateway was deleted or the entry points to another workspace. Choose another gateway in the entry.</td></tr><tr><td>"Devolutions Gateway key pair is invalid. It should probably be renewed."</td><td>Use <em><strong>Renew key pair</strong></em>, then install the new public key on every gateway.</td></tr><tr><td>"Cannot get Devolutions Gateway clock information on versions prior to 2022.1.1."</td><td>Update the gateway.</td></tr></tbody></table>

More messages and their fixes: [Error messages](https://docs.devolutions.net/gateway/help/troubleshooting/error-messages.md).


---

# 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/devolutions-server/register-and-configure.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.
