Debian Codegraph @

testing/pluto/impair-install-ipsec-sa-inbound-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_inbound_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_inbound_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 ERROR: "west-east" #2: kernel: xfrm XFRM_MSG_DELPOLICY delete response for flow (in): No such file or directory (errno 2)
53 "west-east" #2: kernel: replace_ipsec_with_bare_kernel_policy() inbound delete failed
54 "west-east" #2: deleting IPsec SA (QUICK_I1) and NOT sending notification
55 ERROR: "west-east" #2: netlink response for Del SA [email protected]: No such process (errno 3)
56 ERROR: "west-east" #2: netlink response for Del SA [email protected]: No such process (errno 3)
57 west #
58 # expect the on-demand kernel policy
59 west #
60 ../../guestbin/ipsec-kernel-policy.sh
61 src 192.0.1.0/24 dst 192.0.2.0/24
62 dir out priority PRIORITY ptype main
63 tmpl src 0.0.0.0 dst 0.0.0.0
64 proto esp reqid 0 mode transport
65 west #
66 # Trigger an acquire; this fast track the revival using
67 west #
68 # CREATE_CHILD_SA and again it will fail
69 west #
70 ../../guestbin/ping-once.sh --down -I 192.0.1.254 192.0.2.254
71 down
72 west #
73 ../../guestbin/wait-for-pluto.sh '#3: IMPAIR: revival'
74 "west-east" #3: IMPAIR: revival: skip scheduling revival event
75 west #
76 ../../guestbin/ipsec-kernel-state.sh
77 src 192.0.1.254 dst 192.0.2.254
78 proto esp spi 0x00000000 reqid 0 mode transport
79 replay-window 0
80 sel src 192.0.1.254/32 dst 192.0.2.254/32 proto icmp type 8 code 0 dev eth1
81 west #
82 ../../guestbin/ipsec-kernel-policy.sh
83 src 192.0.1.0/24 dst 192.0.2.0/24
84 dir out priority PRIORITY ptype main
85 tmpl src 0.0.0.0 dst 0.0.0.0
86 proto esp reqid 0 mode transport
87 west #
88 ipsec unroute west-east
89 west #
90