ipsec: Updated ipsec(8)

This commit is contained in:
Tobias Brunner
2013-10-29 17:22:45 +01:00
parent 71687f4fad
commit 19046552b6
2 changed files with 126 additions and 97 deletions
+1
View File
@@ -9,6 +9,7 @@ _ipsec.8 : _ipsec.8.in
-e "s:@IPSEC_VERSION@:$(PACKAGE_VERSION):" \ -e "s:@IPSEC_VERSION@:$(PACKAGE_VERSION):" \
-e "s:@IPSEC_SCRIPT@:$(ipsec_script):g" \ -e "s:@IPSEC_SCRIPT@:$(ipsec_script):g" \
-e "s:@IPSEC_SCRIPT_UPPER@:$(ipsec_script_upper):g" \ -e "s:@IPSEC_SCRIPT_UPPER@:$(ipsec_script_upper):g" \
-e "s:@IPSEC_DIR@:$(ipsecdir):" \
$(srcdir)/$@.in > $@ $(srcdir)/$@.in > $@
_ipsec : _ipsec.in _ipsec : _ipsec.in
+125 -97
View File
@@ -1,11 +1,19 @@
.TH @IPSEC_SCRIPT_UPPER@ 8 "2013-07-22" "@IPSEC_VERSION@" "strongSwan" .TH @IPSEC_SCRIPT_UPPER@ 8 "2013-10-29" "@IPSEC_VERSION@" "strongSwan"
.
.SH NAME .SH NAME
.
@IPSEC_SCRIPT@ \- invoke IPsec utilities @IPSEC_SCRIPT@ \- invoke IPsec utilities
.
.SH SYNOPSIS .SH SYNOPSIS
.B @IPSEC_SCRIPT@ .
\fIcommand\fP [ \fIarguments\fP ] [ \fIoptions\fP ] .SY @IPSEC_SCRIPT@
.PP .I command
.RI [ arguments ]
.RI [ options ]
.YS
.
.SH DESCRIPTION .SH DESCRIPTION
.
The The
.B @IPSEC_SCRIPT@ .B @IPSEC_SCRIPT@
utility invokes any of several utilities involved in controlling and monitoring utility invokes any of several utilities involved in controlling and monitoring
@@ -13,44 +21,40 @@ the IPsec encryption/authentication system, running the specified \fIcommand\fP
with the specified \fIarguments\fP and \fIoptions\fP as if it had been invoked with the specified \fIarguments\fP and \fIoptions\fP as if it had been invoked
directly. This largely eliminates possible name collisions with other software, directly. This largely eliminates possible name collisions with other software,
and also permits some centralized services. and also permits some centralized services.
.PP .P
All the commands described in this manual page are built-in and are used to 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 daemons. control and monitor IPsec connections as well as the IKE daemon.
.PP .P
For other commands For other commands
.I @IPSEC_SCRIPT@ .I @IPSEC_SCRIPT@
supplies the invoked supplies the invoked
.I command .I command
with a suitable PATH environment variable, with a suitable PATH environment variable,
and also provides IPSEC_DIR, and also provides the environment variables listed under
IPSEC_CONFS, and IPSEC_VERSION environment variables, .IR ENVIRONMENT .
containing respectively .
the full pathname of the directory where the IPsec utilities are stored,
the full pathname of the directory where the configuration files live,
and the IPsec version number.
.PP
.SS CONTROL COMMANDS .SS CONTROL COMMANDS
.
.TP .TP
.B "start [ starter options ]" .BI "start [" "starter options" ]
calls calls
.BR "starter" .B "starter"
which in turn parses \fIipsec.conf\fR and starts the IKEv1/IKEv2 daemon which in turn parses \fIipsec.conf\fR and starts the IKE daemon \fIcharon\fR.
\fIcharon\fR. .
.PP
.TP .TP
.B "update" .B "update"
sends a \fIHUP\fR signal to sends a \fIHUP\fR signal to
.BR "starter" .BR "starter"
which in turn determines any changes in \fIipsec.conf\fR which in turn determines any changes in \fIipsec.conf\fR
and updates the configuration on the running IKE daemon \fIcharon\fR. and updates the configuration on the running IKE daemon \fIcharon\fR.
.PP .
.TP .TP
.B "reload" .B "reload"
sends a \fIUSR1\fR signal to sends a \fIUSR1\fR signal to
.BR "starter" .BR "starter"
which in turn reloads the whole configuration on the running IKE daemon which in turn reloads the whole configuration of the running IKE daemon
\fIcharon\fR based on the actual \fIipsec.conf\fR. \fIcharon\fR based on the actual \fIipsec.conf\fR.
.PP .
.TP .TP
.B "restart" .B "restart"
is equivalent to is equivalent to
@@ -58,224 +62,249 @@ is equivalent to
followed by followed by
.B "start" .B "start"
after a guard of 2 seconds. after a guard of 2 seconds.
.PP .
.TP .TP
.B "stop" .B "stop"
terminates all IPsec connections and stops the IKE daemon \fIcharon\fR terminates all IPsec connections and stops the IKE daemon \fIcharon\fR
by sending a \fITERM\fR signal to by sending a \fITERM\fR signal to
.BR "starter". .BR "starter".
.PP .
.TP .TP
.B "up \fIname\fP" .BI "up " name
tells the IKE daemon to start up connection \fIname\fP. tells the IKE daemon to start up connection \fIname\fP.
.PP .
.TP .TP
.B "down \fIname\fP" .BI "down " name
tells the IKE daemon to terminate connection \fIname\fP. tells the IKE daemon to terminate connection \fIname\fP.
.PP .
.TP .TP
.B "down \fIname{n}\fP" .BI "down " name{n}
terminates IKEv1 Quick Mode and IKEv2 CHILD SA instance \fIn\fP of terminates IKEv1 Quick Mode and IKEv2 CHILD SA instance \fIn\fP of
connection \fIname\fP. connection \fIname\fP.
.PP .
.TP .TP
.B "down \fIname{*}\fP" .BI "down " name{*}
terminates all IKEv1 Quick Mode and IKEv2 CHILD SA instances of connection terminates all IKEv1 Quick Mode and IKEv2 CHILD SA instances of connection
\fIname\fP. \fIname\fP.
.PP .
.TP .TP
.B "down \fIname[n]\fP" .BI "down " name[n]
terminates IKE SA instance \fIn\fP of connection \fIname\fP. terminates IKE SA instance \fIn\fP of connection \fIname\fP.
.PP .
.TP .TP
.B "down \fIname[*]\fP" .BI "down " name[*]
terminates all IKE SA instances of connection \fIname\fP. terminates all IKE SA instances of connection \fIname\fP.
.PP .
.TP .TP
.B "route \fIname\fP" .BI "route " name
tells the IKE daemon to insert an IPsec policy in the kernel tells the IKE daemon to insert an IPsec policy in the kernel
for connection \fIname\fP. The first payload packet matching the IPsec policy for connection \fIname\fP. The first payload packet matching the IPsec policy
will automatically trigger an IKE connection setup. will automatically trigger an IKE connection setup.
.PP .
.TP .TP
.B "unroute \fIname\fP" .BI "unroute " name
remove the IPsec policy in the kernel for connection \fIname\fP. remove the IPsec policy in the kernel for connection \fIname\fP.
.PP .
.TP .TP
.B "status [ \fIname\fP ]" .BI "status [" name ]
returns concise status information either on connection returns concise status information either on connection
\fIname\fP or if the argument is lacking, on all connections. \fIname\fP or if the argument is lacking, on all connections.
.PP .
.TP .TP
.B "statusall [ \fIname\fP ]" .BI "statusall [" name ]
returns detailed status information either on connection returns detailed status information either on connection
\fIname\fP or if the argument is lacking, on all connections. \fIname\fP or if the argument is lacking, on all connections.
.PP .
.SS LIST COMMANDS .SS LIST COMMANDS
.
.TP .TP
.B "listalgs" .B "listalgs"
returns a list supported cryptographic algorithms usable for IKE, and their returns a list supported cryptographic algorithms usable for IKE, and their
corresponding plugin. corresponding plugin.
.PP .
.TP .TP
.B "listpubkeys [ --utc ]" .BI "listpubkeys [" --utc ]
returns a list of RSA public keys that were either loaded in raw key format returns a list of RSA public keys that were either loaded in raw key format
or extracted from X.509 and|or OpenPGP certificates. or extracted from X.509 and|or OpenPGP certificates.
.PP .
.TP .TP
.B "listcerts [ --utc ]" .BI "listcerts [" --utc ]
returns a list of X.509 and|or OpenPGP certificates that were either loaded 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. locally by the IKE daemon or received via the IKE protocol.
.PP .
.TP .TP
.B "listcacerts [ --utc ]" .BI "listcacerts [" --utc ]
returns a list of X.509 Certification Authority (CA) certificates that were returns a list of X.509 Certification Authority (CA) certificates that were
loaded locally by the IKE daemon from the \fI/etc/ipsec.d/cacerts/\fP loaded locally by the IKE daemon from the \fI/etc/ipsec.d/cacerts/\fP
directory or received via the IKE protocol. directory or received via the IKE protocol.
.PP .
.TP .TP
.B "listaacerts [ --utc ]" .BI "listaacerts [" --utc ]
returns a list of X.509 Authorization Authority (AA) certificates that were returns a list of X.509 Authorization Authority (AA) certificates that were
loaded locally by the IKE daemon from the \fI/etc/ipsec.d/aacerts/\fP loaded locally by the IKE daemon from the \fI/etc/ipsec.d/aacerts/\fP
directory. directory.
.PP .
.TP .TP
.B "listocspcerts [ --utc ]" .BI "listocspcerts [" --utc ]
returns a list of X.509 OCSP Signer certificates that were either loaded returns a list of X.509 OCSP Signer certificates that were either loaded
locally by the IKE daemon from the \fI/etc/ipsec.d/ocspcerts/\fP locally by the IKE daemon from the \fI/etc/ipsec.d/ocspcerts/\fP
directory or were sent by an OCSP server. directory or were sent by an OCSP server.
.PP .
.TP .TP
.B "listacerts [ --utc ]" .BI "listacerts [" --utc ]
returns a list of X.509 Attribute certificates that were loaded locally by returns a list of X.509 Attribute certificates that were loaded locally by
the IKE daemon from the \fI/etc/ipsec.d/acerts/\fP directory. the IKE daemon from the \fI/etc/ipsec.d/acerts/\fP directory.
.PP .
.TP .TP
.B "listgroups [ --utc ]" .BI "listgroups [" --utc ]
returns a list of groups that are used to define user authorization profiles. returns a list of groups that are used to define user authorization profiles.
.PP .
.TP .TP
.B "listcainfos [ --utc ]" .BI "listcainfos [" --utc ]
returns certification authority information (CRL distribution points, OCSP URIs, returns certification authority information (CRL distribution points, OCSP URIs,
LDAP servers) that were defined by LDAP servers) that were defined by
.BR ca .BR ca
sections in \fIipsec.conf\fP. sections in \fIipsec.conf\fP.
.PP .
.TP .TP
.B "listcrls [ --utc ]" .BI "listcrls [" --utc ]
returns a list of Certificate Revocation Lists (CRLs) that were either loaded returns a list of Certificate Revocation Lists (CRLs) that were either loaded
by the IKE daemon from the \fI/etc/ipsec.d/crls\fP directory or fetched from by the IKE daemon from the \fI/etc/ipsec.d/crls\fP directory or fetched from
an HTTP- or LDAP-based CRL distribution point. an HTTP- or LDAP-based CRL distribution point.
.PP .
.TP .TP
.B "listocsp [ --utc ]" .BI "listocsp [" --utc ]
returns revocation information fetched from OCSP servers. returns revocation information fetched from OCSP servers.
.PP .
.TP .TP
.B "listcounters" .BI "listplugins"
show IKE counter values collected since daemon startup. returns a list of all loaded plugin features.
.PP .
.TP .TP
.B "listall [ --utc ]" .BI "listcounters [" name ]
returns a list of global or connection specific IKE counter values
collected since daemon startup.
.
.TP
.BI "listall [" --utc ]
returns all information generated by the list commands above. Each list command returns all information generated by the list commands above. Each list command
can be called with the can be called with the
\fB\-\-utc\fP \fB\-\-utc\fP
option which displays all dates in UTC instead of local time. option which displays all dates in UTC instead of local time.
.PP .
.SS REREAD COMMANDS .SS REREAD COMMANDS
.
.TP .TP
.B "rereadsecrets" .B "rereadsecrets"
flushes and rereads all secrets defined in \fIipsec.secrets\fP. flushes and rereads all secrets defined in \fIipsec.secrets\fP.
.PP .
.TP .TP
.B "rereadcacerts" .B "rereadcacerts"
reads all certificate files contained in the \fI/etc/ipsec.d/cacerts\fP reads all certificate files contained in the \fI/etc/ipsec.d/cacerts\fP
directory and adds them to the list of Certification Authority (CA) directory and adds them to the list of Certification Authority (CA)
certificates. certificates.
.PP .
.TP .TP
.B "rereadaacerts" .B "rereadaacerts"
reads all certificate files contained in the \fI/etc/ipsec.d/aacerts\fP reads all certificate files contained in the \fI/etc/ipsec.d/aacerts\fP
directory and adds them to the list of Authorization Authority (AA) directory and adds them to the list of Authorization Authority (AA)
certificates. certificates.
.PP .
.TP .TP
.B "rereadocspcerts" .B "rereadocspcerts"
reads all certificate files contained in the \fI/etc/ipsec.d/ocspcerts/\fP reads all certificate files contained in the \fI/etc/ipsec.d/ocspcerts/\fP
directory and adds them to the list of OCSP signer certificates. directory and adds them to the list of OCSP signer certificates.
.PP .
.TP .TP
.B "rereadacerts" .B "rereadacerts"
reads all certificate files contained in the \fI/etc/ipsec.d/acerts/\fP reads all certificate files contained in the \fI/etc/ipsec.d/acerts/\fP
directory and adds them to the list of attribute certificates. directory and adds them to the list of attribute certificates.
.PP .
.TP .TP
.B "rereadcrls" .B "rereadcrls"
reads all Certificate Revocation Lists (CRLs) contained in the reads all Certificate Revocation Lists (CRLs) contained in the
\fI/etc/ipsec.d/crls/\fP directory and adds them to the list of CRLs. \fI/etc/ipsec.d/crls/\fP directory and adds them to the list of CRLs.
.PP .
.TP .TP
.B "rereadall" .B "rereadall"
executes all reread commands listed above. executes all reread commands listed above.
.PP .
.SS RESET COMMANDS
.
.TP
.BI "resetcounters [" name ]
resets global or connection specific counters.
.
.SS PURGE COMMANDS .SS PURGE COMMANDS
.
.TP
.B "purgecerts"
purges all cached certificates.
.
.TP
.B "purgecrl"
purges all cached CRLs.
.
.TP .TP
.B "purgeike" .B "purgeike"
purges IKE SAs that don't have a Quick Mode or CHILD SA. purges IKE SAs that don't have a Quick Mode or CHILD SA.
.PP .
.TP .TP
.B "purgeocsp" .B "purgeocsp"
purges all cached OCSP information records. purges all cached OCSP information records.
.PP .
.SS INFO COMMANDS .SS INFO COMMANDS
.
.TP .TP
.B "\-\-help" .B "\-\-help"
returns the usage information for the returns the usage information for the
.B @IPSEC_SCRIPT@ .B @IPSEC_SCRIPT@
command. command.
.PP .
.TP .TP
.B "\-\-version" .B "\-\-version"
returns the version in the form of returns the version in the form of
.B Linux strongSwan U<strongSwan userland version>/K<Linux kernel version> .B Linux strongSwan U<strongSwan userland version>/K<Linux kernel version>
if strongSwan uses the native NETKEY IPsec stack of the Linux kernel it is if strongSwan uses the native NETKEY IPsec stack of the Linux kernel it is
running on. running on.
.PP .
.TP .TP
.B "\-\-versioncode" .B "\-\-versioncode"
returns the version number in the form of returns the version number in the form of
.B U<strongSwan userland version>/K<Linux kernel version> .B U<strongSwan userland version>/K<Linux kernel version>
if strongSwan uses the native NETKEY IPsec stack of the Linux kernel it is if strongSwan uses the native NETKEY IPsec stack of the Linux kernel it is
running on. running on.
.PP .
.TP .TP
.B "\-\-copyright" .B "\-\-copyright"
returns the copyright information. returns the copyright information.
.PP .
.TP .TP
.B "\-\-directory" .B "\-\-directory"
returns the \fILIBEXECDIR\fP directory as defined by the configure options. returns the \fILIBEXECDIR\fP directory as defined by the configure options.
.PP .
.TP .TP
.B "\-\-confdir" .B "\-\-confdir"
returns the \fISYSCONFDIR\fP directory as defined by the configure options. returns the \fISYSCONFDIR\fP directory as defined by the configure options.
.PP .
.TP .TP
.B "\-\-piddir" .B "\-\-piddir"
returns the \fIPIDDIR\fP directory as defined by the configure options. returns the \fIPIDDIR\fP directory as defined by the configure options.
.
.SH FILES .SH FILES
/usr/local/lib/ipsec usual utilities directory .
@IPSEC_DIR@ utilities directory
.
.SH ENVIRONMENT .SH ENVIRONMENT
.PP .
The following environment variables control where strongSwan finds its When calling other commands the
components.
The
.B @IPSEC_SCRIPT@ .B @IPSEC_SCRIPT@
command sets them if they are not already set. command supplies the following environment variables.
.nf .nf
.na .na
IPSEC_DIR directory containing ipsec programs and utilities IPSEC_DIR directory containing ipsec programs and utilities
IPSEC_BINDIR directory containing \fBpki\fP command
IPSEC_SBINDIR directory containing \fBipsec\fP command IPSEC_SBINDIR directory containing \fBipsec\fP command
IPSEC_CONFDIR directory containing configuration files IPSEC_CONFDIR directory containing configuration files
IPSEC_PIDDIR directory containing PID/socket files IPSEC_PIDDIR directory containing PID/socket files
@@ -286,13 +315,12 @@ IPSEC_STARTER_PID PID file for ipsec starter
IPSEC_CHARON_PID PID file for IKE keying daemon IPSEC_CHARON_PID PID file for IKE keying daemon
.ad .ad
.fi .fi
.
.SH SEE ALSO .SH SEE ALSO
.hy 0 .
.na .BR ipsec.conf (5),
ipsec.conf(5), ipsec.secrets(5) .BR ipsec.secrets (5)
.ad .
.hy
.PP
.SH HISTORY .SH HISTORY
Originally written for the FreeS/WAN project by Henry Spencer. Originally written for the FreeS/WAN project by Henry Spencer.
Updated and extended for the strongSwan project <http://www.strongswan.org> by Updated and extended for the strongSwan project <http://www.strongswan.org> by