Debian Codegraph @

testing/pluto/crossing-streams-04-ikev2-initiator-child-up-ike-down/west.console.txt

raw
1 /testing/guestbin/swan-prep --46 --nokey
2 Creating empty NSS database
3 west #
4 ../../guestbin/ip.sh address show eth0 | grep global | sort
5 inet 192.0.1.254/24 scope global eth0
6 inet6 2001:db8:0:1::254/64 scope global
7 west #
8 ipsec start
9 Redirecting to: [initsystem]
10 west #
11 ../../guestbin/wait-until-pluto-started
12 west #
13 ipsec whack --impair suppress_retransmits
14 west #
15 ipsec add west-cuckold
16 "west-cuckold": added IKEv2 connection
17 west #
18 ipsec add west-cuckoo
19 "west-cuckoo": added IKEv2 connection
20 west #
21 echo "initdone"
22 initdone
23 west #
24 # bring up the IKE SA
25 west #
26 ipsec up west-cuckold
27 "west-cuckold" #1: initiating IKEv2 connection to 192.1.2.23 using UDP
28 "west-cuckold" #1: sent IKE_SA_INIT request to 192.1.2.23:UDP/500
29 "west-cuckold" #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
30 "west-cuckold" #1: sent IKE_AUTH request to 192.1.2.23:UDP/500
31 "west-cuckold" #1: initiator established IKE SA; authenticated peer using authby=secret and ID_FQDN '@east'
32 "west-cuckold" #2: initiator established Child SA using #1; IPsec tunnel [192.0.3.0/24===192.0.2.0/24] {ESP/ESN=>0xESPESP <0xESPESP xfrm=AES_GCM_16_256-NONE DPD=passive}
33 west #
34 # stall the Child SA's crypto
35 west #
36 ipsec whack --impair helper_thread_delay:5
37 west #
38 ipsec up west-cuckoo --asynchronous
39 "west-cuckoo" #3: initiating Child SA using IKE SA #1
40 "west-cuckoo" #3: IMPAIR: job 3 helper 0 #3/#3 submit_v2_CREATE_CHILD_SA_new_child (dh): helper is pausing for 5 seconds
41 west #
42 ipsec whack --impair helper_thread_delay:no
43 west #
44 # start the delete but impair the message leaving the delete hanging
45 west #
46 ipsec whack --impair block_outbound
47 IMPAIR: recording all outbound messages
48 IMPAIR: block all outbound messages: no -> yes
49 west #
50 ipsec whack --down-ike --name west-cuckold --asynchronous
51 west #
52 ../../guestbin/wait-for-pluto.sh '#1: IMPAIR: blocking outbound message 1'
53 "west-cuckold" #1: IMPAIR: blocking outbound message 1
54 west #
55 ipsec whack --no-impair block_outbound
56 IMPAIR: block all outbound messages: yes -> no
57 west #
58 # wait for the child SA's stalled crypto to complete and then get
59 west #
60 # added to the IKE SA's message queue
61 west #
62 ../../guestbin/wait-for-pluto.sh '#3: adding CREATE_CHILD_SA request'
63 "west-cuckoo" #3: adding CREATE_CHILD_SA request to IKE SA #1's message queue
64 west #
65 # Now release the delete! The IKE SA and its child will die but ...
66 west #
67 ipsec whack --impair drip_outbound:1
68 IMPAIR: start processing outbound drip packet 1
69 IMPAIR: stop processing outbound drip packet 1
70 west #
71 # The second child will revive itself using its own IKE SA
72 west #
73 ../../guestbin/wait-for-pluto.sh '#4: initiator established IKE SA'
74 "west-cuckoo" #4: initiator established IKE SA; authenticated peer using authby=secret and ID_FQDN '@east'
75 west #
76 ../../guestbin/wait-for-pluto.sh '#5: initiator established Child SA using #4'
77 "west-cuckoo" #5: initiator established Child SA using #4; IPsec tunnel [192.0.3.0/24===192.0.20.0/24] {ESP/ESN=>0xESPESP <0xESPESP xfrm=AES_GCM_16_256-NONE DPD=passive}
78 west #
79 # expect second child
80 west #
81 ipsec trafficstatus
82 #5: "west-cuckoo", type=ESP, add_time=1234567890, inBytes=0, outBytes=0, maxBytes=2^63B, id='@east'
83 west #
84 # non-zero counts confirm encrypted traffic flowing
85 west #
86 ipsec trafficstatus
87 #5: "west-cuckoo", type=ESP, add_time=1234567890, inBytes=0, outBytes=0, maxBytes=2^63B, id='@east'
88 west #
89