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

This article explains how to install and configure the OpenVPN client software on a local computer using the Ubuntu 18.04 operating system in order to establish a VPN connection to your Private Cloud.

Note

In order to use OpenVPN, you must enable the following ports in your router and firewall:

Port protocol

1194 UDP

443 TCP

Alternatively, OpenVPN can be used with port 1194 TCP. In this case, you have to enable this port as well. 

Requirements
  • You have administrator rights.

  • You have logged in to your local PC.

Install OpenVPN

  • Open the terminal.

  • To install OpenVPN, enter the following command:[root@localhost ~]# apt-get update && apt-get install openvpn

  • The following message will then be displayed:Is this ok [y/N] :

  • Enter Y and press the Enter key.

    The OpenVPN client software is installed.

Download Configuration File

To configure the OpenVPN client software, you need the *.ovpn file. To download this file, please proceed as follows:

  • Open the Cloud Panel.

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

The configuration file is downloaded.

Configure OpenVPN

To configure OpenVPN, please proceed as follows:

Requirement

You have installed the unzip program on your computer.

Note

You can install the program unzip by entering the following command:

[root@localhost ~]# apt-get install unzip

To configure OpenVPN:

  • Copy the OpenVPN configuration file (e.g. vpn1234B_1.ovpn) to the installation directory. Example:[root@localhost ~]# cp –i /home/vpn123456789.zip /etc/openvpn/

  • Change to the target directory.[root@localhost ~]# cd /etc/openvpn/

  • Unzip the zip file. Example:[root@localhost ~]# unzip vpn123456789.zip