How to set up OpenVPN on Ubuntu

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 Enter

      How 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 configuration files and the ca.crt file. Select the downloaded 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

  3. Now OpenVPN on Ubuntu is set up. Connect to your new OpenVPN connection from CactusVPN.
    Network Manager (17) > “VPN Connections” (18) > Your CactusVPN connection (19):

    How to set up OpenVPN on Ubuntu: Step 8

Interested in OpenVPN for Ubuntu?

Try CactusVPN For Free