Installing and Configuring OpenVPN (CentOS 6)

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 files. To install OpenVPN:

Installing OpenVPN

  • You have administrator rights.

  • You have already created a VPN in the Cloud Panel.

  • You have logged in to your local PC.


OpenVPN is not available in the standard repository. The software is available in the EPEL repository.

  • Open the terminal.

  • To install the EPEL repository, enter the following command: 
    [root@localhost ~]# yum install epel-release
    The following message will be displayed:
    Is this OK [y/N] :

  • Enter y and press Enter.

    The EPEL repository is installed.

  • To install OpenVPN, enter the following command:
    [root@localhost ~]# yum install openvpn
    The following message will be displayed:
    Install  2 Packages

    Total download size: 603 k
    Installed size: 1.4 M
    Is this ok [y/N]:

  • Enter y and press Enter.

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

  • Enter y.

    OpenVPN will be installed.

Configuring OpenVPN

To configure OpenVPN:


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.


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.


OpenVPN is installed by default in the /etc/openvpn directory.

  • To start OpenVPN, enter the following command:
    [root@localhost ~]# openvpn /etc/openvpn/<vpnID>.ovpn
    [root@localhost ~]# openvpn /etc/openvpn/vpn45BC7_1.ovpn