> 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-with-an-existing-remote-session.md).

# Configure a VPN with an existing remote session

Follow this procedure to configure and launch secure remote sessions through a VPN or Devolutions Gateway in Remote Desktop Manager.

### VPN

You must first create a VPN entry, then do the following:

1. Select the RDP entry.
2. Go in the properties of your RDP entry, under ***VPN/Tunnel/Gateway***.
3. Set ***Connect*** to ***Always connect***.
4. Set ***Type*** to ***VPN link***.

   <figure><img src="https://cdnweb.devolutions.net/docs/RDMW6116_2025_1.png" alt=""><figcaption></figcaption></figure>
5. Go under the ***Settings (VPN link)*** tab at the top.
6. Use the ellipsis (...) button to select the ***VPN*** entry you have created.

   <figure><img src="https://cdnweb.devolutions.net/docs/RDMW6117_2025_1.png" alt=""><figcaption></figcaption></figure>
7. Click ***Update*** to save and close the window.
8. Launch your RDP entry which will first open the VPN you have configured to establish the connection.

### Devolutions Gateway

You must first install [Devolutions Gateway](https://docs.devolutions.net/gateway/overview/what-is-gateway/), then do the following:

1. Select the RDP entry.
2. Go back in the properties of your RDP entry, under ***VPN/Tunnel/Gateway***.
3. Set ***Type*** to ***Devolutions Gateway***.
4. Go under the ***Settings (Devolutions Gateway)*** tab at the top.
5. Use the ellipsis (...) button to select the Devolutions Gateway.
6. Click ***Update*** to save and close the window.
7. Launch the RDP entry, which will first open the Devolutions Gateway to establish the connection.

#### See also

[Youtube- RDM Quick Tip - Launch remote sessions via a VPN or a Devolutions Gateway](https://www.youtube.com/watch?v=xaC_7hYE33M)<br>


---

# 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-with-an-existing-remote-session.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.
