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).
14 lines
753 B
Plaintext
Executable File
14 lines
753 B
Plaintext
Executable File
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.
|