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.

Please Note

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, this port should also be opened.

Requirements
  • You have administrator rights.

  • You have logged in on your local PC.

Installing OpenVPN

  • Open the terminal.

  • To install OpenVPN, enter the following command:

    [root@localhost ~]# apt-get update && apt-get install openvpn

  • You will then see the following message:

    Is this ok [y/N]:

  • 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:

  • Log in to your IONOS account.
  • Click on the  Server & Cloud tile. If necessary, select the appropriate Server & Cloud contract.

    The Cloud Panel opens.

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

The configuration file is downloaded.

Configuring OpenVPN

Prerequisite

You have installed the unzip program on your computer.

Please Note

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

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

How to configure OpenVPN:

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

    [root@localhost ~]# cp -i /home/vpn123456789.zip /etc/openvpn/

  • Change to the destination directory.

    [root@localhost ~]# cd /etc/openvpn/

  • Verify that the file has been copied to the destination directory.

    root@localhost:~# etc/openvpn/ ls

  • Extract the zip file. Example:

    [root@localhost ~]# unzip vpn123456789.zip