Installing and Configuring OpenVPN (Ubuntu)
To use a VPN, you have to install the OpenVPN software on the local PC and then configure it. In the Access section, you can download a zip file with the necessary configuration file. To install OpenVPN:
Installing OpenVPN
Requirements
- You have administrator rights.
You have already created a VPN in the Cloud Panel.
- You have logged in to your local PC.
Um Ubuntu zu aktualisieren, geben Sie die folgenden Befehle ein:
[root@localhost ~]# sudo apt update
[root@localhost ~]# sudo apt-get upgradeTo download OpenVPN, enter the following command:
[root@localhost ~]# sudo apt install openvpn
The following message will be displayed:The following packages were automatically installed and are no longer required:
libdumbnet1 libnetplan0 python3-netifaces
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
libpkcs11-helper1
Suggested packages:
easy-rsa resolvconf
The following NEW packages will be installed:
libpkcs11-helper1 openvpn
0 upgraded, 2 newly installed, 0 to remove and 3 not upgraded.
Need to get 514 kB of archives.
After this operation, 1,274 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Enter Y.
OpenVPN is installed.
Configuring OpenVPN
To configure OpenVPN:
Requirements
You are in the Cloud Panel.
Click Network > VPN.
Activate the desired VPN.
To download the configuration file, click Download in the Access section.
Save the zip file.
Note
This zip file contains the configuration file.
Extract the zip file to the desired folder.
Copy the OpenVPN configuration file (e.g. vpn1234B_1.ovpn) to the installation directory.
Note
OpenVPN is installed by default in the /etc/openvpn directory.
To start OpenVPN, enter the following command:
[root@localhost ~]# openvpn /etc/openvpn/<vpnID>.ovpn
Example
[root@localhost ~]# openvpn /etc/openvpn/vpn45BC7_1.ovpn