strongSwan

Open source

An open-source, modular IPsec VPN implementation with IKEv2 and IKEv1 support for Linux, Android, FreeBSD, macOS and Windows.

Open-source alternative to

strongswan.org
strongSwan homepage screenshot
GitHub stars
3.1k
Last 30 days
+51(+2%)
Last commit
2 days ago
Repository age
16 years
Version
6.1.0
Licence
Custom
Self-hosted
Yes

About strongSwan

strongSwan is a modular, portable, open-source VPN solution based on IPsec. It implements the Internet Key Exchange protocols, with IKEv2 as the main one and IKEv1 also supported, to secure IP traffic in policy- and route-based IPsec setups from simple to very complex. The latest release shown is version 6.1.0, dated 2026-09-07.

A plugin system lets crypto algorithms, credentials, authentication methods, configuration and network stack access be supplied as modules. Authentication covers X.509 certificates, pre-shared keys and EAP methods such as EAP-TLS and EAP-MSCHAPv2, with private keys held on a smartcard or TPM 2.0. Post-quantum key exchange including ML-KEM is supported.

It runs on Linux kernels from 2.6 through 6.x, has been ported to Android, FreeBSD, macOS, iOS and Windows, and has a NetworkManager plugin for Linux desktops. The source code is GPLv2 with commercial licensing options, and the site says free and commercial support is available.

Key features

  • IKEv2 key exchange with IKEv1 also supported
  • MOBIKE for dynamic IP address and interface updates
  • NAT traversal through UDP encapsulation
  • EAP user authentication methods including EAP-TLS
  • Post-quantum key exchange including ML-KEM
  • Private keys on a smartcard or TPM 2.0
  • Modular plugin system

Good fit for

  • Site-to-site IPsec tunnels
  • Remote-access VPN with certificate or EAP authentication
Built with
C tools
Tags
vpn
ipsec
ikev2
networking
security
linux
open source

strongSwan: questions and answers

What is strongSwan used for?
strongSwan is an open-source, modular IPsec VPN implementation with IKEv2 and IKEv1 support for Linux, Android, FreeBSD, macOS and Windows. It is a good fit for site-to-site IPsec tunnels and remote-access VPN with certificate or EAP authentication.
Is strongSwan open source?
Yes. strongSwan is open source under a custom licence. Its source code is on GitHub at strongswan/strongswan and is written mainly in C.
Is strongSwan free?
Yes. strongSwan is open source, so the software itself is free to use under the terms of its own licence.
Can I self-host strongSwan?
Yes. strongSwan can be self-hosted on your own server or infrastructure.
What is strongSwan an alternative to?
strongSwan is an open-source alternative to Tailscale and NordLayer. Other open-source alternatives to Tailscale include OpenZiti, Firezone and Octelium.
Is strongSwan actively maintained?
Yes. The most recent commit to strongSwan was on 11 November 2026, and the latest release is 6.1.0, published on 7 September 2026. The project has 3.1k stars on GitHub, with 51 added in the last 30 days.

Open-source alternatives to strongSwan

See all

SaaS alternatives to strongSwan

See all