How to configure a VPN on Linux
Step-by-step instructions
Ubuntu 18.04
1. Create a VPN server with PPTP connection protocol
Open the program installation manual2. Save access
3. Go to Parameters ❯ Network 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-linuxand restart the network-manager service
OpenVPN
1. Create a VPN server with the OpenVPN connection type
Open the program installation manual2. 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 instructionFor the package manager apt
apt-get install openvpn
4. Enter the command in the terminal
sudo openvpn ./myvpn-vpn-xxxxxx.ovpnSpecify the path to the saved file