ipsec
control interface for strongSwan/Libreswan IPsec VPN implementations
TLDR
Start IPsec service
SYNOPSIS
ipsec command [options]
DESCRIPTION
ipsec is the control interface for strongSwan/Libreswan IPsec VPN implementations. It manages IKE (Internet Key Exchange) connections for encrypted network tunnels.
IPsec provides network-layer encryption for VPNs, supporting site-to-site tunnels and remote access. Configuration is typically in /etc/ipsec.conf and /etc/ipsec.secrets.
PARAMETERS
start
Start IPsec daemon.stop
Stop IPsec daemon.restart
Restart daemon.status
Show active connections.statusall
Show detailed status.reload
Reload configuration.up connection
Start connection.down connection
Stop connection.listcerts
List certificates.listall
List all information.stroke command
Send command to daemon.
CONFIGURATION
conn myvpn
left=%defaultroute
leftid=@myserver
right=remote.example.com
rightid=@remote
auto=start
CAVEATS
Requires kernel IPsec support. Certificate management can be complex. Firewall rules needed for IKE (UDP 500, 4500). Debug with ipsec statusall.
HISTORY
IPsec was standardized by IETF in the 1990s. strongSwan (forked from FreeS/WAN in 2005) and Libreswan are the main Linux implementations, providing the ipsec command interface.
SEE ALSO
strongswan(8), swanctl(8), ip-xfrm(8)
