How to set up IKEv2 VPN connection on Ubuntu 21

How to set up IKEv2 VPN connection on Ubuntu 17


Go to the All Programs section.

All programs on Ubuntu 21


Enter in the search bar: terminal and run Terminal app.

Terminal on Ubuntu 21


Update all current packages on Ubuntu. You may need to enter a root password.

sudo apt-get update

Update app on the Ubuntu 21


Run the following command to install IKEv2 VPN.

sudo apt-get install -y strongswan network-manager-strongswan libcharon-extra-plugins

Installing IKEv2 VPN on Ubuntu 21


Open connection settings.

Settings of IKEv2 VPN on Ubuntu 21


Set up a new VPN connection.

Set up a new IKEv2 VPN connection on Ubuntu 21


Choose IPSec/IKEv2 (strongswan).

IKEv2 VPN on Ubuntu 21


In the section Subscriptions look for a domain name for the IKEv2 VPN, and also Username and Password VPN.

List of IKEv2 VPN servers


Follow the steps below:

  1. Write connection name
  2. Domain name of IKEv2 VPN server from Subscriptions section
  3. Authentication EAP
  4. Username VPN
  5. Click on the user icon to save the password
  6. Password VPN
  7. Check the box
  8. Check the box
  9. Click Add

Username and Password for IKEv2 VPN on Ubuntu 21


Connect to IKEv2 VPN on Ubuntu 21.

Connection to IKEv2 VPN on Ubuntu 21


IKEv2 VPN connection successfully established.

Successful connection to IKEv2 VPN on Ubuntu 21


You can also connect to IKEv2 VPN through the top menu.

Connection to IKEv2 VPN through the top menu on Ubuntu 21


Disconnect from VPN network if necessary.

Disconnection from IKEv2 VPN through the top menu on Ubuntu 21





Ask your question