table of contents
- experimental 5.0~rc2-2
IPSEC-WHACK(8) | Executable programs | IPSEC-WHACK(8) |
NAME¶
ipsec-whack - ipsec whack : IPsec IKE keying daemon low-level control interface
SYNOPSIS¶
ipsec whack [--help] [--version]
ipsec whack --name connection-name
[[--ipv4] | [--ipv6]] [[--tunnelipv4] | [--tunnelipv6]]
[--id identity] [--host ip-address]
[--cert friendly_name] [--ckaid CKAID]
[--ca distinguished name]
[--groups access control groups]
[--sendcert yes | forced | always | ifasked | no | never]
[--sendca none | issuer | all]
[--certtype number] [--ikeport portnumber]
[--nexthop ip-address] [[--client subnet] |
[--subnet subnet]]
[--clientprotoport protocol/port]
[--fragmentation yes | no | force]
[--sourceip ip-address] [--srcip ip-address]
[--xauthserver] [--xauthclient] [--modecfgserver] [--modecfgclient]
[--modecfgdns ip-address, ip-address, ...]
[--modecfgdomains DNS-domain, DNS-domain, ...]
[--modecfgbanner login-banner] [--dnskeyondemand]
[--updown updown]
--to
[--id identity] [--host ip-address]
[--cert friendly_name] [--ckaid CKAID]
[--ca distinguished name]
[--groups access control groups]
[--sendcert yes | always | ifasked | no | never]
[--certtype number] [--ikeport port-number]
[--nexthop ip-address] [--subnet subnet]
[--client subnet]
[--clientprotoport protocol/port]
[--sourceip ip-address] [--srcip ip-address]
[--xauthserver] [--xauthclient] [--modecfgserver] [--modecfgclient]
[--modecfgdns ip-address, ip-address, ...]
[--modecfgdomains DNS-domain, DNS-domain, ...]
[--dnskeyondemand] [--updown updown]
[--tunnel] [--psk] [--rsasig] [--encapsulation [yes] | [no] | [auto]] [--encrypt] [--authenticate] [--compress] [--pfs] [--pfsgroup [modp1024] | [modp1536] | [modp2048] | [modp3072] | [modp4096] | [modp6144] | [modp8192] | [dh22] | [dh23] | [dh24]] [--ikelifetime seconds] [--ipseclifetime seconds] [--rekeymargin seconds] [--rekeyfuzz percentage] [--esp esp-algos] [--dontrekey] [--aggrmode] [--modecfgpull] [--metric metric] [--nflog-group nflognum] [--conn-mark mark/mask] [[--dpddelay seconds] | [--dpdtimeout seconds]] [--no-keep-alive] [[--initiateontraffic] | [--pass] | [--drop] | [--reject]] [[--failnone] | [--failpass] | [--faildrop] | [--failreject]] [--rundir path] [--ctlsocket path/file] [--label string]
ipsec whack --keyid id [--addkey] [--pubkeyrsa key] [--rundir path] [--ctlsocket path/file] [--label string]
ipsec whack --listen | --unlisten [--rundir path] [--ctlsocket path/file] [--label string]
ipsec whack --ddos-auto | --ddos-busy | --ddos-unlimited [--rundir path] [--ctlsocket path/file]
ipsec whack --route | --unroute --name connection-name [--rundir path] [--ctlsocket path/file]
ipsec whack --initiate --name connection [--remote-host ip-address] [--xauthuser user] [--xauthpass pass] [--asynchronous]
ipsec whack --down --name connection [--asynchronous]
ipsec whack {--rekey-ike | --rekey-child | --delete-ike | --delete-child | --down-ike | --down-child} --name connection [--asynchronous]
ipsec whack --global-redirect yes|no|auto
ipsec whack --global-redirect-to ip-address(es)
ipsec whack [--name connection-name] --redirect-to ip-address(es)
ipsec whack [[--tunnelipv4] | [--tunnelipv6]] --oppohere ip-address --oppothere ip-address --opposport port --oppodport port --oppoproto protocol
ipsec whack --crash [ipaddress]
ipsec whack --name connection-name --delete [--label string]
ipsec whack --deletestate state-number [--rundir path] [--ctlsocket path/file] [--label string]
ipsec whack --deleteuser --name username [--rundir path] [--ctlsocket path/file] [--label string]
ipsec whack [--name connection-name] {--debug help | none | base | cpu-usage | class} | {--no-debug class} | {--impair help | none | behaviour} | {--no-impair behaviour}
ipsec whack [--utc] [--listall] [--listpubkeys] [--listcerts] [--listcacerts] [--listcrls]
ipsec whack [--utc] [--rereadsecrets] [--fetchcrls] [--rereadall]
ipsec whack --ddns
ipsec whack --listevents
ipsec whack --purgeocsp
ipsec whack --status --addresspoolstatus --briefstatus --connectionstatus --fipsstatus --processstatus --shuntstatus --trafficstatus [--rundir path] [--ctlsocket path/file] [--label string]
ipsec whack --globalstatus --clearstats [--rundir path] [--ctlsocket path/file] [--label string]
ipsec whack [--ike-socket-bufsize bufsize] [--ike-socket-errqueue-toggle] [--rundir path] [--ctlsocket path/file] [--label string]
ipsec whack --shutdown [--rundir path] [--ctlsocket path/file] [--label string] [--leave-state]
DESCRIPTION¶
ipsec whack is an auxiliary program to allow requests to be made to a running pluto. whack uses a UNIX domain socket to speak to pluto (by default, /run/pluto/pluto.ctl).
whack has an intricate argument syntax. This syntax allows many different functions to be specified. The help form shows the usage or version information. The connection form gives pluto a description of a potential connection. The public key form informs pluto of the RSA public key for a potential peer. The delete form deletes a connection description and all SAs corresponding to it. The listen form tells pluto to start or stop listening on the public interfaces for IKE requests from peers. The route form tells pluto to set up routing for a connection; the unroute form undoes this. The initiate form tells pluto to negotiate an SA corresponding to a connection. The terminate form tells pluto to remove all SAs corresponding to a connection, including those being negotiated. The status form displays the pluto's internal state. The debug form tells pluto to change the selection of debugging output "on the fly". The shutdown form tells pluto to shut down, deleting all SAs.
The crash option asks pluto to consider a particularly target IP to have crashed, and to attempt to restart all connections with that IP address as a gateway. In general, you should use Dead Peer Detection to detect this kind of situation automatically, but this is not always possible.
Most options are specific to one of the forms, and will be described with that form. There are three options that apply to all forms.
--ctlsocket /run/pluto/pluto.ctl
--rundir path
--label string
The help form of whack is self-explanatory.
--help
--version
The connection form describes a potential connection to pluto. pluto needs to know what connections can and should be negotiated. When pluto is the initiator, it needs to know what to propose. When pluto is the responder, it needs to know enough to decide whether is is willing to set up the proposed connection.
The description of a potential connection can specify a large number of details. Each connection has a unique name. This name will appear in a updown shell command, so it should not contain punctuation that would make the command ill-formed.
--name connection-name
The topology of a connection is symmetric, so to save space here is half a picture:
client_subnet<-->host:ikeport<-->nexthop<---
A similar trick is used in the flags. The same flag names are used for both ends. Those before the --to flag describe the left side and those afterwards describe the right side. When pluto attempts to use the connection, it decides whether it is the left side or the right side of the connection, based on the IP numbers of its interfaces.
--id id
--host ip-address, --host %any, --host %opportunistic
--cert friendly_name
--ckaid CKAID
For X.509 certificates, the CKAID is either the certificate's SubjectKeyIdentifier or the public key's SHA1 fingerprint (when the SubjectKeyIdentifier isn't specified). For host keys the CKAID is the SHA1 fingerprint of the public key.
--ca distinguished name
--groups access control groups
--sendcert yes|forced|always|ifasked|no|never
--sendca none|issuer|all
--certtype number
--ikeport port-number
--nexthop ip-address
--subnet subnet, --client subnet
--clientprotoport protocol/port
--sourceip ip-address, --srcip ip-address
--xauthserver
--xauthclient
--xauthuser
--xauthpass
--modecfgserver
--modecfgclient
--modecfgdns
--modecfgdomains
--dnskeyondemand
--updown updown
--to
The potential connection description also specifies characteristics of rekeying and security.
--psk
--rsasig
--encrypt
--authenticate
--compress
--tunnel
--ipv4
--ipv6
--tunnelipv4
--tunnelipv6
--pfs
--pfsgroup modp-group
--esp esp-algos
--aggrmode
--modecfgpull
--dpddelay seconds
--timeout seconds
--encapsulation yes|no|auto
If none of the --encrypt, --authenticate, --compress, or --pfs flags is given, the initiating the connection will only build an ISAKMP SA. For such a connection, client subnets have no meaning and must not be specified.
Apart from initiating directly using the --initiate option, a tunnel can be loaded with a different policy.
--initiateontraffic
--pass
--drop
--reject
These options need to be documented:
--failnone
--failpass
--faildrop
--failreject
pluto supports various X.509 Certificate related options.
--utc
--listall
--listpubkeys
--listcerts
--checkpubkeys
--listcacerts
--listcrls
The corresponding options --rereadsecrets, --rereadall, and --rereadcrls options reread this information from their respective sources, and purge all the online obtained information. The option --listevents lists all pending events, and the --ddns triggers the Dynamic DNS update event that is normally scheduled to run once every minute.
--ikelifetime seconds
--ipseclifetime seconds
--rekeymargin seconds
--rekeyfuzz percentage
--dontrekey
--deletestate state-number
The route form of the whack command tells pluto to set up routing for a connection. Although like a traditional route, it uses an ipsec device as a virtual interface. Once routing is set up, no packets will be sent "in the clear" to the peer's client specified in the connection. A TRAP shunt eroute will be installed; if outbound traffic is caught, Pluto will initiate the connection. An explicit whack route is not always needed: if it hasn't been done when an IPsec SA is being installed, one will be automatically attempted.
--route, --name connection-name
--unroute, --name connection-name
The initiate form tells pluto to initiate a negotiation with another pluto (or other IKE daemon) according to the named connection. Initiation requires a route that --route would provide; if none is in place at the time an IPsec SA is being installed, pluto attempts to set one up.
--initiate, --name connection-name, --asynchronous
The opportunistic initiate form is mainly used for debugging.
--tunnelipv4, --tunnelipv6, --oppohere ip-address, --oppothere ip-address, --opposport port, --oppodport port, --oppoproto protocol
Rekeying a connection
--rekey-ike --name connection --asynchronous, --rekey-child --name connection --asynchronous
--delete-ike --name connection --asynchronous, --delete-child --name connection --asynchronous, --down-ike --name connection --asynchronous, --down-child --name connection --asynchronous
Ending a connection
--delete --name connection
--down --name connection --asynchronous
Since the connection is still in place --down does not prevent new negotiations. For instance, the peer may initiate, or a routed (on-demand) connection will initiate when there is traffic. --unroute will also prevent traffic initiating the connection, and --delete will prevent all negotiation.
--crash ip-address
ip-address
Redirecting clients can be done using IKEv2 redirect mechanism.
--global-redirect yes|no|auto
--global-redirect-to ip-address(es)
--name connection_name, --redirect-to ip-address(es)
The public key for informs pluto of the RSA public key for a potential peer. Private keys must be kept secret, so they are kept in ipsec.secrets(5).
--keyid id
--addkey
--pubkeyrsa key
The listen form tells pluto to start listening for IKE requests on its public interfaces. To avoid race conditions, it is normal to load the appropriate connections into pluto before allowing it to listen. If pluto isn't listening, it is pointless to initiate negotiations, so it will refuse requests to do so. Whenever the listen form is used, pluto looks for public interfaces and will notice when new ones have been added and when old ones have been removed. This is also the trigger for pluto to read the ipsec.secrets file. So listen may useful more than once.
--listen
--unlisten
The --ddos-auto, --ddos-busy and --ddos-unlimited options tells pluto to update the DDoS protection state. Normally, these measures are automatically activated or deactivated based on the number of states inside pluto. The busy and unlimited option tells pluto to activate or deactivate the DDoS protection mode manually. One of these DDoS protection methods is to activate IKEv2 DCOOKIEs to defend against spoofed IKE packets.
--ddos-busy
--ddos-unlimited
--ddos-auto
The status form will display information about the internal state of pluto: information about each potential connection, about each state object, and about each shunt that pluto is managing without an associated connection.
Statistics can be seen using ipsec whack --globalstats and reset using ipsec whack --clearstats. This can be used with the munin software to monitor VPN services.
--status
The trafficstatus form will display the xauth username, add_time and the total in and out bytes of the IPsec SA's.
--trafficstatus
The shutdown form is the proper way to shut down pluto. It will tear down the SAs on this machine that pluto has negotiated. If the --leave-state option is given, it does not delete any connections, and leaves the kernel state in the kernel. Note that the init system used might clean up the kernel state regardless.
--shutdown
Examples¶
It would be normal to start pluto in one of the system initialization scripts. It needs to be run by the superuser. Generally, no arguments are needed. To run in manually, the superuser can simply type
ipsec pluto
The command will immediately return, but a pluto process will be left running, waiting for requests from whack or a peer.
Using whack, several potential connections would be described:
ipsec whack --name silly --host127.0.0.1 --to --host 127.0.0.2 --ikelifetime 900 --ipseclifetime 800 --keyingtries 3
Since this silly connection description specifies neither encryption, authentication, nor tunneling, it could only be used to establish an ISAKMP SA.
ipsec whack --name conn_name --host 10.0.0.1 --client 10.0.1.0/24 --to --host 10.0.0.2 --client 10.0.2.0/24 --encrypt
This is something that must be done on both sides. If the other side is pluto, the same whack command could be used on it (the command syntax is designed to not distinguish which end is ours).
Now that the connections are specified, pluto is ready to handle requests and replies via the public interfaces. We must tell it to discover those interfaces and start accepting messages from peers:
ipsec whack --listen
If we don't immediately wish to bring up a secure connection between the two clients, we might wish to prevent insecure traffic. The routing form asks pluto to cause the packets sent from our client to the peer's client to be routed through the ipsec0 device; if there is no SA, they will be discarded:
ipsec whack --route conn_name
Finally, we are ready to get pluto to initiate negotiation for an IPsec SA (and implicitly, an ISAKMP SA):
ipsec whack --initiate --name conn_name
A small log of interesting events will appear on standard output (other logging is sent to syslog).
whack can also be used to terminate pluto cleanly, tearing down all SAs that it has negotiated.
ipsec whack --shutdown
Notification of any IPSEC SA deletion, but not ISAKMP SA deletion is sent to the peer. Unfortunately, such Notification is not reliable. Furthermore, pluto itself ignores Notifications.
XAUTH¶
If pluto needs additional authentication, such as defined by the XAUTH specifications, then it may ask whack to prompt the operator for username or passwords. Typically, these will be entered interactively. A GUI that wraps around whack may look for the 041 (username) or 040 (password) prompts, and display them to the user.
For testing purposes, the options --xauthuser user --xauthpass pass may be be given prior to the --initiate to provide responses to the username and password prompts.
The updown command¶
Whenever pluto brings a connection up or down, it invokes the updown command. This command is specified using the --updown option. This allows for customized control over routing and firewall manipulation.
The updown is invoked for five different operations. Each of these operations can be for our client subnet or for our host itself.
prepare-host or prepare-client
route-host or route-client
unroute-host or unroute-client
up-host or up-client
down-host or down-client
The script is passed a large number of environment variables to specify what needs to be done.
PLUTO_VERB
PLUTO_CONNECTION
PLUTO_NEXT_HOP
PLUTO_INTERFACE
PLUTO_ME
PLUTO_MY_CLIENT
PLUTO_MY_CLIENT_NET
PLUTO_MY_CLIENT_MASK
PLUTO_PEER
PLUTO_PEER_CLIENT
PLUTO_PEER_CLIENT_NET
PLUTO_PEER_CLIENT_MASK
PLUTO_MY_PROTOCOL
PLUTO_PEER_PROTOCOL
PLUTO_MY_PORT
PLUTO_PEER_PORT
PLUTO_MY_ID
PLUTO_PEER_ID
PLUTO_PEER_CA
All output sent by the script to stderr or stdout is logged. The script should return an exit status of 0 if and only if it succeeds.
pluto waits for the script to finish and will not do any other processing while it is waiting. The script may assume that pluto will not change anything while the script runs. The script should avoid doing anything that takes much time and it should not issue any command that requires processing by pluto. Either of these activities could be performed by a background subprocess of the script.
Rekeying¶
When an SA that was initiated by pluto has only a bit of lifetime left, pluto will initiate the creation of a new SA. This applies to ISAKMP and IPsec SAs. The rekeying will be initiated when the SA's remaining lifetime is less than the rekeymargin plus a random percentage, between 0 and rekeyfuzz, of the rekeymargin.
Similarly, when an SA that was initiated by the peer has only a bit of lifetime left, pluto will try to initiate the creation of a replacement. To give preference to the initiator, this rekeying will only be initiated when the SA's remaining lifetime is half of rekeymargin. If rekeying is done by the responder, the roles will be reversed: the responder for the old SA will be the initiator for the replacement. The former initiator might also initiate rekeying, so there may be redundant SAs created. To avoid these complications, make sure that rekeymargin is generous.
One risk of having the former responder initiate is that perhaps none of its proposals is acceptable to the former initiator (they have not been used in a successful negotiation). To reduce the chances of this happening, and to prevent loss of security, the policy settings are taken from the old SA (this is the case even if the former initiator is initiating). These may be stricter than those of the connection.
pluto will not rekey an SA if that SA is not the most recent of its type (IPsec or ISAKMP) for its potential connection. This avoids creating redundant SAs.
The random component in the rekeying time (rekeyfuzz) is intended to make certain pathological patterns of rekeying unstable. If both sides decide to rekey at the same time, twice as many SAs as necessary are created. This could become a stable pattern without the randomness.
Another more important case occurs when a security gateway has SAs with many other security gateways. Each of these connections might need to be rekeyed at the same time. This would cause a high peek requirement for resources (network bandwidth, CPU time, entropy for random numbers). The rekeyfuzz can be used to stagger the rekeying times.
Once a new set of SAs has been negotiated, pluto will never send traffic on a superseded one. Traffic will be accepted on an old SA until it expires.
Selecting a Connection When Responding: Road Warrior Support¶
When pluto receives an initial Main Mode message, it needs to decide which connection this message is for. It picks based solely on the source and destination IP addresses of the message. There might be several connections with suitable IP addresses, in which case one of them is arbitrarily chosen. (The ISAKMP SA proposal contained in the message could be taken into account, but it is not.)
The ISAKMP SA is negotiated before the parties pass further identifying information, so all ISAKMP SA characteristics specified in the connection description should be the same for every connection with the same two host IP addresses. At the moment, the only characteristic that might differ is authentication method.
Up to this point, all configuring has presumed that the IP addresses are known to all parties ahead of time. This will not work when either end is mobile (or assigned a dynamic IP address for other reasons). We call this situation "Road Warrior". It is fairly tricky and has some important limitations, most of which are features of the IKE protocol.
Only the initiator may be mobile: the initiator may have an IP number unknown to the responder. When the responder doesn't recognize the IP address on the first Main Mode packet, it looks for a connection with itself as one end and %any as the other. If it cannot find one, it refuses to negotiate. If it does find one, it creates a temporary connection that is a duplicate except with the %any replaced by the source IP address from the packet; if there was no identity specified for the peer, the new IP address will be used.
When pluto is using one of these temporary connections and needs to find the preshared secret or RSA private key in ipsec.secrets, and the connection specified no identity for the peer, %any is used as its identity. After all, the real IP address was apparently unknown to the configuration, so it is unreasonable to require that it be used in this table.
Part way into the Phase 1 (Main Mode) negotiation using one of these temporary connection descriptions, pluto will receive an Identity Payload. At this point, pluto checks for a more appropriate connection, one with an identity for the peer that matches the payload and would use the same keys as so far used for authentication. If it finds one, it will switch to using this better connection (or a temporary one derived from this, if it has %any for the peer's IP address). It may even turn out that no connection matches the newly discovered identity, including the current connection; if so, pluto terminates negotiation.
Unfortunately, if preshared secret authentication is being used, the Identity Payload is encrypted using this secret, so the secret must be selected by the responder without knowing this payload. This limits there to being at most one preshared secret for all Road Warrior systems connecting to a host. RSA Signature authentication does not require that the responder knows how to select the initiator's public key until after the initiator's Identity Payload is decoded (using the responder's private key, so that must be preselected).
When pluto is responding to a Quick Mode negotiation via one of these temporary connection descriptions, it may well find that the subnets specified by the initiator don't match those in the temporary connection description. If so, it will look for a connection with matching subnets, its own host address, a peer address of %any and matching identities. If it finds one, a new temporary connection is derived from this one and used for the Quick Mode negotiation of IPsec SAs. If it does not find one, pluto terminates negotiation.
Be sure to specify an appropriate nexthop for the responder to send a message to the initiator: pluto has no way of guessing it (if forwarding isn't required, use an explicit %direct as the nexthop and the IP address of the initiator will be filled in; the obsolete notation 0.0.0.0 is still accepted).
pluto has no special provision for the initiator side. The current (possibly dynamic) IP address and nexthop must be used in defining connections. These must be properly configured each time the initiator's IP address changes. pluto has no mechanism to do this automatically.
Although we call this Road Warrior Support, it could also be used to support encrypted connections with anonymous initiators. The responder's organization could announce the preshared secret that would be used with unrecognized initiators and let anyone connect. Of course the initiator's identity would not be authenticated.
If any Road Warrior connections are supported, pluto cannot reject an exchange initiated by an unknown host until it has determined that the secret is not shared or the signature is invalid. This must await the third Main Mode message from the initiator. If no Road Warrior connection is supported, the first message from an unknown source would be rejected. This has implications for ease of debugging configurations and for denial of service attacks.
Although a Road Warrior connection must be initiated by the mobile side, the other side can and will rekey using the temporary connection it has created. If the Road Warrior wishes to be able to disconnect, it is probably wise to set --keyingtries to 1 in the connection on the non-mobile side to prevent it trying to rekey the connection. Unfortunately, there is no mechanism to unroute the connection automatically.
Debugging¶
pluto accepts several optional arguments, useful mostly for debugging. Except for --interface, each should appear at most once.
--interface interfacename
--ikeport port-number
--secretsfile file
--nofork
--uniqueids
--force-busy
--stderrlog
pluto is willing to produce a prodigious amount of debugging information. There are several classes of debugging output, and pluto may be directed to produce a selection of them. All lines of debugging output are prefixed with "|" to distinguish them from normal diagnostic messages.
When pluto is invoked, it may be given arguments to specify which debug classes to output. The current options are:
--debug help (whack only)
--debug none
--debug base
--debug cpu-usage
--debug class, --no-debug class, --debug no-class
The debug form of the whack command will change the selection in a running pluto. If a connection name is specified, the flags are added whenever pluto has identified that it is dealing with that connection. Unfortunately, this is often part way into the operation being observed.
For example, to start pluto with both base and cpu-usage debug-logging enabled:
To later change this pluto to disable base debug-logging use either:
or:
Impairing¶
pluto and whack accept several optional arguments that alter (impair) correct behaviour.
These options are solely intended for use by developers when testing pluto.
--impair help (whack only)
--impair list (whack only)
--impair none
--impair behaviour, --impair behaviour:how, --no-impair behaviour
Pluto's Behaviour When Things Go Wrong¶
When pluto doesn't understand or accept a message, it just ignores the message. It is not yet capable of communicating the problem to the other IKE daemon (in the future it might use Notifications to accomplish this in many cases). It does log a diagnostic.
When pluto gets no response from a message, it resends the same message (a message will be sent at most three times). This is appropriate: UDP is unreliable.
When pluto gets a message that it has already seen, there are many cases when it notices and discards it. This too is appropriate for UDP.
Combine these three rules, and you can explain many apparently mysterious behaviours. In a pluto log, retrying isn't usually the interesting event. The critical thing is either earlier (pluto got a message that it didn't like and so ignored, so it was still awaiting an acceptable message and got impatient) or on the other system (pluto didn't send a reply because it wasn't happy with the previous message).
Notes¶
Each IPsec SA is assigned an SPI, a 32-bit number used to refer to the SA. The IKE protocol lets the destination of the SA choose the SPI. The range 0 to 0xFF is reserved for IANA. Pluto also avoids choosing an SPI in the range 0x100 to 0xFFF, leaving these SPIs free for manual keying. Remember that the peer, if not pluto, may well chose SPIs in this range.
Policies¶
This catalogue of policies may be of use when trying to configure pluto and another IKE implementation to interoperate.
In Phase 1, only Main Mode is supported. We are not sure that Aggressive Mode is secure. For one thing, it does not support identity protection. It may allow more severe Denial Of Service attacks.
No Informational Exchanges are supported. These are optional and since their delivery is not assured, they must not matter. It is the case that some IKE implementations won't interoperate without Informational Exchanges, but we feel they are broken.
No Informational Payloads are supported. These are optional, but useful. It is of concern that these payloads are not authenticated in Phase 1, nor in those Phase 2 messages authenticated with HASH(3).
•
•
•
•
•
•
•
•
•
•
EXIT STATUS¶
If ipsec whack detects a problem, it will return an exit status of 1. If it received progress messages from pluto, it returns as status the value of the numeric prefix from the last such message that was not a message sent to syslog or a comment (but the prefix for success is treated as 0). Otherwise, the exit status is 0.
FILES¶
/run/pluto/pluto.pid /run/pluto/pluto.ctl /etc/ipsec.secrets /dev/urandom
ENVIRONMENT¶
pluto does not use any environment variables
SEE ALSO¶
The rest of the Libreswan distribution, in particular ipsec(8).
ipsec(8) is designed to make using pluto more pleasant. Use it!
ipsec.secrets(5) describes the format of the secrets file.
For more information on IPsec, the mailing list, and the relevant documents, see:
https://datatracker.ietf.org/wg/ipsecme/charter/
At the time of writing, the latest IETF IKE RFC is:
RFC 7296 Internet Key Exchange Protocol Version 2 (IKEv2)
The Libreswan web site <https://libreswan.org> and the mailing lists described there.
The Libreswan wiki <https://libreswan.org/wiki> and the mailing lists described there.
The Libreswan list of implemented RFCs <https://libreswan.org/wiki/Implemented_Standards>
HISTORY¶
This code is released under the GPL terms. See the accompanying files CHANGES COPYING and CREDITS.* for more details.
Detailed history (including FreeS/WAN and Openswan) can be found in the docs/ directory.
BUGS¶
Please see <https://github.com/libreswan/libreswan/issues> for a list of currently known bugs and missing features.
Bugs should be reported to the <swan-dev@lists.libreswan.org> mailing list.
AUTHOR¶
Paul Wouters
03/14/2024 | Libreswan 5.0~rc2 |