2 # this is test configuration for unique policy on loopback.
6 # connection to 9999 encrypted, reverse no encrypted.
7 spdadd ::1 ::1[9999] tcp
9 esp/transport//unique:2 ;
11 # Session encrypted. Inbound policy check takes place non-strictly.
12 spdadd ::1 ::1[9998] tcp
14 esp/transport//unique:1 ;
15 spdadd ::1[9998] ::1 tcp
17 esp/transport//unique:2 ;
18 spdadd ::1[9998] ::1 tcp
20 esp/transport//unique:1 ;
22 # Cause new SA to be acquired.
23 spdadd ::1 ::1[9997] tcp
25 esp/transport//unique ;
28 spdadd ::1 ::1[9996] tcp
30 esp/transport//require ;
32 # reqid will be updated by kernel.
33 spdadd ::1 ::1[9995] tcp
35 esp/transport//unique:28000 ;
38 add ::1 ::1 esp 0x1001
40 -E des-cbc "kamekame";
41 add ::1 ::1 esp 0x1002
43 -E des-cbc "hogehoge";