For the complete documentation index, see llms.txt. This page is also available as Markdown.

Custom VPN (CMD)

This article details the many settings and options available for Custom VPN (CMD) VPN entries in Remote Desktop Manager. This entry starts an executable or script of your choice to open the VPN connection, and runs it again with different arguments to close it.

The Host field of the Connection tab is disabled when the host comes from the Host setting above the tabs instead of being configured in the entry. In the same way, the Username, Domain, and Password fields are disabled when the credentials are not configured in the entry.

SETTINGS

DESCRIPTION

Name

The name of the entry.

Folder

The folder where the entry is located.

Display

How the entry is displayed. External is the only display mode available for this entry. The lists next to it set the monitor and the virtual desktop.

Host

Where the host of the VPN comes from. Select whether the host is configured in the entry, linked to a host entry, or inherited from a parent folder.

Credentials

Where the credentials used by the VPN come from. Select whether the credentials are configured in the entry, linked to a credential entry, or obtained another way.

VPN type

The type of VPN the entry opens. Set to Shell script for this entry. Changing it switches the entry to another VPN type and changes the content of the Connection tab.

Connection

SETTINGS
DESCRIPTION

Host

The host name or IP address of the VPN server. This field is required unless the host comes from a host entry.

Executable

The executable or script launched to open and close the VPN. Click the ellipsis button to browse for the file. This field is required, and the file must exist.

Opening arguments

The arguments passed to the executable when the VPN is opened.

Closing arguments

The arguments passed to the executable when the VPN is closed.

Wait interval (sec)

The number of seconds to wait for the VPN client to start after the executable is launched, between 0 and 999999. The wait is skipped when Wait for exit is enabled.

Run in background

Run the executable in a hidden window when opening and closing the VPN.

Wait for exit

Wait for the executable to exit before continuing, instead of waiting for the Wait interval.

Use taskkill to close the VPN

Close the VPN by ending the running processes that have the same name as the executable, instead of running the executable with the Closing arguments.

Credentials

Username

The username used to connect to the VPN.

Domain

The domain of the VPN account.

Password

The password used to connect to the VPN. This field is disabled when the Disable password saving in vaults system setting is enabled.

The following variables can be used in the opening and closing arguments: $VPN_USERNAME$, $VPN_DOMAIN$, $VPN_HOST$, and $VPN_PASSWORD$.

VPN settings

SETTINGS
DESCRIPTION

Go offline on connection

Switch Remote Desktop Manager to offline mode once the VPN is connected.

Close connection after (min)

Close the VPN automatically after the set number of minutes, between 0 and 4320.

Detect reachable host in wait

While waiting for the VPN to connect, check whether the host can be reached, so the wait can end as soon as it can.

VPN reconnect mode

Choose what happens to the VPN when a session that uses it is reconnected:

  • Default

  • Reconnect VPN

  • Leave VPN open

Go online on disconnect after (sec)

Switch Remote Desktop Manager back to online mode the set number of seconds after the VPN is disconnected, between 0 and 180.

Use adapter to detect connection

Use the network adapter to detect whether the VPN connection is open.

After execution, wait

Choose how Remote Desktop Manager waits after the VPN is started:

  • Delay — Wait the set number of seconds, between -1 and 180.

  • For IP on adapter — Wait for the network adapter to receive an IP address. Enter the adapter name or device name, or click the browse button to select it. Set Wait a maximum of (in seconds, between -1 and 180) and Then delay (in milliseconds, between -1 and 180000).

Commands

The settings of this section are available only when After execution, wait is set to For IP on adapter, and are not supported on macOS.

Commands

The list of VPN commands, showing each command's Name, After connection command, and Before disconnecting command. Use the toolbar to add, edit, delete, move up, or move down a command.

After connecting, VPN command enabled

Run the after connection commands once the VPN is connected.

Before disconnecting, VPN command enabled

Run the before disconnecting commands before the VPN is disconnected.

Run routes in batch (forces elevated privileges)

Run the commands together in a batch. This option requires elevated privileges.

Last updated

Was this helpful?