L2TP Linux Ubuntu

Setting up L2TP in Ubuntu 20.x

1Update packages info and install latest updates and patches:
sudo apt update && sudo apt upgrade
2Install necessary packages:

sudo apt install network-manager-l2tp-gnome
3Go to Settings → Network and click “+” button near VPN section:

L2TP VPN connection on Ubuntu - Step 3
4Select “Layer 2 Tunneling Protocol (L2TP)”:

L2TP VPN connection on Ubuntu - Step 4
5Next, fill out the following fields:
- Name: enter connection name
- Gateway: enter VPN Server IP (see in your RapidVPN user account info)
- User name: enter your RapidVPN user name
- Password: enter your RapidVPN password (first click on the button to the right to define how you want your password to be stored)
Then click “Ipsec Settings” button.
L2TP VPN connection on Ubuntu - Step 5
6Switch on “Enable Ipsec tunnel to L2TP host” checkbox and enter “Pre-shared key”(copy it from your RapidVPN user account info (L2TP Preshared Key column), then click OK:

L2TP VPN connection on Ubuntu - Step 6
7Finally click Add button to create new VPN connection:

L2TP VPN connection on Ubuntu - Step 7
8Go to Settings → VPN and click Connect:

L2TP VPN connection on Ubuntu - Step 8
9After some time your should see VPN icon in system tray and your system should use VPN connection:

L2TP VPN connection on Ubuntu - Step 9