Updated and corrected the ipsec.conf(5) manual page.
This commit is contained in:
+163
-126
@@ -1,4 +1,4 @@
|
|||||||
.TH IPSEC.CONF 5 "27 Jun 2007"
|
.TH IPSEC.CONF 5 "2010-05-30"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
ipsec.conf \- IPsec configuration and connections
|
ipsec.conf \- IPsec configuration and connections
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
@@ -7,9 +7,9 @@ The optional
|
|||||||
file
|
file
|
||||||
specifies most configuration and control information for the
|
specifies most configuration and control information for the
|
||||||
strongSwan IPsec subsystem.
|
strongSwan IPsec subsystem.
|
||||||
(The major exception is secrets for authentication;
|
The major exception is secrets for authentication;
|
||||||
see
|
see
|
||||||
.IR ipsec.secrets (5).)
|
.IR ipsec.secrets (5).
|
||||||
Its contents are not security-sensitive.
|
Its contents are not security-sensitive.
|
||||||
.PP
|
.PP
|
||||||
The file is a text file, consisting of one or more
|
The file is a text file, consisting of one or more
|
||||||
@@ -61,8 +61,8 @@ indicates what type of section follows, and
|
|||||||
.I name
|
.I name
|
||||||
is an arbitrary name which distinguishes the section from others
|
is an arbitrary name which distinguishes the section from others
|
||||||
of the same type.
|
of the same type.
|
||||||
(Names must start with a letter and may contain only
|
Names must start with a letter and may contain only
|
||||||
letters, digits, periods, underscores, and hyphens.)
|
letters, digits, periods, underscores, and hyphens.
|
||||||
All subsequent non-empty lines
|
All subsequent non-empty lines
|
||||||
which begin with white space are part of the section;
|
which begin with white space are part of the section;
|
||||||
comments within a section must begin with white space too.
|
comments within a section must begin with white space too.
|
||||||
@@ -169,12 +169,12 @@ conn snt
|
|||||||
A note on terminology: There are two kinds of communications going on:
|
A note on terminology: There are two kinds of communications going on:
|
||||||
transmission of user IP packets, and gateway-to-gateway negotiations for
|
transmission of user IP packets, and gateway-to-gateway negotiations for
|
||||||
keying, rekeying, and general control.
|
keying, rekeying, and general control.
|
||||||
The path to control the connection is called 'ISAKMP SA' in IKEv1 and
|
The path to control the connection is called 'ISAKMP SA' in IKEv1
|
||||||
'IKE SA' in the IKEv2 protocol. That what is being negotiated, the kernel
|
and 'IKE SA' in the IKEv2 protocol. That what is being negotiated, the kernel
|
||||||
level data path, is called 'IPsec SA'.
|
level data path, is called 'IPsec SA' or 'Child SA'.
|
||||||
strongSwan currently uses two separate keying daemons. Pluto handles
|
strongSwan currently uses two separate keying daemons. \fIpluto\fP handles
|
||||||
all IKEv1 connections, Charon is the new daemon supporting the IKEv2 protocol.
|
all IKEv1 connections, \fIcharon\fP is the daemon handling the IKEv2
|
||||||
Charon does not support all keywords yet.
|
protocol.
|
||||||
.PP
|
.PP
|
||||||
To avoid trivial editing of the configuration file to suit it to each system
|
To avoid trivial editing of the configuration file to suit it to each system
|
||||||
involved in a connection,
|
involved in a connection,
|
||||||
@@ -189,7 +189,17 @@ Which participant is considered
|
|||||||
or
|
or
|
||||||
.I right
|
.I right
|
||||||
is arbitrary;
|
is arbitrary;
|
||||||
IPsec figures out which one it is being run on based on internal information.
|
for every connection description an attempt is made to figure out whether
|
||||||
|
the local endpoint should act as the
|
||||||
|
.I left
|
||||||
|
or
|
||||||
|
.I right
|
||||||
|
endpoint. This is done by matching the IP addresses defined for both endpoints
|
||||||
|
with the IP addresses assigned to local network interfaces. If a match is found
|
||||||
|
then the role (left or right) that matches is going to be considered local.
|
||||||
|
If no match is found during startup,
|
||||||
|
.I left
|
||||||
|
is considered local.
|
||||||
This permits using identical connection specifications on both ends.
|
This permits using identical connection specifications on both ends.
|
||||||
There are cases where there is no symmetry; a good convention is to
|
There are cases where there is no symmetry; a good convention is to
|
||||||
use
|
use
|
||||||
@@ -230,7 +240,8 @@ acceptable values are
|
|||||||
.B esp
|
.B esp
|
||||||
(the default) and
|
(the default) and
|
||||||
.BR ah .
|
.BR ah .
|
||||||
The IKEv2 daemon currently supports only ESP.
|
.br
|
||||||
|
The IKEv2 daemon currently supports ESP only.
|
||||||
.TP
|
.TP
|
||||||
.B authby
|
.B authby
|
||||||
how the two security gateways should authenticate each other;
|
how the two security gateways should authenticate each other;
|
||||||
@@ -255,6 +266,11 @@ and
|
|||||||
.B xauthrsasig
|
.B xauthrsasig
|
||||||
that will enable eXtended AUTHentication (XAUTH) in addition to IKEv1 main mode
|
that will enable eXtended AUTHentication (XAUTH) in addition to IKEv1 main mode
|
||||||
based on shared secrets or digital RSA signatures, respectively.
|
based on shared secrets or digital RSA signatures, respectively.
|
||||||
|
IKEv2 additionally supports the value
|
||||||
|
.BR eap ,
|
||||||
|
which indicates an initiator to request EAP authentication. The EAP method
|
||||||
|
to use is selected by the server (see
|
||||||
|
.BR eap ).
|
||||||
This parameter is deprecated for IKEv2 connections, as two peers do not need
|
This parameter is deprecated for IKEv2 connections, as two peers do not need
|
||||||
to agree on an authentication method. Use the
|
to agree on an authentication method. Use the
|
||||||
.B leftauth
|
.B leftauth
|
||||||
@@ -263,13 +279,12 @@ parameter instead to define authentication methods in IKEv2.
|
|||||||
.B auto
|
.B auto
|
||||||
what operation, if any, should be done automatically at IPsec startup;
|
what operation, if any, should be done automatically at IPsec startup;
|
||||||
currently-accepted values are
|
currently-accepted values are
|
||||||
.B add
|
.BR add ,
|
||||||
,
|
.BR route ,
|
||||||
.B route
|
|
||||||
,
|
|
||||||
.B start
|
.B start
|
||||||
and
|
and
|
||||||
.BR ignore .
|
.B ignore
|
||||||
|
(the default).
|
||||||
.B add
|
.B add
|
||||||
loads a connection without starting it.
|
loads a connection without starting it.
|
||||||
.B route
|
.B route
|
||||||
@@ -305,7 +320,6 @@ A value of
|
|||||||
.B no
|
.B no
|
||||||
prevents IPsec from proposing compression;
|
prevents IPsec from proposing compression;
|
||||||
a proposal to compress will still be accepted.
|
a proposal to compress will still be accepted.
|
||||||
IKEv2 does not support IP compression yet.
|
|
||||||
.TP
|
.TP
|
||||||
.B dpdaction
|
.B dpdaction
|
||||||
controls the use of the Dead Peer Detection protocol (DPD, RFC 3706) where
|
controls the use of the Dead Peer Detection protocol (DPD, RFC 3706) where
|
||||||
@@ -317,13 +331,12 @@ liveliness of the IPsec peer. The values
|
|||||||
and
|
and
|
||||||
.B restart
|
.B restart
|
||||||
all activate DPD. If no activity is detected, all connections with a dead peer
|
all activate DPD. If no activity is detected, all connections with a dead peer
|
||||||
are stopped and unrouted (
|
are stopped and unrouted
|
||||||
.B clear
|
.RB ( clear ),
|
||||||
), put in the hold state (
|
put in the hold state
|
||||||
.B hold
|
.RB ( hold )
|
||||||
) or restarted (
|
or restarted
|
||||||
.B restart
|
.RB ( restart ).
|
||||||
).
|
|
||||||
For IKEv1, the default is
|
For IKEv1, the default is
|
||||||
.B none
|
.B none
|
||||||
which disables the active sending of R_U_THERE notifications.
|
which disables the active sending of R_U_THERE notifications.
|
||||||
@@ -332,9 +345,8 @@ in order to signal the readiness to act passively as a responder if the peer
|
|||||||
wants to use DPD. For IKEv2,
|
wants to use DPD. For IKEv2,
|
||||||
.B none
|
.B none
|
||||||
does't make sense, since all messages are used to detect dead peers. If specified,
|
does't make sense, since all messages are used to detect dead peers. If specified,
|
||||||
it has the same meaning as the default (
|
it has the same meaning as the default
|
||||||
.B clear
|
.RB ( clear ).
|
||||||
).
|
|
||||||
.TP
|
.TP
|
||||||
.B dpddelay
|
.B dpddelay
|
||||||
defines the period time interval with which R_U_THERE messages/INFORMATIONAL
|
defines the period time interval with which R_U_THERE messages/INFORMATIONAL
|
||||||
@@ -354,47 +366,70 @@ not send or receive any traffic. Currently supported in IKEv2 connections only.
|
|||||||
.TP
|
.TP
|
||||||
.B eap
|
.B eap
|
||||||
defines the EAP type to propose as server if the client requests EAP
|
defines the EAP type to propose as server if the client requests EAP
|
||||||
authentication. This parameter is deprecated in the favour of
|
authentication. Currently supported values are
|
||||||
|
.B aka
|
||||||
|
for EAP-AKA,
|
||||||
|
.B gtc
|
||||||
|
for EAP-GTC,
|
||||||
|
.B md5
|
||||||
|
for EAP-MD5,
|
||||||
|
.B mschapv2
|
||||||
|
for EAP-MS-CHAPv2,
|
||||||
|
.B radius
|
||||||
|
for the EAP-RADIUS proxy and
|
||||||
|
.B sim
|
||||||
|
for EAP-SIM. Additionally, IANA assigned EAP method numbers are accepted, or a
|
||||||
|
definition in the form
|
||||||
|
.B eap=type-vendor
|
||||||
|
(e.g. eap=7-12345) can be used to specify vendor specific EAP types.
|
||||||
|
This parameter is deprecated in the favour of
|
||||||
.B leftauth.
|
.B leftauth.
|
||||||
|
|
||||||
To forward EAP authentication to a RADIUS server using the EAP-RADIUS plugin,
|
To forward EAP authentication to a RADIUS server using the EAP-RADIUS plugin,
|
||||||
set
|
set
|
||||||
.B eap=radius
|
.BR eap=radius .
|
||||||
.TP
|
.TP
|
||||||
.B eap_identity
|
.B eap_identity
|
||||||
defines the identity the client uses to reply to a EAP Identity request.
|
defines the identity the client uses to reply to a EAP Identity request.
|
||||||
If defined on the EAP server, the defined identity will be used as peer
|
If defined on the EAP server, the defined identity will be used as peer
|
||||||
identity during EAP authentication. The special value
|
identity during EAP authentication. The special value
|
||||||
.B %identity
|
.B %identity
|
||||||
uses the EAP Identity method to ask the client for a EAP identity. If not
|
uses the EAP Identity method to ask the client for an EAP identity. If not
|
||||||
defined, the IKEv2 identity will be used as EAP identity.
|
defined, the IKEv2 identity will be used as EAP identity.
|
||||||
.TP
|
.TP
|
||||||
.B esp
|
.B esp
|
||||||
ESP encryption/authentication algorithm to be used
|
comma-separated list of ESP encryption/authentication algorithms to be used
|
||||||
for the connection, e.g.
|
for the connection, e.g.
|
||||||
.B 3des-md5
|
.BR 3des-md5 .
|
||||||
(encryption-integrity-[dh-group]). If dh-group is specified, CHILD_SA setup
|
The notation is
|
||||||
and rekeying include a separate diffe hellman exchange (IKEv2 only).
|
.BR encryption-integrity-[dh-group] .
|
||||||
|
.br
|
||||||
|
If
|
||||||
|
.B dh-group
|
||||||
|
is specified, CHILD_SA setup and rekeying include a separate diffe hellman
|
||||||
|
exchange (IKEv2 only).
|
||||||
.TP
|
.TP
|
||||||
.B forceencaps
|
.B forceencaps
|
||||||
Force UDP encapsulation for ESP packets even if no NAT situation is detected.
|
Force UDP encapsulation for ESP packets even if no NAT situation is detected.
|
||||||
This may help to hurdle restrictive firewalls. To enforce the peer to
|
This may help to surmount restrictive firewalls. In order to force the peer to
|
||||||
encapsulate packets, NAT detection payloads are faked (IKEv2 only).
|
encapsulate packets, NAT detection payloads are faked (IKEv2 only).
|
||||||
.TP
|
.TP
|
||||||
.B ike
|
.B ike
|
||||||
IKE/ISAKMP SA encryption/authentication algorithm to be used, e.g.
|
comma-separated list of IKE/ISAKMP SA encryption/authentication algorithms
|
||||||
.B aes128-sha1-modp2048
|
to be used, e.g.
|
||||||
(encryption-integrity-dhgroup). In IKEv2, multiple algorithms and proposals
|
.BR aes128-sha1-modp2048 .
|
||||||
may be included, such as
|
The notation is
|
||||||
|
.BR encryption-integrity-dhgroup .
|
||||||
|
In IKEv2, multiple algorithms and proposals may be included, such as
|
||||||
.B aes128-aes256-sha1-modp1536-modp2048,3des-sha1-md5-modp1024.
|
.B aes128-aes256-sha1-modp1536-modp2048,3des-sha1-md5-modp1024.
|
||||||
.TP
|
.TP
|
||||||
.B ikelifetime
|
.B ikelifetime
|
||||||
how long the keying channel of a connection ('ISAKMP/IKE SA')
|
how long the keying channel of a connection (ISAKMP or IKE SA)
|
||||||
should last before being renegotiated.
|
should last before being renegotiated.
|
||||||
.TP
|
.TP
|
||||||
.B installpolicy
|
.B installpolicy
|
||||||
decides whether IPsec policies are installed in the kernel by the IKEv2
|
decides whether IPsec policies are installed in the kernel by the IKEv2
|
||||||
charon daemon for a given connection. Allows peaceful co-existence e.g. with
|
charon daemon for a given connection. Allows peaceful cooperation e.g. with
|
||||||
the Mobile IPv6 daemon mip6d who wants to control the kernel policies.
|
the Mobile IPv6 daemon mip6d who wants to control the kernel policies.
|
||||||
Acceptable values are
|
Acceptable values are
|
||||||
.B yes
|
.B yes
|
||||||
@@ -412,8 +447,8 @@ daemon, unaffected from the
|
|||||||
.B keyexchange
|
.B keyexchange
|
||||||
setting. The default value
|
setting. The default value
|
||||||
.B ike
|
.B ike
|
||||||
currently behaves exactly as
|
currently is a synonym for
|
||||||
.B ikev1.
|
.BR ikev1 .
|
||||||
.TP
|
.TP
|
||||||
.B keyingtries
|
.B keyingtries
|
||||||
how many attempts (a whole number or \fB%forever\fP) should be made to
|
how many attempts (a whole number or \fB%forever\fP) should be made to
|
||||||
@@ -430,35 +465,51 @@ synonym for
|
|||||||
.TP
|
.TP
|
||||||
.B left
|
.B left
|
||||||
(required)
|
(required)
|
||||||
the IP address of the left participant's public-network interface,
|
the IP address of the left participant's public-network interface
|
||||||
in any form accepted by
|
|
||||||
.IR ttoaddr (3)
|
|
||||||
or one of several magic values.
|
or one of several magic values.
|
||||||
If it is
|
If it is
|
||||||
.BR %defaultroute ,
|
.BR %defaultroute ,
|
||||||
.B left
|
.B left
|
||||||
will be filled in automatically with the local address
|
will be filled in automatically with the local address
|
||||||
of the default-route interface (as determined at IPsec startup time).
|
of the default-route interface (as determined at IPsec startup time and
|
||||||
(Either
|
during configuration update).
|
||||||
|
Either
|
||||||
.B left
|
.B left
|
||||||
or
|
or
|
||||||
.B right
|
.B right
|
||||||
may be
|
may be
|
||||||
.BR %defaultroute ,
|
.BR %defaultroute ,
|
||||||
but not both.)
|
but not both.
|
||||||
The value
|
The prefix
|
||||||
.B %any
|
|
||||||
signifies an address to be filled in (by automatic keying) during
|
|
||||||
negotiation. The prefix
|
|
||||||
.B %
|
.B %
|
||||||
in front of a fully-qualified domain name or an IP address will implicitly set
|
in front of a fully-qualified domain name or an IP address will implicitly set
|
||||||
.B leftallowany=yes.
|
.B leftallowany=yes.
|
||||||
If the domain name cannot be resolved into an IP address at IPsec startup or update time
|
If the domain name cannot be resolved into an IP address at IPsec startup or
|
||||||
then
|
update time then
|
||||||
.B left=%any
|
.B left=%any
|
||||||
and
|
and
|
||||||
.B leftallowany=no
|
.B leftallowany=no
|
||||||
will be assumed.
|
will be assumed.
|
||||||
|
|
||||||
|
In case of an IKEv2 connection, the value
|
||||||
|
.B %any
|
||||||
|
for the local endpoint signifies an address to be filled in (by automatic
|
||||||
|
keying) during negotiation. If the local peer initiates the connection setup
|
||||||
|
the routing table will be queried to determine the correct local IP address.
|
||||||
|
In case the local peer is responding to a connection setup then any IP address
|
||||||
|
that is assigned to a local interface will be accepted.
|
||||||
|
.br
|
||||||
|
Note that specifying
|
||||||
|
.B %any
|
||||||
|
for the local endpoint is not supported by the IKEv1 pluto daemon.
|
||||||
|
|
||||||
|
If
|
||||||
|
.B %any
|
||||||
|
is used for the remote endpoint it literally means any IP address.
|
||||||
|
|
||||||
|
Please note that with the usage of wildcards multiple connection descriptions
|
||||||
|
might match a given incoming connection attempt. The most specific description
|
||||||
|
is used in that case.
|
||||||
.TP
|
.TP
|
||||||
.B leftallowany
|
.B leftallowany
|
||||||
a modifier for
|
a modifier for
|
||||||
@@ -466,8 +517,8 @@ a modifier for
|
|||||||
, making it behave as
|
, making it behave as
|
||||||
.B %any
|
.B %any
|
||||||
although a concrete IP address has been assigned.
|
although a concrete IP address has been assigned.
|
||||||
Recommended for dynamic IP addresses that can be resolved by DynDNS at IPsec startup or
|
Recommended for dynamic IP addresses that can be resolved by DynDNS at IPsec
|
||||||
update time.
|
startup or update time.
|
||||||
Acceptable values are
|
Acceptable values are
|
||||||
.B yes
|
.B yes
|
||||||
and
|
and
|
||||||
@@ -475,7 +526,8 @@ and
|
|||||||
(the default).
|
(the default).
|
||||||
.TP
|
.TP
|
||||||
.B leftauth
|
.B leftauth
|
||||||
Authentication method to use (local) or require (remote) in this connection.
|
Authentication method to use locally (left) or require from the remote (right)
|
||||||
|
side.
|
||||||
This parameter is supported in IKEv2 only. Acceptable values are
|
This parameter is supported in IKEv2 only. Acceptable values are
|
||||||
.B pubkey
|
.B pubkey
|
||||||
for public key authentication (RSA/ECDSA),
|
for public key authentication (RSA/ECDSA),
|
||||||
@@ -486,19 +538,20 @@ to (require the) use of the Extensible Authentication Protocol. In the case
|
|||||||
of
|
of
|
||||||
.B eap,
|
.B eap,
|
||||||
an optional EAP method can be appended. Currently defined methods are
|
an optional EAP method can be appended. Currently defined methods are
|
||||||
.B eap-aka, eap-sim, eap-gtc, eap-md5
|
.BR eap-aka ,
|
||||||
|
.BR eap-gtc ,
|
||||||
|
.BR eap-md5 ,
|
||||||
|
.B eap-mschapv2
|
||||||
and
|
and
|
||||||
.B eap-mschapv2.
|
.BR eap-sim .
|
||||||
Alternatively, IANA assigned EAP method numbers are accepted. Vendor specific
|
Alternatively, IANA assigned EAP method numbers are accepted. Vendor specific
|
||||||
EAP methods are defined in the form
|
EAP methods are defined in the form
|
||||||
.B eap-type-vendor
|
.B eap-type-vendor
|
||||||
(e.g.
|
.RB "(e.g. " eap-7-12345 ).
|
||||||
.B eap-7-12345
|
|
||||||
).
|
|
||||||
.TP
|
.TP
|
||||||
.B leftauth2
|
.B leftauth2
|
||||||
Same as
|
Same as
|
||||||
.B leftauth,
|
.BR leftauth ,
|
||||||
but defines an additional authentication exchange. IKEv2 supports multiple
|
but defines an additional authentication exchange. IKEv2 supports multiple
|
||||||
authentication rounds using "Multiple Authentication Exchanges" defined
|
authentication rounds using "Multiple Authentication Exchanges" defined
|
||||||
in RFC4739. This allows, for example, separated authentication
|
in RFC4739. This allows, for example, separated authentication
|
||||||
@@ -515,8 +568,8 @@ Same as
|
|||||||
but for the second authentication round (IKEv2 only).
|
but for the second authentication round (IKEv2 only).
|
||||||
.TP
|
.TP
|
||||||
.B leftcert
|
.B leftcert
|
||||||
the path to the left participant's X.509 certificate. The file can be coded either in
|
the path to the left participant's X.509 certificate. The file can be encoded
|
||||||
PEM or DER format. OpenPGP certificates are supported as well.
|
either in PEM or DER format. OpenPGP certificates are supported as well.
|
||||||
Both absolute paths or paths relative to \fI/etc/ipsec.d/certs\fP
|
Both absolute paths or paths relative to \fI/etc/ipsec.d/certs\fP
|
||||||
are accepted. By default
|
are accepted. By default
|
||||||
.B leftcert
|
.B leftcert
|
||||||
@@ -571,9 +624,11 @@ a comma separated list of group names. If the
|
|||||||
.B leftgroups
|
.B leftgroups
|
||||||
parameter is present then the peer must be a member of at least one
|
parameter is present then the peer must be a member of at least one
|
||||||
of the groups defined by the parameter. Group membership must be certified
|
of the groups defined by the parameter. Group membership must be certified
|
||||||
by a valid attribute certificate stored in \fI/etc/ipsec.d/acerts/\fP thas has been
|
by a valid attribute certificate stored in \fI/etc/ipsec.d/acerts/\fP thas has
|
||||||
issued to the peer by a trusted Authorization Authority stored in
|
been issued to the peer by a trusted Authorization Authority stored in
|
||||||
\fI/etc/ipsec.d/aacerts/\fP. Attribute certificates are not supported in IKEv2 yet.
|
\fI/etc/ipsec.d/aacerts/\fP.
|
||||||
|
.br
|
||||||
|
Attribute certificates are not supported in IKEv2 yet.
|
||||||
.TP
|
.TP
|
||||||
.B lefthostaccess
|
.B lefthostaccess
|
||||||
inserts a pair of INPUT and OUTPUT iptables rules using the default
|
inserts a pair of INPUT and OUTPUT iptables rules using the default
|
||||||
@@ -587,15 +642,10 @@ and
|
|||||||
(the default).
|
(the default).
|
||||||
.TP
|
.TP
|
||||||
.B leftid
|
.B leftid
|
||||||
how
|
how the left participant should be identified for authentication;
|
||||||
the left participant
|
|
||||||
should be identified for authentication;
|
|
||||||
defaults to
|
defaults to
|
||||||
.BR left .
|
.BR left .
|
||||||
Can be an IP address (in any
|
Can be an IP address or a fully-qualified domain name preceded by
|
||||||
.IR ttoaddr (3)
|
|
||||||
syntax)
|
|
||||||
or a fully-qualified domain name preceded by
|
|
||||||
.B @
|
.B @
|
||||||
(which is used as a literal string and not resolved).
|
(which is used as a literal string and not resolved).
|
||||||
.TP
|
.TP
|
||||||
@@ -606,14 +656,18 @@ identity to use for a second authentication for the left participant
|
|||||||
.TP
|
.TP
|
||||||
.B leftikeport
|
.B leftikeport
|
||||||
UDP port the left participant uses for IKE communication. Currently supported in
|
UDP port the left participant uses for IKE communication. Currently supported in
|
||||||
IKEv2 connections only. If unspecified, port 500 is used with port floating to
|
IKEv2 connections only. If unspecified, port 500 is used with the port floating
|
||||||
4500 if NAT is detected or MOBIKE enabled. Specifying a local IKE port
|
to 4500 if a NAT is detected or MOBIKE is enabled. Specifying a local IKE port
|
||||||
different from the default additionally requires a socket implementation that
|
different from the default additionally requires a socket implementation that
|
||||||
listens to this port.
|
listens to this port.
|
||||||
.TP
|
.TP
|
||||||
.B leftnexthop
|
.B leftnexthop
|
||||||
this parameter is not needed any more because the NETKEY IPsec stack does
|
this parameter is usually not needed any more because the NETKEY IPsec stack
|
||||||
not require explicit routing entries for the traffic to be tunneled.
|
does not require explicit routing entries for the traffic to be tunneled. If
|
||||||
|
.B leftsourceip
|
||||||
|
is used with IKEv1 then
|
||||||
|
.B leftnexthop
|
||||||
|
must still be set in order for the source routes to work properly.
|
||||||
.TP
|
.TP
|
||||||
.B leftprotoport
|
.B leftprotoport
|
||||||
restrict the traffic selector to a single protocol and/or port.
|
restrict the traffic selector to a single protocol and/or port.
|
||||||
@@ -656,35 +710,34 @@ or
|
|||||||
or
|
or
|
||||||
.BR yes ,
|
.BR yes ,
|
||||||
and
|
and
|
||||||
.BR ifasked .
|
.BR ifasked ,
|
||||||
|
the latter meaning that the peer must send a certificate request payload in
|
||||||
|
order to get a certificate in return.
|
||||||
.TP
|
.TP
|
||||||
.B leftsourceip
|
.B leftsourceip
|
||||||
The internal source IP to use in a tunnel, also known as virtual IP. If the
|
The internal source IP to use in a tunnel, also known as virtual IP. If the
|
||||||
value is
|
value is one of the synonyms
|
||||||
.BR %modeconfig ,
|
.BR %modeconfig ,
|
||||||
.BR %modecfg ,
|
.BR %modecfg ,
|
||||||
.BR %config ,
|
.BR %config ,
|
||||||
or
|
or
|
||||||
.B %cfg,
|
.BR %cfg ,
|
||||||
an address is requested from the peer. In IKEv2, a defined address is requested,
|
an address is requested from the peer. In IKEv2, a statically defined address
|
||||||
but the server may change it. If the server does not support it, the address
|
is also requested, since the server may change it.
|
||||||
is enforced.
|
|
||||||
.TP
|
.TP
|
||||||
.B rightsourceip
|
.B rightsourceip
|
||||||
The internal source IP to use in a tunnel for the remote peer. If the
|
The internal source IP to use in a tunnel for the remote peer. If the
|
||||||
value is
|
value is
|
||||||
.B %config
|
.B %config
|
||||||
on the responder side, the initiator must propose a address which is then echoed
|
on the responder side, the initiator must propose an address which is then
|
||||||
back. The IKEv2 daemon also supports address pools expressed as
|
echoed back. Also supported are address pools expressed as
|
||||||
\fInetwork\fB/\fInetmask\fR
|
\fInetwork\fB/\fInetmask\fR
|
||||||
or the use of an external IP address pool using %\fIpoolname\fR
|
or the use of an external IP address pool using %\fIpoolname\fR,
|
||||||
, where \fIpoolname\fR is the name of the IP address pool used for the lookup.
|
where \fIpoolname\fR is the name of the IP address pool used for the lookup.
|
||||||
.TP
|
.TP
|
||||||
.B leftsubnet
|
.B leftsubnet
|
||||||
private subnet behind the left participant, expressed as
|
private subnet behind the left participant, expressed as
|
||||||
\fInetwork\fB/\fInetmask\fR
|
\fInetwork\fB/\fInetmask\fR;
|
||||||
(actually, any form acceptable to
|
|
||||||
.IR ttosubnet (3));
|
|
||||||
if omitted, essentially assumed to be \fIleft\fB/32\fR,
|
if omitted, essentially assumed to be \fIleft\fB/32\fR,
|
||||||
signifying that the left end of the connection goes to the left participant
|
signifying that the left end of the connection goes to the left participant
|
||||||
only. When using IKEv2, the configured subnet of the peers may differ, the
|
only. When using IKEv2, the configured subnet of the peers may differ, the
|
||||||
@@ -710,8 +763,8 @@ See
|
|||||||
.IR pluto (8)
|
.IR pluto (8)
|
||||||
for details.
|
for details.
|
||||||
Relevant only locally, other end need not agree on it. IKEv2 uses the updown
|
Relevant only locally, other end need not agree on it. IKEv2 uses the updown
|
||||||
script to insert firewall rules only. Routing is not support and will be
|
script to insert firewall rules only, since routing has been implemented
|
||||||
implemented directly into Charon.
|
directly into charon.
|
||||||
.TP
|
.TP
|
||||||
.B lifebytes
|
.B lifebytes
|
||||||
the number of bytes transmitted over an IPsec SA before it expires (IKEv2
|
the number of bytes transmitted over an IPsec SA before it expires (IKEv2
|
||||||
@@ -786,7 +839,9 @@ and
|
|||||||
.B pull
|
.B pull
|
||||||
(the default).
|
(the default).
|
||||||
Currently relevant for IKEv1 only since IKEv2 always uses the configuration
|
Currently relevant for IKEv1 only since IKEv2 always uses the configuration
|
||||||
payload in pull mode.
|
payload in pull mode. Cisco VPN gateways usually operate in
|
||||||
|
.B push
|
||||||
|
mode.
|
||||||
.TP
|
.TP
|
||||||
.B pfs
|
.B pfs
|
||||||
whether Perfect Forward Secrecy of keys is desired on the connection's
|
whether Perfect Forward Secrecy of keys is desired on the connection's
|
||||||
@@ -825,7 +880,7 @@ and
|
|||||||
.BR no .
|
.BR no .
|
||||||
The two ends need not agree, but while a value of
|
The two ends need not agree, but while a value of
|
||||||
.B no
|
.B no
|
||||||
prevents Pluto/Charon from requesting renegotiation,
|
prevents pluto/charon from requesting renegotiation,
|
||||||
it does not prevent responding to renegotiation requested from the other end,
|
it does not prevent responding to renegotiation requested from the other end,
|
||||||
so
|
so
|
||||||
.B no
|
.B no
|
||||||
@@ -879,12 +934,12 @@ signifying that no IPsec processing should be done at all;
|
|||||||
signifying that packets should be discarded; and
|
signifying that packets should be discarded; and
|
||||||
.BR reject ,
|
.BR reject ,
|
||||||
signifying that packets should be discarded and a diagnostic ICMP returned.
|
signifying that packets should be discarded and a diagnostic ICMP returned.
|
||||||
Charon currently supports
|
The IKEv2 daemon charon currently supports
|
||||||
.BR tunnel ,
|
.BR tunnel ,
|
||||||
.BR transport ,
|
.BR transport ,
|
||||||
and
|
and
|
||||||
.BR tunnel_proxy
|
.BR tunnel_proxy
|
||||||
connection types, only .
|
connection types, only.
|
||||||
.TP
|
.TP
|
||||||
.B xauth
|
.B xauth
|
||||||
specifies the role in the XAUTH protocol if activated by
|
specifies the role in the XAUTH protocol if activated by
|
||||||
@@ -928,8 +983,7 @@ of this connection will be used as peer ID.
|
|||||||
|
|
||||||
.SH "CA SECTIONS"
|
.SH "CA SECTIONS"
|
||||||
This are optional sections that can be used to assign special
|
This are optional sections that can be used to assign special
|
||||||
parameters to a Certification Authority (CA). These parameters are not
|
parameters to a Certification Authority (CA).
|
||||||
supported in IKEv2 yet.
|
|
||||||
.TP 10
|
.TP 10
|
||||||
.B auto
|
.B auto
|
||||||
currently can have either the value
|
currently can have either the value
|
||||||
@@ -964,6 +1018,7 @@ synonym for
|
|||||||
.TP
|
.TP
|
||||||
.B ocspuri2
|
.B ocspuri2
|
||||||
defines an alternative OCSP URI. Currently used by IKEv2 only.
|
defines an alternative OCSP URI. Currently used by IKEv2 only.
|
||||||
|
.TP
|
||||||
.B certuribase
|
.B certuribase
|
||||||
defines the base URI for the Hash and URL feature supported by IKEv2.
|
defines the base URI for the Hash and URL feature supported by IKEv2.
|
||||||
Instead of exchanging complete certificates, IKEv2 allows to send an URI
|
Instead of exchanging complete certificates, IKEv2 allows to send an URI
|
||||||
@@ -974,9 +1029,7 @@ At present, the only
|
|||||||
.B config
|
.B config
|
||||||
section known to the IPsec software is the one named
|
section known to the IPsec software is the one named
|
||||||
.BR setup ,
|
.BR setup ,
|
||||||
which contains information used when the software is being started
|
which contains information used when the software is being started.
|
||||||
(see
|
|
||||||
.IR starter (8)).
|
|
||||||
Here's an example:
|
Here's an example:
|
||||||
.PP
|
.PP
|
||||||
.ne 8
|
.ne 8
|
||||||
@@ -1234,21 +1287,6 @@ must be used to denote no interfaces.
|
|||||||
.B overridemtu
|
.B overridemtu
|
||||||
value that the MTU of the ipsec\fIn\fR interface(s) should be set to,
|
value that the MTU of the ipsec\fIn\fR interface(s) should be set to,
|
||||||
overriding IPsec's (large) default.
|
overriding IPsec's (large) default.
|
||||||
.SH CHOOSING A CONNECTION
|
|
||||||
.PP
|
|
||||||
When choosing a connection to apply to an outbound packet caught with a
|
|
||||||
.BR %trap,
|
|
||||||
the system prefers the one with the most specific eroute that
|
|
||||||
includes the packet's source and destination IP addresses.
|
|
||||||
Source subnets are examined before destination subnets.
|
|
||||||
For initiating, only routed connections are considered. For responding,
|
|
||||||
unrouted but added connections are considered.
|
|
||||||
.PP
|
|
||||||
When choosing a connection to use to respond to a negotiation which
|
|
||||||
doesn't match an ordinary conn, an opportunistic connection
|
|
||||||
may be instantiated. Eventually, its instance will be /32 -> /32, but
|
|
||||||
for earlier stages of the negotiation, there will not be enough
|
|
||||||
information about the client subnets to complete the instantiation.
|
|
||||||
.SH FILES
|
.SH FILES
|
||||||
.nf
|
.nf
|
||||||
/etc/ipsec.conf
|
/etc/ipsec.conf
|
||||||
@@ -1259,12 +1297,11 @@ information about the client subnets to complete the instantiation.
|
|||||||
/etc/ipsec.d/crls
|
/etc/ipsec.d/crls
|
||||||
|
|
||||||
.SH SEE ALSO
|
.SH SEE ALSO
|
||||||
ipsec(8), pluto(8), starter(8), ttoaddr(3), ttodata(3)
|
ipsec(8), pluto(8), starter(8)
|
||||||
.SH HISTORY
|
.SH HISTORY
|
||||||
Written for the FreeS/WAN project by Henry Spencer.
|
Originally written for the FreeS/WAN project by Henry Spencer.
|
||||||
Extended for the strongSwan project
|
Updated and extended for the strongSwan project <http://www.strongswan.org> by
|
||||||
<http://www.strongswan.org>
|
Tobias Brunner, Andreas Steffen and Martin Willi.
|
||||||
by Andreas Steffen. IKEv2-specific features by Martin Willi.
|
|
||||||
.SH BUGS
|
.SH BUGS
|
||||||
.PP
|
.PP
|
||||||
If conns are to be added before DNS is available, \fBleft=\fP\fIFQDN\fP
|
If conns are to be added before DNS is available, \fBleft=\fP\fIFQDN\fP
|
||||||
|
|||||||
Reference in New Issue
Block a user