systemdservice units have been renamed. The modern unit, which was called strongswan-swanctl,
is now called strongswan (the previous name is configured as alias in the unit, for which a symlink is
created when the unit is enabled). The legacy unit is now called strongswan-starter.
- Support for XFRM interfaces (available since Linux 4.19) has been added, which are intended to
replace VTI devices (they are similar but offer several advantages, for instance, they are not bound
to an address or address family).
IPsec SAs and policies are associated with such interfaces via interface IDs that can be configured in
swanctl.conf (dynamic IDs may optionally be allocated for each SA and even direction). It's possible to
use separate interfaces for in- and outbound traffic (or only use an interface in one direction and regular
policies in the other).
Interfaces may be created dynamically via updown/vici scripts, or statically before or after establishing
the SAs. Routes must be added manually as needed (the daemon will not install any routes for outbound
policies with an interface ID).
When moving XFRM interfaces to other network namespaces they retain access to the SAs and policies
installed in the original namespace, which allows providing IPsec tunnels for processes in other network
namespaces without giving them access to the IPsec keys or IKE credentials.
More information can be found on the page about route-based VPNs.
- Initiation of childless IKE_SAs is supported (RFC 6023). If enabled and supported by the responder,
no CHILD_SA is established during IKE_AUTH. Instead, all CHILD_SAs are created with CREATE_CHILD_SA
exchanges. This allows using a separate DH exchange even for the first CHILD_SA, which is otherwise
created during IKE_AUTH with keys derived from the IKE_SA's key material.
--initiatecommand may be used to initiate only the IKE_SA via
omitted and the peer supports this extension.
- The NetworkManager backend and plugin support IPv6.
- The new wolfssl plugin is a wrapper around the wolfSSL crypto library. Thanks to Sean Parkinson of
wolfSSL Inc. for the initial patch.
- IKE SPIs may optionally be labeled via the charon.spi_mask|label options in strongswan.conf. This feature
was extracted from charon-tkm, however, now applies the mask/label in network order.
- The openssl plugin supports ChaCha20-Poly1305 when built with OpenSSL 1.1.0.
- The PB-TNC finite state machine according to section 3.2 of RFC 5793 was not correctly implemented
when sending either a
SRETRYbatch. These batches can only be sent in the "Decided" state
CRETRYbatch can immediately carry all messages usually transported by a
CDATAbatch. It is
currently not possible to send a
SRETRYbatch since full-duplex mode for PT-TLS transport is not supported.
- Instead of marking IPv6 virtual IPs as deprecated, the kernel-netlink plugin now uses address labels to
avoid that such addresses are used for non-VPN traffic (00a953d090).
- The agent plugin now creates sockets to the ssh/gpg-agent dynamically and does not keep them open,
which otherwise might prevent the agent from getting terminated.
- To avoid broadcast loops the forecast plugin now only reinjects packets that are marked or received from
the configured interface.
- UTF-8 encoded passwords are supported via EAP-MSCHAPv2, which internally uses an UTF-16LE
encoding to calculate the NT hash (#3014).
- Properly delete temporary drop policies (used when updating IP addresses of SAs) if manual priorities are
used, which was broken since 5.6.2 (8e31d65730).
- Avoid overwriting start_action when parsing the inactivity timeout in the vici plugin (#2954).
- Fixed the automatic termination of reloaded vici connections with start_action=start, which was broken
since 5.6.3 (71b22c250f).
- Fixed a race condition in the trap manager between installation and removal of a policy (69cbe2ca3f).
- Compilation of the kernel-netlink plugin has been fixed on old kernels (< 2.6.39), which was caused
by the HW offload changes (c7f579fa17).
- The IPsec stack detection and module loading in starter has been removed (it wasn't enforced anyway
and loading modules doesn't seem necessary, also KLIPS hasn't been supported for a long time and
PF_KEY will eventually be removed from the Linux kernel, ba817d2917).
- Several IKEv2 protocol details are now handled more strictly: Unrequested virtual IPs are ignored,
CFG_REPLYpayloads are ignored if no
CFG_REQUESTpayloads were sent, a
received from the responder is checked against the local configuration.
- The keys and certificates used by the scenarios in the testing environment are now generated
dynamically. Running the
testing/scripts/build-certsscript after creating the base and root images
uses the pki utility installed in the latter to create the keys and certificates for all the CAs and in some
cases for individual scenarios. These credentials are stored in the source tree, not the image, so this has
to be called only once even if the images are later rebuilt. The script automatically (re-)rebuilds the guest
images as that generates fresh CRLs and signs the DNS zones. The only keys/certificates currently not
generated are the very large ones used by the ikev2/rw-eap-tls-fragments scenario.