How to set up OpenVPN on Ubuntu from desktop

In this tutorial we will show you how to set up OpenVPN on Ubuntu but first let’s see what are our requirements and recommendations.

Requirements

In order to set up the OpenVPN you will need:

  1. A RayaVPN account. If you don’t have one you can try our services now.
  2. Your VPN username, password and VPN server address. You can find them in your account on our website, by going to your package.

If you want to set up OpenVPN manually, go step-by-step through following instructions:

 

OpenVPN Setup instructions

Go step-by-step through following instructions to set up OpenVPN on Ubuntu.

  1. Install network-manager-openvpn plugin:
    • Open terminal: click to the Menu button and write “Terminal” (1) in order to access it.How to set up OpenVPN on Ubuntu: Step 1
    • When the Terminal is accessed, put down the following:
      sudo apt-get install network-manager-openvpn (2)
      and press EnterHow to set up OpenVPN on Ubuntu: Step 2
    • You will be informed about the package installation and will be asked if you want to continue. Type Y (3) and press Enter to proceed.How to set up OpenVPN on Ubuntu: Step 3
  2. Configure the OpenVPN connection:
    • Click Network Manager (4) > “VPN Connections” (5) > “Configure VPN” (6).How to set up OpenVPN on Ubuntu: Step 4
    • In “Network Connections” window, select the “VPN” tab (7) and press the “Add” button (8). In the “Choose a VPN Connection Type” (9) window select “OpenVPN” and press the “Create…” button (10).How to set up OpenVPN on Ubuntu: Step 5
    • Complete requested fields, using your data: the VPN server IP address (11) and your VPN account credentials (12). Download the OpenVPN Certificate Authority file. Select the downloaded openvpn-configs_ca.crt file (13). Click on “Advanced” button (14).How to set up OpenVPN on Ubuntu: Step 6
    • To use a UDP connection, type the 5555, 992 or 1194 value for the “Use custom gateway port” field (15).To use a TCP connection, check the “Use a TCP connection” checkbox (16) and type the 443, 5555, 992 or 1194 value for the “Use custom gateway port” field (15).How to set up OpenVPN on Ubuntu: Step 7

      Now OpenVPN on Ubuntu is set up.

  3. Connect to your new OpenVPN connection from RayaVPN.
    Network Manager (17) > “VPN Connections” (18) > Your RayaVPN connection (19):How to set up OpenVPN on Ubuntu: Step 8