Free software implementation of the IPsec VPN protocol and the Internet Key Exchange (IKE)
open sourceGPL-2.0-or-laterself-hostablefree
Libreswan is an IPsec VPN implementation: its IKE daemon negotiates IKEv1 and IKEv2 and installs the security associations in the Linux kernel's built-in XFRM IPsec stack, and it also runs on FreeBSD, NetBSD and OpenBSD. It keeps private keys and X.509 certificates in an NSS database, supports NAT traversal and most IPsec extensions, and is configured in /etc/ipsec.conf and ipsec.secrets, with the ipsec command for starting, status and importing certificates. Its documented setups cover host-to-host and subnet-to-subnet tunnels, IKEv2 remote access, route-based VPNs, opportunistic IPsec and connecting to Cisco ASA, AWS and Azure. Forked from Openswan 2.6.38, which came from FreeS/WAN (founded 1997), it ships in Fedora, RHEL and Arch Linux and is GPLv2 or later.
Ways to install
Package managers
Problems it solves
- connect our office network to an AWS or Azure VPN gateway with IPsec from a Linux server
- set up an IKEv2 remote-access VPN on Fedora or RHEL with packages the distribution already ships
- link two sites' subnets with an IPsec tunnel between Linux gateways
- encrypt all traffic between two servers with a host-to-host IPsec connection
- connect a Linux machine to a Cisco ASA VPN as an IPsec client
- encrypt traffic to any host that supports IPsec automatically, without configuring each tunnel
- keep IPsec VPN certificates and private keys in an NSS database or a hardware token
- a route-based IPsec VPN with a virtual interface on Linux
- an IPsec VPN that fails over between instances in AWS
- move an old Openswan IPsec configuration to a maintained IKE daemon
Features
- IKEv1 and IKEv2
- uses the Linux kernel's XFRM IPsec stack
- NSS crypto library and NSS database for keys and X.509 certificates, including hardware tokens
- NAT traversal
- host-to-host, subnet-to-subnet, remote-access and route-based VPNs
- opportunistic IPsec, including with Let's Encrypt certificates
- ipsec command for start, stop, status and certificate import
- integration with systemd, upstart, sysvinit and openrc
- SELinux labeled IPsec
Capabilities
| Has a command line tool | plan not known |
|---|
Alternatives
The same job
These do what Libreswan does.
- strongSwan Open-source, modular and portable IPsec-based VPN solution
- WireGuard Fast, modern, secure VPN tunnel
- OpenVPN Open source VPN daemon
- CloudConnexa Cloud-delivered VPN and zero trust network access from OpenVPN
- Pritunl Enterprise Distributed OpenVPN WireGuard and IPsec Server
- OpenVPN Access Server Fast and Easy Zero-Trust VPN Fully in Your Control
