How to configure a VPN on Linux

Step-by-step instructions

Ubuntu 16.04

1. Create a VPN server with PPTP connection protocol

Open the program installation manual

2. Save access

3. Go to ParametersNetwork

4. Create a new connection

5. Select the interface VPN and press Create

6. Select the protocol PPTP and press Create

7. Fill in the accesses and press More

8. Enable encryption type MPPE and press ОК

9. In the section Network select the VPN connection and connect

Ubuntu 18.04

1. Create a VPN server with PPTP connection protocol

Open the program installation manual

2. Save access

3. Go to ParametersNetwork and create a VPN connection

4. Select the protocol PPTP

5. Fill in the accesses and press More

6. Enable encryption type MPPE and press ОК

7. Save your changes

8. In the section Network connect

Debian 9

For the shell Gnome in Debian 9 use instruction for Ubuntu 16.04.

If there is no PPTP interface, start in the console:

apt install pptp-linux
and restart the network-manager service

OpenVPN

1. Create a VPN server with the OpenVPN connection type

Open the program installation manual

2. Save the configuration file .ovpn

Import the .ovpn configuration manually if your OS supports it

3. To connect via the terminal, install the package openvpn

Official instruction

For the package manager apt

apt-get install openvpn

4. Enter the command in the terminal

sudo openvpn ./myvpn-vpn-xxxxxx.ovpn
Specify the path to the saved file