> 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/rdm/knowledge-base/how-to-articles/configure-a-vpn-for-multiple-sessions.md).

# Configure a VPN for multiple sessions

Remote Desktop Manager automates opening a VPN when launching a remote session. This configuration is well suited to situations where you need one VPN for a group of servers at a remote location. This procedure sets the VPN configurations on the folder and the entries inherit the settings.

{% embed url="<https://youtu.be/xaC_7hYE33M>" %}

{% hint style="warning" %}
Before following the steps of this guide, create a VPN entry and remote session entries inside a folder entry. If your VPN does not appear in the ***Add new entry*** window, head to ***Tools*** – ***Extensions manager*** – ***VPN/Tunnel/Gateway***, and activate your VPN from the add-on list.
{% endhint %}

### Configure the VPN settings on the parent folder entry

1. Right-click the folder entry and open its ***Folder properties***, then under the ***Connection*** section, click on ***VPN/SSH/Gateway***.

   ![](https://cdnweb.devolutions.net/docs/RDMW4462_2026_1.png)
2. In the ***Connect*** drop-down list, select how the VPN opens when you launch a remote session. We recommend choosing ***Connect if unable to ping/port scan*** on the folder. We will have to set each session entry to ***Inherited*** later.

   | Option                                           | Description                                                                                                                                                                                                                                       |
   | ------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
   | **Not enabled**                                  | The VPN does not open when the session is open.                                                                                                                                                                                                   |
   | **Always connect**                               | The VPN always opens when the session is open.                                                                                                                                                                                                    |
   | **Connect manually**                             | The VPN requires users to manually open the VPN before launching the session.                                                                                                                                                                     |
   | **Connect if unable to ping/port scan**          | Remote Desktop Manager automatically tests if the host responds, if not the VPN opens.                                                                                                                                                            |
   | **Inherited**                                    | The VPN inherits the settings from the parent folder.                                                                                                                                                                                             |
   | **Ask for confirmation to connect**              | The VPN prompts for confirmation before opening.                                                                                                                                                                                                  |
   | **Connect if network adapter not found**         | Remote Desktop Manager tests if the network adapter is installed and active, if not the VPN opens.                                                                                                                                                |
   | **Prompt if unable to ping/scan**                | Remote Desktop Manager tests if the host responds, if not the VPN prompts for confirmation before opening.                                                                                                                                        |
   | **Connect if HTTP status code isn't successful** | Remote Desktop Manager sends an HTTP signal to the host, and opens the VPN if the host returns a status other than 200 (by default). It is also possible to set a custom status by clicking on the ellipsis button next to the connection option. |
3. In the ***Type*** drop-down list, click on ***Session link***.
4. In the ***Close*** drop-down list, select how the VPN closes at the end of a remote session.

   | Option                 | Description                                                           |
   | ---------------------- | --------------------------------------------------------------------- |
   | **On session close**   | The VPN closes automatically when the session is closed.              |
   | **Manually later**     | The VPN requires users to manually close the VPN entry when finished. |
   | **Confirm disconnect** | The VPN prompts to close the VPN when the session is closed.          |
5. In the ***VPN group*** field, click the plus sign to add a new ***VPN group***, then enter a name for it. This will ensure that the VPN only turns off when the last session is closed. See this [YouTube video](https://youtu.be/5jKREtc63ks) for a demonstration.
6. Optionally, define a credential method and enter credentials in the ***Credentials (VPN/Tunnel/Gateway)*** field. This can come in handy for team environments.
7. Click the ***Settings (Session link)*** tab.
8. In the ***Session*** drop-down menu, select the VPN entry you created by clicking ***Linked (vault)*** in the drop-down menu. You can also select ***Find by name (user vault)*** to search VPN created by users in their user vault.

   ![](https://cdnweb.devolutions.net/docs/RDMW4463_2026_1.png)
9. Click ***Update*** to save.

### Perform a batch edit to configure the session entries

1. Select the session entries in the parent folder while holding down the <kbd>Ctrl</kbd> key to select multiple entries at once.
2. Right-click on the selection, then click on ***Edit – Batch edit – Edit entries (General settings)*** Alternatively, the same path can be followed in the ribbon under the ***Edit*** tab.
3. From the left menu, under the ***Connection*** section, click on ***VPN/SSH/Gateway***, and check the ***Override VPN*** box.
4. In the ***Connect*** drop-down list, select ***Inherited***. Click ***OK***.

   ![](https://cdnweb.devolutions.net/docs/RDMW4465_2026_1.png)

### Settings for specific situations

There are many options to accommodate a range of VPN types. Here are two common situations and options to make using the VPN more efficient.

#### Situation 1: You lose connection to the workspace when the VPN is active.

Follow the steps below to automate going offline when the VPN opens.

1. Right-click the folder entry and open its ***Folder properties***, then under the ***Connection*** section, click on ***VPN/SSH/Gateway***.
2. In the ***Advanced*** tab, check the ***Go offline on connection*** and ***Go online on disconnect after X sec*** options. In this last option, specify the number of seconds, then click ***OK***.

   ![](https://cdnweb.devolutions.net/docs/RDMW4466_2026_1.png)

#### Situation 2: The VPN is slow to connect.

Follow the steps below to change the time Remote Desktop Manager waits for the VPN to open.

1. Right-click the folder entry and open its ***Folder properties***, then under the ***Connection*** section, click on ***VPN/SSH/Gateway***.
2. In the ***Advanced*** tab, in the ***After execution, wait*** section, enter the time in seconds, then click ***OK***.

![](https://cdnweb.devolutions.net/docs/RDMW4467_2026_1.png)

{% hint style="info" %}
The ***-1*** sec value is the default time (5 seconds). You can change the default time for all VPN entries in ***File – Settings – Types – VPN – VPN default pause***.
{% 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.devolutions.net/rdm/knowledge-base/how-to-articles/configure-a-vpn-for-multiple-sessions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
