Skip to main content
Skip table of contents

How to configure client to site VPN with openVPN


This article describes how to install and configure VPN using openVPN in Copaco VMware Cloud.


  • An active Copaco VMware Cloud subscription;

  • An account with administrator permissions on the Copaco VMware Cloud environment.

  • Purchased the amount enough licenses. See:;

  • OpenVPN Applicance. Click here to download.

Getting Started

This article contains 3 parts. In the first part will explain how to create a vApp and the second part will explain the firewall rules that need to be created and the third part will explain how to configure the vApp.

Creating the vApp

  1. Login to the customer tenant environment from Copaco VMware Cloud.

  2. Click on vApps, click NEW and click Add vApp From OVF.


  3. Click upload to select the OpenVPN OVF file.


  4. Click Next.


  5. Review the details and click Next.


  6. Provide a name for the vApp and click Next.


  7. Change the Computer Name so it meets the requirements shown.


  8. Click Next.


  9. Click Next.
    (Optional) Specify the primary NIC, Network Adapter Type, vApp Logical Network and IP assignment.


  10. Click Next.
    (Optional) Adjust the hardware settings.


  11. Click Next.
    (Optional) Change the Destination and IP Allocation.


  12. Review the settings and click Finish.


Creating Firewall and NAT Rules

  1. Click Edges, select the Edge gateway rule and click Services.


  2. Go to the Firewall tab and click the + icon.


  3. Create a firewall rule that allows traffic from your local network to the Copaco VMware Cloud environment.


  4. Go to the NAT tab and click +DNAT RULE.


  5. Create a DNAT rule to NAT ports 1194 (UDP/TCP) and 943 (TCP) to our OpenVPNserver machine which will have the IP (We will configure the IP address later).

    1194 TCP rule

    1194 UDP rule

    943 TCP rule

    All three created rules

Configuring the VM to be able to connect through VPN

  1. Go to vApps and click the name of the vApp created in the first steps.


  2. Click Virtual Machines, and click the name of the server.


  3. Under Hardware, click NICs and click Edit.


  4. Enable the NIC, Change IP Mode to Static - Manually and enter the IP address and click Save.


  5. Go to Guest OS Customization and click Edit.


  6. Check the Allow local administrator password checkbox, specify a password and click Save.


  7. Go to ALL ACTIONS, Click Power and click Power On, Force Recustomization.


  8. When the VM is started, login with the credentials you have specified. The OpenVPN configuration wizard will start.

  9. Type Yes if you agree the agreement

  10. Type Yes On primary access node

  11. On specify network interface specify the network interface with the private IP. In this case its 2.

  12. Leave the port for admin web default and press Enter.

  13. Enter port 1149 for OpenVPN Daemon.

  14. Type Yes on the Client traffic routing.

  15. Type Yes for the DNS traffic to be router through VPN.

  16. Type Yes for User authentication via internal DB.

  17. Type Yes for Should private subnets be accessible.

  18. Type Yes to login to the Admin UI with OpenVPN.

  19. Enter your activation key if you have one.

    • Wait a few minutes for the installation to be complete

  20. Specify a password for the user “openvpn” by typing passwd openvpn.

  21. Browse to the OpenVPN admin interface and login with the openvpn user In our case its


  22. Here you can configure several settings such as authentication methods.

  23. Go to the client page to download our client config. In our case its

    • Here you have several options to choose for using the VPN. We are going to choose to download our config since we already have installed the OpenVPN client.

  24. When you have downloaded the config you have the addresses into (its public address).

  25. When this is done. you can import the config in to your client and try to make connection.

  26. Now you are successfully connected to the OpenVPN VPN connection.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.