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.
In order to set up the OpenVPN you will need:
- A RayaVPN account. If you don’t have one you can try our services now.
- 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.
- Install network-manager-openvpn plugin:
- Open terminal: click to the Menu button and write “Terminal” (1) in order to access it.
- When the Terminal is accessed, put down the following:
sudo apt-get install network-manager-openvpn (2)
and press Enter
- 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.
- Configure the OpenVPN connection:
- Click Network Manager (4) > “VPN Connections” (5) > “Configure VPN” (6).
- 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).
- 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).
- 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).
Now OpenVPN on Ubuntu is set up.
- Connect to your new OpenVPN connection from RayaVPN.
Network Manager (17) > “VPN Connections” (18) > Your RayaVPN connection (19):