Installing and Configuring OpenVPN (Ubuntu)
PreviousInstalling and Configuring OpenVPN (Microsoft Windows)NextInstalling and Configuring OpenVPN (CentOS 7)
Last updated
Was this helpful?
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.
Prerequisites:
You have administrator rights.
You have logged in on your local PC.
Important:
To use OpenVPN, you must enable the following ports in your router and firewall:
Alternatively, OpenVPN can be used with port 1194 TCP. In this case, this port should also be opened.
Port
Protocol
1194
UDP
443
TCP
Open the terminal.
To install OpenVPN, enter the following command:
root@localhost ~# apt-get update && apt-get install openvpnYou will then see the following message:
Is this ok [y/N]:Type y and press the Enter key.
The OpenVPN client software is installed.
To configure the OpenVPN client software, you need a specific *.ovpn file. To download it, proceed as follows:
Log in to your IONOS CLOUD account.
In the Data Center Designer (DCD), go to Menu > Private Cloud > Login.
Log in to the Cloud Panel with your credentials.
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.
Prerequisites: You have installed the unzip program on your computer. You can install the unzip program by entering the following command:
Copy the OpenVPN configuration file (for example, vpn1234B_1.ovpn) to the installation directory. Example:
Change to the destination directory:
Verify that the file has been copied to the destination directory:
Extract the zip file. Example:
Last updated
Was this helpful?
Was this helpful?
root@localhost ~# apt-get install unziproot@localhost ~# cp -i /home/vpn123456789.zip /etc/openvpn/root@localhost ~# cd /etc/openvpn/root@localhost:~# etc/openvpn/ lsroot@localhost ~# unzip vpn123456789.zip