strongimcv (8) Linux Manual Page
ipsec – invoke IPsec utilities
Synopsis
command [arguments] [options]
Description
The ipsec utility invokes any of several utilities involved in controlling and monitoring the IPsec encryption/authentication system, running the specified command with the specified arguments and options as if it had been invoked directly. This largely eliminates possible name collisions with other software, and also permits some centralized services.
All the commands described in this manual page are built-in and are used to control and monitor IPsec connections as well as the IKE daemon.
For other commands ipsec supplies the invoked command with a suitable PATH environment variable, and also provides the environment variables listed under ENVIRONMENT.
Control Commands
start [starter options]- calls
starterwhich in turn parses ipsec.conf and starts the IKE daemon charon. update- sends a HUP signal to
starterwhich in turn determines any changes in ipsec.conf and updates the configuration on the running IKE daemon charon. reload- sends a USR1 signal to
starterwhich in turn reloads the whole configuration of the running IKE daemon charon based on the actual ipsec.conf. restart- is equivalent to
stopfollowed bystartafter a guard of 2 seconds. stop- terminates all IPsec connections and stops the IKE daemon charon by sending a TERM signal to
starter. 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.
downname{*}- terminates all IKEv1 Quick Mode and IKEv2 CHILD SA instances of connection name.
downname[n]- terminates IKE SA instance n of connection name.
downname[*]- terminates all IKE SA instances of connection name.
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.
unroutename- remove the IPsec policy in the kernel for connection name.
status [name]- returns concise status information either on connection name or if the argument is lacking, on all connections.
statusall [name]- returns detailed status information either on connection name or if the argument is lacking, on all connections.
List Commands
listalgs- returns a list supported cryptographic algorithms usable for IKE, and their corresponding plugin.
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/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/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/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/ipsec.d/acerts/ directory.
listgroups [–utc]- returns a list of groups that are used to define user authorization profiles.
listcainfos [–utc]- returns certification authority information (CRL distribution points, OCSP URIs, LDAP servers) that were defined by
casections in ipsec.conf. listcrls [–utc]- returns a list of Certificate Revocation Lists (CRLs) that were either loaded by the IKE daemon from the /etc/ipsec.d/crls directory 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.
listcounters [name]- returns a list of global or connection specific IKE counter values collected since daemon startup.
listall [–utc]- returns all information generated by the list commands above. Each list command can be called with the
–utcoption which displays all dates in UTC instead of local time.
Reread Commands
rereadsecrets- flushes and rereads all secrets defined in ipsec.secrets.
rereadcacerts- reads all certificate files contained in the /etc/ipsec.d/cacerts directory and adds them to the list of Certification Authority (CA) certificates.
rereadaacerts- reads all certificate files contained in the /etc/ipsec.d/aacerts directory and adds them to the list of Authorization Authority (AA) certificates.
rereadocspcerts- reads all certificate files contained in the /etc/ipsec.d/ocspcerts/ directory and adds them to the list of OCSP signer certificates.
rereadacerts- reads all certificate files contained in the /etc/ipsec.d/acerts/ directory and adds them to the list of attribute certificates.
rereadcrls- reads all Certificate Revocation Lists (CRLs) contained in the /etc/ipsec.d/crls/ directory and adds them to the list of CRLs.
rereadall- executes all reread commands listed above.
Reset Commands
resetcounters [name]- resets global or connection specific counters.
Purge Commands
purgecerts- purges all cached certificates.
purgecrl- 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 the
ipseccommand. –version- returns the version in the form of
Linux strongSwan U<strongSwan userland version>/K<Linux kernel version>if strongSwan uses the native NETKEY IPsec stack of the Linux kernel it is running on. –versioncode- returns the version number in the form of
U<strongSwan userland version>/K<Linux kernel version>if strongSwan uses the native NETKEY IPsec stack of the Linux kernel it is running on. –copyright- returns the copyright information.
–directory- returns the LIBEXECDIR directory as defined by the configure options.
–confdir- returns the SYSCONFDIR directory as defined by the configure options.
–piddir- returns the PIDDIR directory as defined by the configure options.
Files
/usr/libexec/ipsec
Environment
When calling other commands the ipsec command supplies the following environment variables.
IPSEC_DIR directory containing ipsec programs and utilities IPSEC_BINDIR directory containingpkicommand IPSEC_SBINDIR directory containingipseccommand IPSEC_CONFDIR directory containing configuration files IPSEC_PIDDIR directory containing PID/socket files IPSEC_SCRIPT name of the ipsec script IPSEC_NAME name of ipsec distribution IPSEC_VERSION version numer of ipsec userland and kernel IPSEC_STARTER_PID PID file for ipsec starter IPSEC_CHARON_PID PID file for IKE keying daemon
See Also
ipsec.conf(5), ipsec.secrets(5)
History
Originally written for the FreeS/WAN project by Henry Spencer. Updated and extended for the strongSwan project <http://www.strongswan.org> by Tobias Brunner and Andreas Steffen.
