support configuring interface SAs for route-based ipsec vpns.
authordlg <dlg@openbsd.org>
Mon, 7 Aug 2023 04:01:29 +0000 (04:01 +0000)
committerdlg <dlg@openbsd.org>
Mon, 7 Aug 2023 04:01:29 +0000 (04:01 +0000)
commit0c1280a3aad6116bc6d1ea0d3199a43676d9b4c8
treeb33cc9374f329f4acc27db4c603fc9a65cf32c8d
parent358357352a57f9954f463fc4aff350014c9bc857
support configuring interface SAs for route-based ipsec vpns.

add "Interface NUMBER" to the config parser to specify that once
SAs have been negotiated with a peer, install the SAs with the
sadb_x_iface extension set up, but skip installing the flows/SPD
entries.

this allows for the negotiation of multiple esp tunnels covering
all traffic between 0.0.0.0/0 to 0.0.0.0/0, and then being able to
do something useful with them using the routing table and sec(4)
interfaces instead of having SPD entries fight over those packets
in the kernel.

this in turn allows interoperation with other ipsec/vpn solutions
that require the negotiation of such tunnels.

support from many including markus@ tobhe@ claudio@ sthen@ patrick@
now is a good time deraadt@
sbin/isakmpd/ipsec.c
sbin/isakmpd/pf_key_v2.c
sbin/isakmpd/sa.h