Installing and Configuring OpenVPN (Ubuntu)

To access vSphere/NSX-T, you must install the OpenVPN client software on your local computer and establish a VPN connection.

This article explains how to install and configure the OpenVPN client software on a local computer running the Ubuntu 18.04 or 20.04 distributions to establish a VPN connection to your Private Cloud.

Installing OpenVPN

circle-info

Prerequisites:

  • You have administrator rights.

  • You have logged in on your local PC.

circle-exclamation

Port

Protocol

1194

UDP

443

TCP

  1. Open the terminal.

  2. To install OpenVPN, enter the following command:

root@localhost ~# apt-get update && apt-get install openvpn
  1. You will then see the following message:

Is this ok [y/N]:
  1. Type y and press the Enter key.

The OpenVPN client software is installed.

Downloading the Configuration File

To configure the OpenVPN client software, you need a specific *.ovpn file. To download it, proceed as follows:

  1. In the Data Center Designer (DCD)arrow-up-right, go to Menu > Private Cloud > Login.

  2. Log in to the Cloud Panelarrow-up-right with your credentials.

  3. Click on the Server & Cloud tile. If necessary, select the appropriate Server & Cloud contract.

  4. The Cloud Panel opens.

  5. To download the configuration file, click on VPN in the Private Cloud section.

  6. The configuration file is downloaded.

Configuring OpenVPN

circle-info

Prerequisites: You have installed the unzip program on your computer. You can install the unzip program by entering the following command:

Configuration Steps

  1. Copy the OpenVPN configuration file (for example, vpn1234B_1.ovpn) to the installation directory. Example:

  1. Change to the destination directory:

  1. Verify that the file has been copied to the destination directory:

  1. Extract the zip file. Example:

Last updated

Was this helpful?