Skip to content

strongSwan VPN Client

IPsec VPN suite for Linux, Android, macOS and FreeBSD with certificate authentication

Copyleft (OSI) · GPL-2.0-or-later
  • macOS
  • Linux
  • Android
  • CLI

Listed by , founder & editor

72

Health

Active

Overview

Stars

3,067

Last commit

today

Nov 2026

Repository age

16 years

since Oct 2010

Latest version

6.1.0

Sep 2026

Contributors

–

7 active in 90 days

Releases

5

last 12 months

Language

C

strongSwan is a modular IPsec VPN solution written in C. It supports IKEv2 and covers both VPN clients and gateways. It runs on Linux, Android, macOS, FreeBSD and Windows, and is available through F-Droid and Homebrew.

Configuration uses the swanctl command and the vici interface. You define connections in swanctl.conf and load credentials and connections into the charon daemon. A bundled pki tool generates keys and certificates. Documented scenarios include site-to-site tunnels between two gateways and host-to-host links. Setting start_action to trap brings a tunnel up when matching traffic appears.

The older ipsec command with the stroke interface is deprecated. The project dates to 2010 and has had 5 releases in the last year. It is licensed GPL-2.0-or-later. It can stand in for commercial VPN gateways and clients built on IPsec.

Who it's for

Network admins linking offices with site-to-site tunnels

It supports certificate-based gateway tunnels between subnets with documented examples.

Skip if: You want a simple point-and-click VPN; a WireGuard-based tool is easier.

Android and Linux users connecting to an IKEv2 server

A client is available through F-Droid, and Linux uses the same toolset.

Skip if: You only need a basic consumer VPN subscription.

The problem it solves

Connecting networks or remote users over IPsec often means relying on a vendor appliance or client. strongSwan provides open source IPsec and IKEv2 for both ends of the tunnel.

Strengths

  • Runs on Linux, Android, macOS, FreeBSD and Windows
  • Certificate authentication with a bundled pki tool
  • Supports site-to-site and host-to-host setups
  • Modern vici and swanctl configuration
  • Active: 5 releases in the last year

Trade-offs

  • Configuration is text-based and has a learning curve
  • Certificate setup takes planning
  • Legacy ipsec and stroke interface is deprecated
  • GPL-2.0-or-later obligations apply if you redistribute

Self-host strongSwan VPN Client

Self-hostable
Yes

Quick start

swanctl --load-creds
swanctl --load-conns

From the project's own install instructions. Check the docs for production settings.

Frequently asked questions

Is strongSwan free?

Yes. It is open source under GPL-2.0-or-later.

Can I self-host a VPN gateway with it?

Yes. It works as a gateway and as a client.

Which platforms does it support?

Linux, Android, FreeBSD, macOS and Windows.

How do I load a configuration?

Run swanctl --load-creds for certificates and keys, then swanctl --load-conns for connections.

Similar tools in VPNs and proxies

Outline Server

VPNs and proxies

Self-hosted Shadowsocks proxy server with a REST API for managing access keys

6.3k 878 4 days ago Slowing Apache-2.0

edgevpn

VPNs and proxies

Peer-to-peer VPN, TCP reverse proxy and file transfer joined by a shared token

2.1k 214 5 days ago Thriving Apache-2.0

weron

VPNs and proxies

WebRTC overlay VPN for reaching nodes behind NAT without opening ports

2.1k 81 2 years ago Dormant AGPL-3.0

gluetun

VPNs and proxies

16k 658 3 days ago Active MIT