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

# Deployment options

Choose how and where to deploy Devolutions Gateway with Devolutions Server or Devolutions Cloud: install methods, network, ports and sizing.

Devolutions Gateway is installed close to the servers it must reach, and registered in the Devolutions Server or Devolutions Cloud workspace that authorizes its sessions. This page helps you choose an installation method, place the gateway in your network, open the right ports and decide how many gateways you need.

## Pick the right installation method

<table><thead><tr><th width="220">CHOOSE</th><th>WHAT HAPPENS</th><th width="260">USE IT WHEN</th></tr></thead><tbody><tr><td><strong>Side-by-side installation</strong> (Devolutions Server Console)</td><td>Installs Devolutions Gateway on the Devolutions Server machine, with an HTTP listener and no certificate of its own. The Devolutions Server website in IIS forwards its <code>/jet/</code> path to the gateway, so clients use the HTTPS address of Devolutions Server. The gateway is created in Devolutions Server automatically.</td><td>Devolutions Server runs in IIS and can reach the target hosts. The simplest setup.</td></tr><tr><td><strong>Standard installation</strong> (Devolutions Server Console)</td><td>Installs Devolutions Gateway on the computer where the Devolutions Server Console runs, with its own HTTP or HTTPS listener, TCP listener, certificate and the Devolutions Server public key. You then add the gateway in the Devolutions Server web interface.</td><td>You manage the gateway from the Devolutions Server Console and want its own address and certificate.</td></tr><tr><td><strong>Windows installer</strong> (<code>.msi</code>)</td><td>Installs Devolutions Gateway as a Windows service on any 64-bit Windows server, interactively or silently. Works with Devolutions Server and Devolutions Cloud.</td><td>The gateway runs on its own Windows server, near the targets, or you use Devolutions Cloud.</td></tr><tr><td><strong>Linux packages</strong> (<code>.deb</code>, <code>.rpm</code>)</td><td>Installs Devolutions Gateway as a systemd service on x64 or ARM64 Linux. You edit the configuration file or use the DevolutionsGateway PowerShell module.</td><td>Your servers run Linux.</td></tr><tr><td><strong>Docker</strong></td><td>Runs the <code>devolutions/devolutions-gateway</code> image (linux/amd64, linux/arm64), configured with environment variables.</td><td>You run containers, including Azure Web App.</td></tr><tr><td><strong>Standalone web application</strong></td><td>Devolutions Gateway serves its own web client, with local users, without Devolutions Server or Devolutions Cloud.</td><td>A lab or a small setup that needs browser access to a few hosts, without a workspace.</td></tr></tbody></table>

How to install with each method: [Install Devolutions Gateway from the Devolutions Server Console](https://docs.devolutions.net/gateway/guides/devolutions-server/install-from-console.md), [Install on Windows](https://docs.devolutions.net/gateway/for-administrators/install/windows.md), [Install on Linux](https://docs.devolutions.net/gateway/for-administrators/install/linux.md), [Run in Docker](https://docs.devolutions.net/gateway/for-administrators/install/docker.md) and [Use the standalone web application](https://docs.devolutions.net/gateway/guides/standalone-web-app.md). Devolutions Gateway has no macOS package.

## Place the gateway in your network

Install each gateway as close as possible to the resources it accesses, where it can reach the target hosts, and where your users and your workspace can reach it.

* **Internal network**: Devolutions Gateway runs on the same internal network as Devolutions Server, its database and the target hosts. One gateway, often installed side-by-side, is enough.

<figure><img src="https://2170341024-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWLjlrB2w2lAZ5WqmArCN%2Fuploads%2Fgit-blob-4f740b6d9ae493d0936de9a215040da609d43ef0%2FMARKETING_Gateway-internal-network-revised.png?alt=media" alt="Devolutions Gateway installed on the same internal network as Devolutions Server, its database and the target hosts"><figcaption><p>Internal network</p></figcaption></figure>

* **Remote network**: Devolutions Gateway runs on a separate network, close to the target hosts, while Devolutions Server or Devolutions Cloud stays elsewhere. Install one gateway per network segment or customer site; managed service providers often deploy one gateway per customer site.

<figure><img src="https://2170341024-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWLjlrB2w2lAZ5WqmArCN%2Fuploads%2Fgit-blob-d4693499eaaafd5ab3403cec8c105e022009cfe8%2FMARKETING_Gateway-remote-network-revised.png?alt=media" alt="Devolutions Gateway installed on a separate network close to the target hosts, while Devolutions Server and its database stay on the internal network"><figcaption><p>Remote network</p></figcaption></figure>

In both cases, the same connections and default ports apply:

* The user's browser connects to Devolutions Server over HTTPS, port **443**.
* Devolutions Server connects to Devolutions Gateway over port **7171** (HTTP(S) listener).
* Remote Desktop Manager connects directly to Devolutions Gateway over ports **7171** (HTTP(S) listener) and **8181** (TCP listener). This connection does not go through Devolutions Server.
* Devolutions Gateway connects to the target host on the default port of the protocol, for example 3389 for RDP and 22 for SSH.

The traffic between Remote Desktop Manager or Devolutions Server and Devolutions Gateway is encrypted. Between Devolutions Gateway and the target host, the session uses the protocol of the entry (RDP, SSH…), so secure those protocols too. Remote Desktop Manager does not need Devolutions Server in the path: it presents a short-lived session authorization (token) signed by the workspace, and Devolutions Gateway checks the signature with the workspace public key (`provisioner.pem`) before it relays anything. Protect that key file and replace it on every gateway if the workspace key pair changes (see [How Devolutions Gateway works](https://docs.devolutions.net/gateway/guides/understand/how-it-works.md)). Keep ports 7171 and 8181 open in every firewall between the users, the workspace and the gateway, review those rules regularly, and install the gateway as close as possible to the resources it reaches. All the ports, including the Devolutions Cloud and agent tunnel ones, are in the table below and in [Ports and firewall](https://docs.devolutions.net/gateway/reference/ports-and-firewall.md).

* **Network without inbound access**: when you cannot open inbound ports toward a remote network, install Devolutions Agent there instead of a gateway. The agent connects out to an existing gateway, which then reaches that network through the agent. See [Agent tunnel](https://docs.devolutions.net/gateway/guides/connect/agent-tunnel.md).

Devolutions Gateway can also be published through a reverse proxy or tunnel service: see [Reverse proxies](https://docs.devolutions.net/gateway/guides/reverse-proxies.md).

## Who connects to whom

All connections go **to** the gateway, except the connections of the gateway to the target hosts and, with Devolutions Cloud, its session notifications to Devolutions Cloud. Devolutions Gateway does not need to open connections to Devolutions Server.

<table><thead><tr><th width="230">FROM</th><th width="200">TO</th><th width="150">DEFAULT PORT</th><th>WHY</th></tr></thead><tbody><tr><td>Remote Desktop Manager, Devolutions Launcher</td><td>Gateway TCP listener</td><td>TCP 8181</td><td>Native RDP, SSH, VNC, Apple Remote Desktop, SFTP, SCP and similar sessions.</td></tr><tr><td>Remote Desktop Manager, Devolutions Launcher</td><td>Gateway HTTP(S) listener</td><td>TCP 7171</td><td>Health checks, websites, Telnet, PowerShell over WinRM, HP iLO, Devolutions Gateway tunnel entries, recordings sent by the client, network scan.</td></tr><tr><td>A user's browser (web client) and Devolutions Password Manager</td><td>Gateway HTTP(S) listener</td><td>TCP 7171</td><td>Sessions opened in a browser tab or in an in-app session, over WebSocket. Use HTTPS.</td></tr><tr><td>Devolutions Server</td><td>Gateway HTTP(S) listener</td><td>TCP 7171</td><td>Health checks, logs, active sessions, configuration, revocation list, recordings, traffic events and update requests.</td></tr><tr><td>Devolutions Cloud: the administrator's browser</td><td>Gateway HTTP(S) listener</td><td>TCP 7171</td><td>Health, <em><strong>Test connection</strong></em>, logs and sessions shown on the <em><strong>Devolutions Gateway</strong></em> page.</td></tr><tr><td>Devolutions Cloud: PAM Service</td><td>Gateway HTTP(S) listener</td><td>TCP 7171</td><td><em><strong>Test connection</strong></em>, update requests, agent tunnel and recording management, host resolution for Gateway rulesets, and the choice of a farm member.</td></tr><tr><td>Devolutions Gateway</td><td>Devolutions Cloud</td><td>TCP 443</td><td>Session notifications, sent over HTTPS. Devolutions Cloud sets this link when it publishes the gateway configuration.</td></tr><tr><td>Devolutions Gateway</td><td>Target hosts</td><td>The protocol's port</td><td>3389 for RDP, 22 for SSH, SFTP and SCP, 5900 for VNC and Apple Remote Desktop, 23 for Telnet, 5985 and 5986 for PowerShell over WinRM, 80 and 443 for websites, 389 and 636 for LDAP.</td></tr><tr><td>Devolutions Agent (agent tunnel)</td><td>Gateway agent tunnel listener</td><td>UDP 4433</td><td>Outbound QUIC tunnel from an agent in a remote network. Only when agent tunnel is enabled on the gateway.</td></tr><tr><td>Devolutions Agent on the gateway machine</td><td><code>devolutions.net</code>, <code>cdn.devolutions.net</code></td><td>TCP 443</td><td>Download Devolutions Gateway updates requested from Devolutions Server or Devolutions Cloud.</td></tr></tbody></table>

With a side-by-side installation, clients reach the HTTP(S) part of the gateway through the Devolutions Server address (usually port 443), and native sessions through TCP port 8181 on the Devolutions Server machine.

The traffic between the clients, the workspace and the gateway is encrypted when the gateway uses HTTPS; the traffic between the gateway and the target host uses the target's own protocol (RDP, SSH…), so secure those protocols too. The complete list, with firewall rules created by the installer, is in [Ports and firewall](https://docs.devolutions.net/gateway/reference/ports-and-firewall.md).

## How many gateways

<table><thead><tr><th width="260">CONCURRENT SESSIONS</th><th width="120">vCPUs</th><th width="120">RAM</th><th>NOTE</th></tr></thead><tbody><tr><td>Minimal: 1 to 5</td><td>2</td><td>4 GB</td><td></td></tr><tr><td>Small: 5 to 15</td><td>4</td><td>8 GB</td><td></td></tr><tr><td>Medium: 15 to 75</td><td>8</td><td>16 GB</td><td></td></tr><tr><td>Large: more than 75</td><td>–</td><td>–</td><td>Deploy several Devolutions Gateway instances, for example in a farm.</td></tr></tbody></table>

A Gigabit Ethernet controller is recommended. Session recording adds disk space and processing on the gateway; see [Recording storage and path](https://docs.devolutions.net/gateway/guides/recording/storage.md).

* **More sessions or no single point of failure**: group gateways in a farm. Sessions are spread by relative weight, unavailable members are skipped, and you can drain a member before maintenance. See [Gateway farms in Devolutions Server](https://docs.devolutions.net/gateway/guides/devolutions-server/farms.md) or [Gateway farms in Devolutions Cloud](https://docs.devolutions.net/gateway/guides/devolutions-cloud/farms.md).
* **Separate networks**: install one gateway per network that users must reach.
* **Different rules on the same network**: use Gateway rulesets instead of more gateways. See [Gateway rulesets in Devolutions Server](https://docs.devolutions.net/gateway/guides/devolutions-server/rulesets.md) or [Gateway rulesets in Devolutions Cloud](https://docs.devolutions.net/gateway/guides/devolutions-cloud/rulesets.md).
* **A backup path for one entry**: in Remote Desktop Manager, an entry can list ***Alternate gateways***, tried in order when the main gateway fails. See [Use a gateway in Remote Desktop Manager](https://docs.devolutions.net/gateway/guides/connect/remote-desktop-manager.md).

Operating systems, prerequisites and certificate requirements are in [System requirements](https://docs.devolutions.net/gateway/reference/system-requirements.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/understand/deployment-options.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.
