]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
Merge branch 'mobike-nat'
authorTobias Brunner <tobias@strongswan.org>
Fri, 9 Feb 2018 14:54:36 +0000 (15:54 +0100)
committerTobias Brunner <tobias@strongswan.org>
Fri, 9 Feb 2018 15:13:19 +0000 (16:13 +0100)
These changes improve MOBIKE task queuing. In particular we don't
want to ignore the response to an update (with NAT-D payloads) if only
an address list update or DPD is queued as that could prevent use from
updating the UDP encapsulation in the kernel.

A new optional roam trigger is added to the kernel-netlink plugin based
on routing rule changes.  This only works properly, though, if the kernel
based route lookup is used as the kernel-netlink plugin does currently
not consider routing rules for its own route lookup.

Another change prevents acquires during address updates if we have to
update IPsec SAs by deleting and readding them.  Because the outbound policy
is still installed an acquire and temporary SA might get triggered in
the short time no IPsec SA is installed, which could subsequently prevent the
reinstallation of the SA.  To this end we install drop policies before
updating the policies and SAs.  These also replace the fallback drop policies
we previously used to prevent plaintext leaks during policy updates (which
reduces the overhead in cases where addresses never or rarely change as
additional policies will only have to be tracked during address updates).

Fixes #2518.


Trivial merge