Debian Codegraph @

testing/pluto/impair-install-ipsec-sa-inbound-policy-initiator-ikev2/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 IKEv2 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_policy
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 IKEv2 connection to 192.1.2.23 using UDP
41 "west-east" #1: sent IKE_SA_INIT request to 192.1.2.23:UDP/500
42 "west-east" #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
43 "west-east" #1: sent IKE_AUTH request to 192.1.2.23:UDP/500
44 "west-east" #1: initiator established IKE SA; authenticated peer using authby=secret and ID_FQDN '@east'
45 "west-east" #2: IMPAIR: kernel: install_ipsec_sa_inbound_policy in install_inbound_ipsec_kernel_policies()
46 "west-east" #2: CHILD SA failed: TEMPORARY_FAILURE
47 "west-east" #1: IKE SA established but initiator rejected Child SA response
48 "west-east" #2: sent INFORMATIONAL request to delete larval Child SA using IKE SA #1
49 "west-east" #2: connection is supposed to remain up; revival attempt 1 scheduled in 0 seconds
50 "west-east" #2: IMPAIR: revival: skip scheduling revival event
51 ERROR: "west-east" #2: netlink response for Del SA [email protected]: No such process (errno 3)
52 west #
53 # expect the on-demand kernel policy
54 west #
55 ../../guestbin/ipsec-kernel-policy.sh
56 src 192.0.1.0/24 dst 192.0.2.0/24
57 dir out priority PRIORITY ptype main
58 tmpl src 0.0.0.0 dst 0.0.0.0
59 proto esp reqid 0 mode transport
60 west #
61 # Trigger an acquire; this fast track the revival using
62 west #
63 # CREATE_CHILD_SA and again it will fail
64 west #
65 ../../guestbin/ping-once.sh --down -I 192.0.1.254 192.0.2.254
66 down
67 west #
68 ../../guestbin/wait-for-pluto.sh '#3: IMPAIR: revival'
69 "west-east" #3: IMPAIR: revival: skip scheduling revival event
70 west #
71 ../../guestbin/ipsec-kernel-state.sh
72 src 192.0.1.254 dst 192.0.2.254
73 proto esp spi 0x00000000 reqid 0 mode transport
74 replay-window 0
75 sel src 192.0.1.254/32 dst 192.0.2.254/32 proto icmp type 8 code 0 dev eth1
76 west #
77 ../../guestbin/ipsec-kernel-policy.sh
78 src 192.0.1.0/24 dst 192.0.2.0/24
79 dir out priority PRIORITY ptype main
80 tmpl src 0.0.0.0 dst 0.0.0.0
81 proto esp reqid 0 mode transport
82 west #
83 ipsec unroute west-east
84 west #
85