Debian Codegraph @

testing/pluto/ikev2-labeled-ipsec-04-no-label-on-responder-ike-childless/west.console.txt

raw
1 /testing/guestbin/swan-prep --hostkeys
2 Creating NSS database containing host keys
3 west #
4 echo 3 > /proc/sys/net/core/xfrm_acq_expires
5 west #
6 # build install se module (west only)
7 west #
8 ../../guestbin/semodule.sh ipsecspd-full-perm.te
9 Compiling targeted ipsecspd-full-perm module
10 Creating targeted ipsecspd-full-perm.pp policy package
11 rm tmp/ipsecspd-full-perm.mod.fc tmp/ipsecspd-full-perm.mod
12 ipsecspd-full-perm.pp installed
13 west #
14 # start pluto
15 west #
16 ipsec start
17 Redirecting to: [initsystem]
18 west #
19 ../../guestbin/wait-until-pluto-started
20 west #
21 ipsec auto --add labeled
22 "labeled": added IKEv2 connection
23 west #
24 echo "initdone"
25 initdone
26 west #
27 # should establish IKE SA and install two labels
28 west #
29 ipsec auto --up labeled
30 "labeled"[1] 192.1.2.23 #1: initiating IKEv2 connection to 192.1.2.23 using UDP
31 "labeled"[1] 192.1.2.23 #1: sent IKE_SA_INIT request to 192.1.2.23:UDP/500
32 "labeled"[1] 192.1.2.23 #1: processed IKE_SA_INIT response from 192.1.2.23:UDP/500 {cipher=AES_GCM_16_256 integ=n/a prf=HMAC_SHA2_512 group=DH19}, initiating IKE_AUTH
33 "labeled"[1] 192.1.2.23 #1: omitting CHILD SA payloads
34 "labeled"[1] 192.1.2.23 #1: sent IKE_AUTH request to 192.1.2.23:UDP/500
35 "labeled"[1] 192.1.2.23 #1: initiator established IKE SA; authenticated peer using preloaded certificate '@east' and 2nnn-bit RSASSA-PSS with SHA2_512 digital signature
36 west #
37 ../../guestbin/ipsec-kernel-state.sh
38 west #
39 ../../guestbin/ipsec-kernel-policy.sh
40 src 192.1.2.23/32 dst 192.1.2.45/32
41 security context system_u:object_r:ipsec_spd_t:s0
42 dir in priority PRIORITY ptype main
43 tmpl src 0.0.0.0 dst 0.0.0.0
44 proto esp reqid REQID mode transport
45 src 192.1.2.45/32 dst 192.1.2.23/32
46 security context system_u:object_r:ipsec_spd_t:s0
47 dir out priority PRIORITY ptype main
48 tmpl src 0.0.0.0 dst 0.0.0.0
49 proto esp reqid REQID mode transport
50 west #
51 # trigger traffic using the predefined ping_t context; won't work
52 west #
53 ../../guestbin/ping-once.sh --runcon "system_u:system_r:ping_t:s0:c1.c256" --forget -I 192.1.2.45 192.1.2.23
54 fired and forgotten
55 west #
56 ../../guestbin/wait-for-pluto.sh 'TS_UNACCEPTABLE'
57 "labeled"[1][1] 192.1.2.23 #2: CREATE_CHILD_SA failed with error notification TS_UNACCEPTABLE
58 west #
59 # there should be 0 tunnels - child rejected
60 west #
61 ipsec trafficstatus
62 west #
63 # there should be no bare shunts
64 west #
65 ipsec shuntstatus
66 Bare Shunt list:
67
68 west #
69 # let larval state expire
70 west #
71 ../../guestbin/wait-for.sh --no-match ' spi 0x00000000 ' -- ../../guestbin/ipsec-kernel-state.sh
72 west #
73 echo done
74 done
75 west #
76