Debian Codegraph @

testing/pluto/impair-install-ipsec-sa-outbound-state-initiator-ikev1/west.console.txt

raw
1 /testing/guestbin/swan-prep
2 west #
3 # confirm that the network is alive
4 west #
5 ../../guestbin/wait-until-alive -I 192.0.1.254 192.0.2.254
6 destination -I 192.0.1.254 192.0.2.254 is alive
7 west #
8 # ensure that clear text does not get through
9 west #
10 iptables -A INPUT -i eth1 -s 192.0.2.0/24 -j DROP
11 west #
12 iptables -I INPUT -m policy --dir in --pol ipsec -j ACCEPT
13 west #
14 # confirm clear text does not get through
15 west #
16 ../../guestbin/ping-once.sh --down -I 192.0.1.254 192.0.2.254
17 down
18 west #
19 ipsec start
20 Redirecting to: [initsystem]
21 west #
22 ../../guestbin/wait-until-pluto-started
23 west #
24 ipsec add west-east
25 "west-east": added IKEv1 connection
26 west #
27 ipsec whack --impair suppress_retransmits
28 west #
29 ipsec whack --impair revival
30 west #
31 ipsec route west-east
32 west #
33 ipsec whack --impair install_ipsec_sa_outbound_state
34 west #
35 # Initiate; during IKE_AUTH the child should fail and the connection
36 west #
37 # put on to the revival queue
38 west #
39 ipsec up west-east
40 "west-east" #1: initiating IKEv1 Main Mode connection
41 "west-east" #1: sent Main Mode request
42 "west-east" #1: sent Main Mode I2
43 "west-east" #1: sent Main Mode I3
44 "west-east" #1: Peer ID is ID_FQDN: '@east'
45 "west-east" #1: ISAKMP SA established {auth=PRESHARED_KEY cipher=AES_CBC_256 integ=HMAC_SHA2_256 group=MODP2048}
46 "west-east" #2: initiating Quick Mode IKEv1+PSK+ENCRYPT+TUNNEL+PFS+ROUTE+UP+IKE_FRAG_ALLOW+ESN_NO+ESN_YES
47 "west-east" #2: sent Quick Mode request
48 "west-east" #2: IMPAIR: kernel: install_ipsec_sa_outbound_state in setup_half_kernel_state()
49 "west-east" #2: state transition failed: failed
50 "west-east" #2: connection is supposed to remain up; revival attempt 1 scheduled in 0 seconds
51 "west-east" #2: IMPAIR: revival: skip scheduling revival event
52 "west-east" #2: deleting IPsec SA (QUICK_I1) and NOT sending notification
53 ERROR: "west-east" #2: netlink response for Del SA [email protected]: No such process (errno 3)
54 west #
55 # expect the on-demand kernel policy
56 west #
57 ../../guestbin/ipsec-kernel-policy.sh
58 src 192.0.1.0/24 dst 192.0.2.0/24
59 dir out priority PRIORITY ptype main
60 tmpl src 0.0.0.0 dst 0.0.0.0
61 proto esp reqid 0 mode transport
62 west #
63 # Trigger an acquire; this fast track the revival using
64 west #
65 # CREATE_CHILD_SA and again it will fail
66 west #
67 ../../guestbin/ping-once.sh --down -I 192.0.1.254 192.0.2.254
68 down
69 west #
70 ../../guestbin/wait-for-pluto.sh '#3: IMPAIR: revival'
71 "west-east" #3: IMPAIR: revival: skip scheduling revival event
72 west #
73 ../../guestbin/ipsec-kernel-state.sh
74 src 192.0.1.254 dst 192.0.2.254
75 proto esp spi 0x00000000 reqid 0 mode transport
76 replay-window 0
77 sel src 192.0.1.254/32 dst 192.0.2.254/32 proto icmp type 8 code 0 dev eth1
78 west #
79 ../../guestbin/ipsec-kernel-policy.sh
80 src 192.0.1.0/24 dst 192.0.2.0/24
81 dir out priority PRIORITY ptype main
82 tmpl src 0.0.0.0 dst 0.0.0.0
83 proto esp reqid 0 mode transport
84 west #
85 ipsec unroute west-east
86 west #
87