← All Setup Guides/Ubuntu / Linux/L2TP/IPsec
⚙ 1-Click Copy Commands • Ubuntu NetworkManager • L2TP/IPsec

How to Setup L2TP/IPsec VPN on Ubuntu

Install Ubuntu's native NetworkManager L2TP plugin and connect in 4 simple steps (Pre-Shared Key: ).

1

Install NetworkManager L2TP Plugin

Run this single command in Terminal to add L2TP/IPsec support to Ubuntu Settings.

Terminal — Step 1
sudo apt update && sudo apt install -y network-manager-l2tp network-manager-l2tp-gnome strongswan && sudo systemctl restart NetworkManager
2

Open Settings → Network → VPN (+)

Open Ubuntu Settings → Network, click "+" next to VPN, and select Layer 2 Tunneling Protocol (L2TP).

Ubuntu Settings → Add VPN
Layer 2 Tunneling Protocol (L2TP)›Select
3

Enter Server IP, VPN Login & IPsec PSK

Set Gateway: Server IP from /client/servers · User name / Password: your VPN credentials · click IPsec Settings → check Enable IPsec tunnel to L2TP host → set Pre-shared key: → click Add.

L2TP & IPsec Settings
Gateway:de1.worldvpn.net
Pre-shared key:worldvpn
4

Toggle VPN ON & Verify IP

Flip the WorldVPN switch ON in Ubuntu Settings → Network and verify your new public IP in Terminal.

Terminal — Verify IP
curl -s https://api.ipify.org && echo
💡 Need VPN Credentials to Connect?

Unlock unlimited speed across 200+ global servers from just $1.12/month (3-Year Deal) or $1.99/month pay-as-you-go — or test free for 24 hours!

🔥 Get 3 Years ($1.12/mo) → 🚀 1 Month ($1.99) → 🆓 Free 24h Trial
Unlimited VPN from $1/mo or $9/yr on Telegram
1