New: VLESS protocol — stays connected where other VPNs get blocked
Features Pricing Server locations Download Help center Extra devices

Account overview My devices Redeem a code Manual VPN setup Change password
Get RealVPN Sign in Redeem a code

IKEv2 on Linux

strongSwan with NetworkManager.

Linux IKEv2 6 min 2 min read

Use strongSwan with NetworkManager to connect Ubuntu, Debian and similar distributions over IKEv2.

What you need

  • Ubuntu 20.04+, Debian 11+ or similar with NetworkManager
  • An active RealVPN plan
  1. Get your IKEv2 config

    Sign in at realvpn.io, open the Account menu and choose Manual VPN setup — or go straight to realvpn.io/settings.

    Select IKEv2, choose a location close to you and press Generate config. You’ll get a server address, login and password.

    Manual VPN setup page on realvpn.io with protocol, location and device selection
    Manual VPN setup: pick a protocol, a location and a device.
    IKEv2 result on the Manual VPN setup page
    Example result — your values will be different.

    Device: choose New manual device the first time. Setting up the same device again? Pick it from the list to reuse its credentials instead of creating a new one.

  2. Install the strongSwan plugin

    Log out and back in (or restart NetworkManager) so the new VPN type appears.

  3. Add the connection

    Open Settings → Network, click + next to VPN and choose IPsec/IKEv2 (strongswan).

  4. Connect

    Switch the RealVPN toggle on in the network menu. Check with curl -s https://api.ipify.org.

OpenVPN or VLESS may be simpler on Linux — see OpenVPN on Linux and VLESS on Linux.