How to Set Up an IKEv2 VPN Server with StrongSwan

A VPN (Virtual Private Network) allows you to securely encrypt traffic on untrusted networks, such as those at a coffee shop, conference, or airport. IKEv2 (Internet Key Exchange v2) is a protocol that allows for direct IPSec tunneling between the server and client. In this tutorial, you’ll set up an IKEv2 VPN server using StrongSwan on your server. Choose your operating system below to get started.

Ubuntu

22.04

How to Set Up an IKEv2 VPN Server with StrongSwan on Ubuntu 22.04

Learn How to Set Up an IKEv2 VPN Server with StrongSwan on Ubuntu 22.04
20.04

How to Set Up an IKEv2 VPN Server with StrongSwan on Ubuntu 20.04

Learn How to Set Up an IKEv2 VPN Server with StrongSwan on Ubuntu 20.04
18.04

How to Set Up an IKEv2 VPN Server with StrongSwan on Ubuntu 18.04

Learn How to Set Up an IKEv2 VPN Server with StrongSwan on Ubuntu 18.04
16.04

How to Set Up an IKEv2 VPN Server with StrongSwan on Ubuntu 16.04

Learn How to Set Up an IKEv2 VPN Server with StrongSwan on Ubuntu 16.04

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.