testing: Add ikev2/per-cpu-sas-encap-transport scenario

Tests transport mode and UDP encapsulation with random source ports.
Interestingly, the responder always uses the same SA to respond (maybe
due to the cache on the policy).
This commit is contained in:
Tobias Brunner
2025-05-28 16:35:27 +02:00
parent 3b2f8cf282
commit b7d3349000
9 changed files with 229 additions and 0 deletions
@@ -0,0 +1,13 @@
The two hosts <b>moon</b> and <b>sun</b> are configured to use per-CPU
CHILD_SAs in transport mode in order to improve performance. Using the
<b>taskset</b> utility pings are sent from different CPUs triggering the
creation of additional SA via the installed trap policy. The first ping triggers
the creation of a fallback SA that's used while per-CPU SAs are created for
later packets. Note that responses sent from the peer may create per-CPU SAs
that are not triggered by local acquires.
<p>
UDP encapsulation is forced and the special value <b>encap</b> is used when
enabling per-CPU SAs to force random source ports for the outbound SAs.
<p>
The updown script automatically inserts iptables-based firewall rules
that let pass the tunneled traffic.