> 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/knowledge-base-articles/entry-settings/forticlient-ipsec.md).

# FortiClient IPsec

Configure the FortiClient IPsec VPN entry in Remote Desktop Manager, including the tunnel, credentials, reconnect mode, wait conditions, and VPN commands.

This article details the many settings and options available for ***FortiClient IPsec*** VPN entries in Remote Desktop Manager.

{% hint style="info" %}
***FortiClient IPsec*** entries are available only on Windows. When Remote Desktop Manager cannot initialize FortiClient, the ***Connection*** tab displays the following warning: "Failed to initialize FortiClient. Ensure FortiClient is installed and RDM is running as Administrator."
{% endhint %}

<table data-header-hidden><thead><tr><th width="200"></th><th></th></tr></thead><tbody><tr><td><strong>SETTINGS</strong></td><td><strong>DESCRIPTION</strong></td></tr><tr><td><strong>Name</strong></td><td>The name of the entry.</td></tr><tr><td><strong>Folder</strong></td><td>The folder where the entry is located.</td></tr><tr><td><strong>Display</strong></td><td>How the entry opens. This entry type only supports <em><strong>External</strong></em>, so the display mode cannot be changed.</td></tr><tr><td><strong>Credentials</strong></td><td>How the credentials of the entry are provided. Select a credential mode from the list. When the credentials do not come from the entry itself, the <em><strong>Username</strong></em> and <em><strong>Password</strong></em> fields of the <em><strong>Connection</strong></em> tab are disabled.</td></tr><tr><td><strong>VPN type</strong></td><td>The type of VPN the entry opens. Select another type from the list to change the VPN client used by the entry.</td></tr></tbody></table>

### Connection

<table><thead><tr><th width="220">SETTINGS</th><th>DESCRIPTION</th></tr></thead><tbody><tr><td><strong>Tunnel</strong></td><td>The FortiClient IPsec tunnel to connect to. Select a tunnel configured in FortiClient from the list, or type its name. This field is required. A warning icon appears next to the field when the tunnel does not exist in FortiClient, or when its name contains spaces, which the FortiClient API does not support.</td></tr><tr><td><strong>Username</strong></td><td>The username used to connect to the tunnel.</td></tr><tr><td><strong>Password</strong></td><td>The password used to connect to the tunnel. Disabled when the <em><strong>Disable password saving in vaults</strong></em> system setting is enabled.</td></tr></tbody></table>

### Advanced

<table><thead><tr><th width="220">SETTINGS</th><th>DESCRIPTION</th></tr></thead><tbody><tr><td><strong>Go offline on connection</strong></td><td>Switch Remote Desktop Manager to offline mode when the VPN connects.</td></tr><tr><td><strong>Close connection after</strong></td><td>Close the VPN automatically after the number of minutes entered in the field, from 0 to 4320.</td></tr><tr><td><strong>Detect reachable host in wait</strong></td><td>Detect whether the host can be reached while waiting for the VPN to connect.</td></tr><tr><td><strong>VPN reconnect mode</strong></td><td><p>How Remote Desktop Manager handles the VPN when it reconnects:</p><ul><li><strong>Default</strong></li><li><strong>Reconnect VPN</strong></li><li><strong>Leave VPN open</strong></li></ul></td></tr><tr><td><strong>Go online on disconnect after</strong></td><td>Switch Remote Desktop Manager back to online mode after the VPN disconnects, once the number of seconds entered in the field has elapsed, from 0 to 180.</td></tr><tr><td><strong>Use adapter to detect connection</strong></td><td>Use the network adapter to detect whether the VPN is connected.</td></tr><tr><td><strong>After execution, wait</strong></td><td><p>What Remote Desktop Manager waits for after starting the VPN:</p><ul><li><strong>Delay</strong> — Wait for the number of seconds entered in the field, from -1 to 180.</li><li><strong>For IP on adapter</strong> — Wait for the network adapter entered in the field to obtain an IP address. Enter an adapter name or a device name, or leave the field blank. Click the browse button to select an adapter.</li></ul></td></tr><tr><td><strong>Wait a maximum of</strong></td><td>With <em><strong>For IP on adapter</strong></em>, the maximum number of seconds to wait for the adapter to obtain an IP address, from -1 to 180.</td></tr><tr><td><strong>Then delay</strong></td><td>With <em><strong>For IP on adapter</strong></em>, an additional delay in milliseconds once the adapter has an IP address, from -1 to 180000 in increments of 100.</td></tr><tr><td><strong>Commands</strong></td><td>The list of VPN commands, with their <em><strong>Name</strong></em>, <em><strong>After connection command</strong></em>, and <em><strong>Before disconnecting command</strong></em>. Use <em><strong>Add</strong></em>, <em><strong>Edit</strong></em>, <em><strong>Delete</strong></em>, <em><strong>Move up</strong></em>, and <em><strong>Move down</strong></em> to manage the list. The commands are available only when <em><strong>After execution, wait</strong></em> is set to <em><strong>For IP on adapter</strong></em>.</td></tr><tr><td><strong>After connecting, VPN command enabled</strong></td><td>Run the <em><strong>After connection command</strong></em> of the listed commands once the VPN is connected. Available only when <em><strong>After execution, wait</strong></em> is set to <em><strong>For IP on adapter</strong></em>.</td></tr><tr><td><strong>Before disconnecting, VPN command enabled</strong></td><td>Run the <em><strong>Before disconnecting command</strong></em> of the listed commands before the VPN disconnects. Available only when <em><strong>After execution, wait</strong></em> is set to <em><strong>For IP on adapter</strong></em>.</td></tr><tr><td><strong>Run routes in batch (forces elevated privileges)</strong></td><td>Run the commands as a batch. This option requires elevated privileges. Available only when <em><strong>After execution, wait</strong></em> is set to <em><strong>For IP on adapter</strong></em>.</td></tr></tbody></table>


---

# 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/rdm/knowledge-base/knowledge-base-articles/entry-settings/forticlient-ipsec.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.
