Skip to main content

OpenVPN Configuration

OpenVPN is a virtual private network system used to create secure connections between devices. By using OpenVPN, data transmitted via this connection is encrypted, thereby maintaining the privacy and security of the information sent.

Create OpenVPN

To create OpenVPN you will fill in several available columns including the following:

Create VPC Network Form


Column Description
Username The username that will be used to identify the user when connecting to the OpenVPN server.
Password The password that the user will use to authenticate when connecting to the OpenVPN server.
Confirm Password Confirm the password that has been entered.
Tunnel Settings - Protocol The protocol that will be used in VPN connections is currently the UDP On IPV4 only protocol.
Tunnel Settings - Ports The port number that will be used by the OpenVPN server is automatically filled in using port 1194.
Tunnel Settings - OpenVPN Client Network The virtual network that users will use when connecting to an OpenVPN server.

Here are the steps to create OpenVPN: On the VPN page, in the More column, select Configuration.


Create OpenVPN


  • Select the OpenVPN tab, and click the Create OpenVPN button.


Create OpenVPN


  • The Create OpenVPN page appears, in the Create User OpenVPN section, fill in the Username, Password, Confirm Password, and Expiration Date.


Create OpenVPN


  • In the Tunnel Settings section, fill in the Protocol, Port, and OpenVPN Client Network sections.


Create OpenVPN


  • Click the Create button after filling in all the columns on the OpenVPN Create User page.


Create OpenVPN


  • Wait until the process is complete.


Create OpenVPN


  • The notification “OpenVPN configuration vpn-for-tw has been successfully created” appears and the status changes to Created.


Create OpenVPN


Add OpenVPN User

On OpenVPN on the Cloudeka portal service, you can add users by following these steps:

  • On the VPN page, in the More column, select Configuration.

Add OpenVPN User


  • Select the OpenVPN tab in the OpenVPN User section, click the Add New User button.

Add OpenVPN User


  • The OpenVPN Create User page appears, fill in Username, Password, Confirm Password, Expiration Date, and click the Create button to continue the process.

Add OpenVPN User


  • New OpenVPN user accounts are now available in the OpenVPN User list.

Add OpenVPN User


Edit OpenVPN User Configuration

In the OpenVPN configuration on the Cloudeka portal service, you can update the password and change the validity period of the OpenVPN user account. Here are the steps to update your password:

  • On the OpenVPN page, in the OpenVPN User section, select Reset Password in the More column.

Edit OpenVPN User Configuration - Reset Password


  • The Edit Password page appears, fill in the Password column, Confirm Password, and click Update to continue the process.

Edit OpenVPN User Configuration - Reset Password



  • A notification “OpenVPN user has been successfully updated” appears.

Edit OpenVPN User Configuration - Reset Password



Here are the steps to change the validity period of an OpenVPN user account by following these steps:

  • On the OpenVPN page, in the OpenVPN User section, select Edit Expiration Date in the More column.

Edit OpenVPN User Configuration - Expired Date


  • The Edit Expiration Date page appears, select the new validity period and click Update to continue the process.

Edit OpenVPN User Configuration - Expired Date


Edit OpenVPN User Configuration - Expired Date


  • A notification “OpenVPN user has been successfully updated” appears.

Edit OpenVPN User Configuration - Expired Date


Download OpenVPN

Cloudeka Portal Service provides installers for Windows and MacOS operating systems. Here are the steps to download OpenVPN on the Cloudeka Portal service:

  • On the Network tab VPN menu, press the More button and press the Configuration button.

Download OpenVPN


  • On the OpenVPN tab in the Client Export section:
    a. Download the OpenVPN installer with the Windows operating system.
    b. Download the OpenVPN installer with the MacOS operating system.

Download OpenVPN



  • Wait for the installer to finish downloading.

Download OpenVPN


Install OpenVPN on Windows

Here are the steps for installing OpenVPN on Windows:

  • Run the downloaded OpenVPN for Windows installer by double-clicking.

Install OpenVPN on Windows


  • Press the Run button to continue the process of installing OpenVPN on your computer.

Install OpenVPN on Windows



  • Press the Installer Now button.

Install OpenVPN on Windows



  • Wait until the process is complete.

Install OpenVPN on Windows


  • Click the Close button. OpenVPN can now be run on your computer.

Install OpenVPN on Windows


Install OpenVPN on MacOS

Here are the steps for installing OpenVPN on Windows:

  • Run the downloaded OpenVPN for MacOS installer.

Install OpenVPN on MacOS


  • The Install OpenVPN Connect page appears, press the Continue button.

Install OpenVPN on MacOS


  • Read the EULA and press the Continue button to continue the installation process.

Install OpenVPN on MacOS


  • In Installation Type, press Install.

Install OpenVPN on MacOS



  • Wait until the process is complete.

Install OpenVPN on MacOS


Install OpenVPN on MacOS


  • Open the OpenVPN client application that you just installed in OpenVPN on your computer. Press the Agree and OK buttons. OpenVPN can now be run on your computer

Install OpenVPN on MacOS



Connection with OpenVPN

Here are the steps to connect to the VPN configuration on OpenVPN:

  • In the Action column, click the More button then select Configuration.

Connection with OpenVPN


  • To download the VPN configuration, select the OpenVPN tab, click Viscosity Inline Config and wait until the download process is complete until the notification Viscosity Inline config has been successfully downloaded appears.

Connection with OpenVPN


  • Run OpenVPN on the computer.

Connection with OpenVPN


  • On the taskbar in the right corner of the screen, click the openVPN icon, then right click and click Import File…

Connection with OpenVPN


  • Select the downloaded Viscosity Inline Config file and click Open.

Connection with OpenVPN


  • On the taskbar in the right corner of the screen, click the openVPN icon then click Connect.

Connection with OpenVPN


  • Enter the username and password you entered when you created OpenVPN and click OK to continue the process.

Connection with OpenVPN


  • If the username and password entered are correct, the notification viscosity-config-vpn-1-openvpn-byCloudeka is now connected will appear. You can see the IP used is 18.18.18.2

Connection with OpenVPN



  • To see the running status of OpenVPN, you can see the OpenVPN page

Connection with OpenVPN


  • The OpenVPN Status section displays several columns

Create VPC Network Form


Column Description
Username Username used to identify the connection to the OpenVPN server.
Real Address The physical IP address that is connected to the OpenVPN server.
Virtual Address A virtual IP address is used to communicate with other networks.
Connected Since Displays the date and time when the user connected to the OpenVPN server.
Bytes Sent Displays the total number of bytes a user has sent through an OpenVPN connection since connecting.
Bytes Received Displays the total number of bytes that have been received by the user via the OpenVPN connection since connecting.
Ciphers Displays the encryption algorithm used to protect data sent over an OpenVPN connection.

  • In the OpenVPN Status section you can see that there is only one total connected client.
    The VPN username is the second test which is currently active using the real address 103.168.135.139, virtual IP address 18.18.18.2 which has been connected since May 31, 2023 at 04:32:05. The bytes that have been sent are 2896 while the bytes that have been received are 8221. Cipher is the encryption method used by AES-256-GCM (Advanced Encryption Standard 256-bit Galois/Counter Mode).
    The Routing Table list displays the name of the second test user with the original address and target network address used 103.168.135.139, and the last time used was May 31 2023 at 04:32:05.

Connection with OpenVPN



  • On the Cloudeka portal service, select the Security menu and click the Edit button in the Action column.

Connection with OpenVPN


  • Click the New Rule button.

Connection with OpenVPN



  • In the Type column select SSH.

Connection with OpenVPN


<

Connection with OpenVPN


  • In the Sources column, enter the network address used when creating the VPN.

Connection with OpenVPN


  • Click the Save button to save changes

Connection with OpenVPN


  • Select the Instance menu, click See all IP Address to see the IP address used by the virtual machine that will be accessed. Make sure the VPC used is the same as the VPC used when creating the VPN.

Connection with OpenVPN


Connection with OpenVPN


  • Test the connection from your computer to the virtual machine in the portal service by typing Ping 10.10.10.252. Produces a response within 13 milliseconds, and a Time To Live value of 62 which indicates the maximum number of network hops permitted on a packet.

Connection with OpenVPN


To disconnect OpenVPN, on the taskbar in the right corner of the screen, click the OpenVPN icon then click Disconnect.

Connection with OpenVPN


On the Cloudeka portal service page in OpenVPN status the OpenVPN connection is no longer active.

Connection with OpenVPN


Delete OpenVPN User

Following are the steps to delete an OpenVPN user account on the Cloudeka portal service:

  • On the VPN page, in the More column, select Configuration.

Connection with OpenVPN


  • Select the OpenVPN tab, in the OpenVPN User section select the Delete button.

Connection with OpenVPN


  • Press the Confirm button to continue the OpenVPN User deletion process.

Connection with OpenVPN


  • A notification “OpenVPN user has been successfully deleted” appears.

Connection with OpenVPN


Delete OpenVPN

To be able to delete OpenVPN only the last OpenVPN user account by following these steps:

  • On the VPN page, in the More column, select Configuration.

Delete OpenVPN


  • Select the OpenVPN tab. The Delete OpenVPN button will appear in the OpenVPN User list, only one user account remains.

Delete OpenVPN


  • Press Confirm to continue the OpenVPN removal process.

Delete OpenVPN


  • Wait until the process is complete.

Delete OpenVPN



  • A notification appears “OpenVPN configuration [vpn-name] has been successfully deleted”.

Delete OpenVPN



×