# strongSwan

> Open-source, modular and portable IPsec-based VPN solution

Source: https://talira.ai/catalog/strongswan-313s8er0
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Infrastructure, Command-line tool, Mobile app
- Categories: [networking / vpn](https://talira.ai/categories/networking/vpn)
- Platforms: linux, android, macos, ios, windows, cli[^3][^4][^8]
- Licence: GPL-2.0-or-later[^5][^6]
- Pricing: Free and open source[^5]
- Pricing notes: GPLv2; a commercial, non-GPL licence for most components and paid support are sold by secunet Security Networks AG.
- Free tier: yes[^5]
- Self-hostable: yes[^7]
- Plugins: yes[^8]
- Backed by: [strongSwan Team](https://talira.ai/orgs/strongswan.md)
- Sponsors: secunet, codelabs

strongSwan is an IPsec VPN implementation built around its IKE daemon, charon, which negotiates IKEv2 (and IKEv1) security associations and installs them in the operating system's IPsec stack. It handles site-to-site tunnels, host-to-host connections and remote-access (road warrior) clients with virtual IPs, authenticating with X.509 certificates, pre-shared keys or EAP methods, with MOBIKE, NAT traversal, dead peer detection, high availability and post-quantum key exchange including ML-KEM. It's configured with swanctl over the VICI interface (the older ipsec/stroke interface is deprecated), ships a pki tool for keys and certificates, and has an official Android client. Runs on Linux, with ports to Android, [FreeBSD](https://talira.ai/catalog/freebsd-d628b1cm.md), [macOS](https://talira.ai/catalog/macos-8swyggxb.md), iOS and Windows; GPLv2, with commercial licences from secunet.

## Links

- Website: https://strongswan.org/
- GitHub: https://github.com/strongswan/strongswan
- Docs: https://docs.strongswan.org/

## Ways to install

### Package managers

- [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md): <https://formulae.brew.sh/formula/strongswan>[^1]
- [APT](https://talira.ai/catalog/apt-d7essv0z.md): <https://packages.debian.org/stable/strongswan>[^2]

## Problems it solves

- connect two office networks with an IPsec tunnel between Linux gateways
- set up an IKEv2 VPN server that the built-in clients on Windows, macOS and iPhone can connect to
- give remote employees a VPN with certificate authentication and a virtual IP from a pool
- build an IPsec tunnel from a Linux server to a Fortinet or Cisco firewall
- authenticate VPN users against RADIUS with EAP instead of shared keys
- keep the VPN session alive when a laptop moves between Wi-Fi and mobile data
- an open source IPsec stack we can embed in our own appliance under a commercial licence
- issue the certificates for our VPN from the command line without a separate CA product
- an Android VPN app that talks IKEv2 to our own gateway
- post-quantum key exchange for our site-to-site IPsec tunnels
- route-based IPsec VPN on a Linux gateway
- run a highly available pair of IPsec VPN gateways that fail over

## Features

- IKEv2 (RFC 7296) and IKEv1
- policy-based and route-based IPsec, IPv4 and IPv6 in tunnel and transport mode
- X.509 certificate, pre-shared key and EAP authentication (EAP-TLS, EAP-AKA, EAP-MSCHAPv2 and others), RADIUS
- post-quantum key exchange including ML-KEM
- MOBIKE, NAT traversal, dead peer detection
- virtual IPs for remote-access clients
- swanctl and the VICI configuration interface; legacy ipsec/stroke interface deprecated
- pki tool for RSA, ECDSA and EdDSA keys, X.509 certificates and CRLs
- high availability, IPComp, IP-TFS and per-CPU SAs
- NetworkManager plugin
- official Android VPN client on Google Play and F-Droid
- Trusted Network Connect and TPM 2.0 support
- modular plugin system

## Limitations

- Android app supports only IKEv2: no IKEv1 and no pre-shared key authentication[^3]
- Windows port can't install virtual IP addresses: kernel-iph doesn't support them, so it doesn't work as a road-warrior client[^4]

## Capabilities

- Has a command line tool: plan not known
- Takes plugins: plan not known

## Trust

Overall: 0.44 out of 1.
Signals: backing 0.45, extensibility 0.40.

- backed by strongSwan Team
- sponsored by secunet, codelabs
- has a plugin system

Warnings:

- GitHub activity not fetched yet

## Alternatives

- [Libreswan](https://talira.ai/catalog/libreswan-afy3ayy0.md): Free software implementation of the IPsec VPN protocol and the Internet Key Exchange (IKE)
- [WireGuard](https://talira.ai/catalog/wireguard-5kp2vca6.md): Fast, modern, secure VPN tunnel
- [OpenVPN Access Server](https://talira.ai/catalog/openvpn-access-server-7jptz9hj.md): Fast and Easy Zero-Trust VPN Fully in Your Control
- [OpenVPN](https://talira.ai/catalog/openvpn-1k280v71.md): Open source VPN daemon
- [CloudConnexa](https://talira.ai/catalog/cloudconnexa-tqrp0dy7.md): Cloud-delivered VPN and zero trust network access from OpenVPN
- [Firezone](https://talira.ai/catalog/firezone-hhvsycd0.md): Zero Trust Access That Scales

## Sources

[^1]: https://formulae.brew.sh/api/formula.json (checked 21 Nov 2026)
[^2]: https://deb.debian.org/debian/dists/stable/main/source/Sources.xz (checked 21 Nov 2026)
[^3]: https://docs.strongswan.org/docs/latest/os/androidVpnClient.html (checked 20 Nov 2026)
[^4]: https://docs.strongswan.org/docs/latest/os/windows.html (checked 20 Nov 2026)
[^5]: https://www.strongswan.org/license.html (checked 20 Nov 2026)
[^6]: https://github.com/strongswan/strongswan/blob/master/LICENSE (checked 20 Nov 2026)
[^7]: https://github.com/strongswan/strongswan (checked 20 Nov 2026)
[^8]: https://strongswan.org/ (checked 20 Nov 2026)
