STRONGSWAN(8)
β¨ STRONGSWAN(8) β¨
okay so bestie, welcome to strongswan π the manual page. yes the whole page is literally named after the command. we're doing this. grab a boba, we're getting into IPsec. π§
πΈ NAME πΈ
strongswan β invoke IPsec utilities. that's it. that's the vibe. she's the front door to a whole squad of little utility besties π
π SYNOPSIS π
strongswan command [arguments] [options]
π DESCRIPTION π
so the strongswan utility is like, the group chat admin of the IPsec world. she invokes any of several utilities involved in controlling and monitoring the IPsec encryption/authentication system, running the command you specify with the arguments and options you specify, as if it had been invoked directly. iconique behaviour honestly.
why does this matter? two reasons, and both slay:
- it largely eliminates possible name collisions with other software (no more drama with some random
startbinary from a different package π) - it also permits some centralized services
every command described on this page is built-in and is used to control and monitor IPsec connections as well as the IKE daemon. she's not calling out to random stuff for these β she got it.
for other commands, strongswan supplies the invoked command with a suitable PATH environment variable, and also provides the environment variables listed under ENVIRONMENT. so the command she launches isn't lost in the woods, she's got a whole care package. π«Ά
π CONTROL COMMANDS π
start [starter options]β callsstarter, which in turn parsesipsec.confand starts the IKE daemoncharon. the classic "wake up babe, we're going online" move β¨updateβ sends aHUPsignal tostarter, which in turn determines any changes inipsec.confand updates the configuration on the running IKE daemoncharon. lowkey the chillest refresh.reloadβ sends aUSR1signal tostarter, which in turn reloads the whole configuration of the running IKE daemoncharonbased on the actualipsec.conf. this is the full wardrobe change, not just a new lip gloss.restartβ is equivalent tostopfollowed bystartafter a guard of 2 seconds. she takes a lil nap before getting back up, it's called self care πstopβ terminates all IPsec connections and stops the IKE daemoncharonby sending aTERMsignal tostarter. bye bestie πupname β tells the IKE daemon to start up connection name.downname β tells the IKE daemon to terminate connection name.downname{n}β terminates IKEv1 Quick Mode and IKEv2 CHILD SA instance n of connection name. surgical. precise. we love a targeted takedown.downname{*}β terminates all IKEv1 Quick Mode and IKEv2 CHILD SA instances of connection name. the group version.downname[n]β terminates IKE SA instance n of connection name.downname[*]β terminates all IKE SA instances of connection name. full send. π₯down-srcip<start> [<end>] β terminates all IKE SA instances with clients having virtual IPs in the range start-end. if your IP is in the range, you're getting got. no cap.routename β tells the IKE daemon to insert an IPsec policy in the kernel for connection name. the first payload packet matching the IPsec policy will automatically trigger an IKE connection setup. so she just... leaves the trap set and walks away. main character energy πunroutename β remove the IPsec policy in the kernel for connection name. trap disarmed.status [name]β returns concise status information either on connection name or, if the argument is lacking, on all connections. she's giving you the summary. the tl;dr.statusall [name]β returns detailed status information either on connection name or, if the argument is lacking, on all connections. she's giving you the whole essay, with citations.
π¦ LIST COMMANDS π¦
these ones are all about receipts and inventory. she keeps track of everything, fr fr.
leases [<poolname> [<address>]]β returns the status of all or the selected IP address pool (or even a single virtual IP address). who's holding which IP, we see you πlistalgsβ returns a list of supported cryptographic algorithms usable for IKE, and their corresponding plugin. the algorithm menu, and which plugin is cooking each one.listpubkeys [--utc]β returns a list of RSA public keys that were either loaded in raw key format or extracted from X.509 and|or OpenPGP certificates.listcerts [--utc]β returns a list of X.509 and|or OpenPGP certificates that were either loaded locally by the IKE daemon or received via the IKE protocol.listcacerts [--utc]β returns a list of X.509 Certification Authority (CA) certificates that were loaded locally by the IKE daemon from the/etc/strongswan/ipsec.d/cacerts/directory or received via the IKE protocol.listaacerts [--utc]β returns a list of X.509 Authorization Authority (AA) certificates that were loaded locally by the IKE daemon from the/etc/strongswan/ipsec.d/aacerts/directory.listocspcerts [--utc]β returns a list of X.509 OCSP Signer certificates that were either loaded locally by the IKE daemon from the/etc/strongswan/ipsec.d/ocspcerts/directory or were sent by an OCSP server.listacerts [--utc]β returns a list of X.509 Attribute certificates that were loaded locally by the IKE daemon from the/etc/strongswan/ipsec.d/acerts/directory.listgroups [--utc]β returns a list of groups that are used to define user authorization profiles. yes bestie, groups. like a friend group but for permissions.listcainfos [--utc]β returns certification authority information (CRL distribution points, OCSP URIs, LDAP servers) that were defined bycasections inipsec.conf.listcrls [--utc]β returns a list of Certificate Revocation Lists (CRLs) that were either loaded by the IKE daemon from the/etc/strongswan/ipsec.d/crlsdirectory or fetched from an HTTP- or LDAP-based CRL distribution point.listocsp [--utc]β returns revocation information fetched from OCSP servers.listpluginsβ returns a list of all loaded plugin features. the whole plugin roster, all of them clocked in π«‘listcounters [name]β returns a list of global or connection specific IKE counter values collected since daemon startup. numbers! going! up!listall [--utc]β returns all information generated by the list commands above.
β¨ little note bestie: each list command can be called with the --utc option, which displays all dates in UTC instead of local time. pick your timezone king π
π REREAD COMMANDS π
when you've changed files on disk and you need the daemon to actually notice. re-reading is self care.
rereadsecretsβ flushes and rereads all secrets defined inipsec.secrets. out with the old, in with the new π€«rereadcacertsβ removes previously loaded CA certificates, reads all certificate files contained in the/etc/strongswan/ipsec.d/cacertsdirectory and adds them to the list of Certification Authority (CA) certificates.
heads up: this does not affect certificates explicitly defined in aipsec.conf(5)casection, which may be separately updated using theupdatecommand. different lane, different command, iykyk.
rereadaacertsβ removes previously loaded AA certificates, reads all certificate files contained in the/etc/strongswan/ipsec.d/aacertsdirectory and adds them to the list of Authorization Authority (AA) certificates.rereadocspcertsβ reads all certificate files contained in the/etc/strongswan/ipsec.d/ocspcerts/directory and adds them to the list of OCSP signer certificates.rereadacertsβ reads all certificate files contained in the/etc/strongswan/ipsec.d/acerts/directory and adds them to the list of attribute certificates.rereadcrlsβ reads all Certificate Revocation Lists (CRLs) contained in the/etc/strongswan/ipsec.d/crls/directory and adds them to the list of CRLs.rereadallβ executes all reread commands listed above. the "do everything" button. she ate. π₯
π RESET COMMANDS π
resetcounters [name]β resets global or connection specific counters. fresh start, clean slate, new semester β¨
π§ PURGE COMMANDS π§
the "we're not keeping this" collection. be careful, she's decisive.
purgecertsβ purges all cached certificates.purgecrlsβ purges all cached CRLs.purgeikeβ purges IKE SAs that don't have a Quick Mode or CHILD SA.purgeocspβ purges all cached OCSP information records.
β INFO COMMANDS β
--helpβ returns the usage information for thestrongswancommand. when you're lost, ask her, she'll point.--versionβ returns the version in the form ofstrongSwan U<strongSwan userland version>/K<kernel version>.--versioncodeβ returns the version number in the form ofU<strongSwan userland version>/K<kernel version>.--copyrightβ returns the copyright information.--directoryβ returns theLIBEXECDIRdirectory as defined by the configure options.--confdirβ returns theSYSCONFDIRdirectory as defined by the configure options.--piddirβ returns thePIDDIRdirectory as defined by the configure options.
π FILES π
/usr/libexec/strongswanβ utilities directory. this is where the utility besties live π
π ENVIRONMENT π
when calling other commands, the strongswan command supplies the following environment variables. she's packing your bag for you, you're welcome π«Ά
IPSEC_DIRβ directory containingipsecprograms and utilitiesIPSEC_BINDIRβ directory containingpkicommandIPSEC_SBINDIRβ directory containingipseccommandIPSEC_CONFDIRβ directory containing configuration filesIPSEC_PIDDIRβ directory containing PID/socket filesIPSEC_SCRIPTβ name of theipsecscriptIPSEC_NAMEβ name ofipsecdistributionIPSEC_VERSIONβ version number ofipsecuserland and kernelIPSEC_STARTER_PIDβ PID file foripsecstarterIPSEC_CHARON_PIDβ PID file for IKE keying daemon
π SEE ALSO π
ipsec.conf(5), ipsec.secrets(5) β go read these too bestie, they're the supporting cast π
π HISTORY π
originally written for the FreeS/WAN project by Henry Spencer. then updated and extended for the strongSwan project <http://www.strongswan.org> by Tobias Brunner and Andreas Steffen. a whole glow-up arc, we love to see it π
and that's the page!! this was strongSwan version 6.0.7, dated 2013-10-29 π¦ go forth and tunnel responsibly, bestie. mwah πβ¨
π¦ where this page comes from
- fedora 43: strongswan 6.0.7-2.fc43 Β· GPL-2.0-or-later
- fedora 44: strongswan 6.0.7-4.fc44 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms