How to set up GleSYS VPN (L2TP-over-IPsec) on Ubuntu 22.04

Introduction

You first need to create a VPN account to set up a VPN tunnel. In our control panel, go to the project you want to create a VPN user for. Go to More services, VPN users and press Create VPN. Enter a username (starting with clxxxxx_) and set a password there.

Note that if you are running Ubuntu 18.04, the instructions are different, and we have a separate guide here: Set up a VPN tunnel (L2TP over IPsec) in Ubuntu 18.04.

Prerequisites

Open a terminal window and update the package lists with the following command:

sudo apt update

Then install the following packages:

sudo apt install network-manager-l2tp
sudo apt install network-manager-l2tp-gnome

Create a VPN profile

Click on the icon at the top right and then Settings.

Skapa en L2TP VPN – Steg 1

Click Network and the plus sign (+) next to VPN to create a new profile.

Skapa en L2TP VPN – Steg 2

Click on Layer 2 Tunneling Protocol (L2TP).

Skapa en L2TP VPN – Steg 3

Fill in pptp.glesys.com as the gateway and the login details you created in the control panel. The type should be Password.

Skapa en L2TP VPN – Steg 4

Then click on the IPsec Settings button.

Select the option Enable IPsec tunnel to L2TP host. Under Pre-shared key, enter GleSYS, leaving the rest of the fields blank.

Skapa en L2TP VPN – Steg 5

Click OK.

Click the PPP Settings button and make sure you have the following settings. Then click OK to save.

Skapa en L2TP VPN – Steg 6

Click on Add to create the profile.

Skapa en L2TP VPN – Steg 7

Now you are done with the configuration. To activate the VPN tunnel, click the slider next to GleSYS VPN.

Skapa en L2TP VPN – Steg 8

A VPN icon appears in the top right corner when connected to the VPN tunnel. On the slider in the settings, you will also see that GleSYS VPN is active. Now you can connect to your server over VPN. When you want to disconnect from the tunnel, click the slider again.

If you are a GleSYS dedicated and colocation server customer: When connected to the VPN, you can now use the IPMI credentials provided to access your servers remotely, securely from anywhere.

Skapa en L2TP VPN – Steg 9


Hittar du inte det du söker?

Kontakta oss gärna för mer information. Vi hjälper dig att komma fram till den bästa lösningen för dina behov.

Skicka e-post Ring 0200-23 88 00