Page MenuHomeVyOS Platform

IPsec VTI goes down after an IKEv2 reauthentication when ikev2-reauth is set
Open, HighPublicBUG

Description

Site-to-site IPsec with a VTI, ikev2-reauth yes on the peer and a short IKE lifetime:

set vpn ipsec site-to-site peer P ikev2-reauth 'yes'
set vpn ipsec ike-group IKE lifetime '300'
set vpn ipsec site-to-site peer P vti bind 'vti10'

After the first natural reauthentication (no manual command), vti10 is admin-down while the CHILD_SA stays installed (show vpn ipsec sa looks normal), and traffic over the VTI stops. It stayed down until the end of the test, about 365 s later. With the same config on 1.5.1 the VTI stayed up and at most 4 s of pings were lost.

                 VTI after reauth   traffic
1.5.1            up (2/2)           ok
rolling / 1.6    admin-down (3/3)   100% loss

With ikev2-reauth set this repeats at every IKE lifetime.

Likely cause: strongSwan 6 does make-before-break reauthentication by default; the vti-up-down hook sees the old SA go down and sets the VTI down after the new one is already installed. charon.j2 has make_before_break = no commented out.

Details

Version
rolling
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)