Debian Codegraph @

testing/pluto/interop-ikev2-strongswan-25-ke-mismatch-initiator/west.console.txt

raw
1 /testing/guestbin/swan-prep --nokeys
2 Creating empty NSS database
3 west #
4 # confirm that the network is alive
5 west #
6 ../../guestbin/wait-until-alive -I 192.0.1.254 192.0.2.254
7 destination -I 192.0.1.254 192.0.2.254 is alive
8 west #
9 # ensure that clear text does not get through
10 west #
11 iptables -A INPUT -i eth1 -s 192.0.2.0/24 -j DROP
12 west #
13 iptables -I INPUT -m policy --dir in --pol ipsec -j ACCEPT
14 west #
15 # confirm clear text does not get through
16 west #
17 ../../guestbin/ping-once.sh --down -I 192.0.1.254 192.0.2.254
18 down
19 west #
20 ipsec start
21 Redirecting to: [initsystem]
22 west #
23 ../../guestbin/wait-until-pluto-started
24 west #
25 ipsec auto --add westnet-eastnet-ikev2
26 "westnet-eastnet-ikev2": added IKEv2 connection
27 west #
28 echo "initdone"
29 initdone
30 west #
31 ipsec auto --up westnet-eastnet-ikev2 | grep -v libcurl
32 "westnet-eastnet-ikev2" #1: initiating IKEv2 connection to 192.1.2.23 using UDP
33 "westnet-eastnet-ikev2" #1: sent IKE_SA_INIT request to 192.1.2.23:UDP/500
34 "westnet-eastnet-ikev2" #1: Received unauthenticated INVALID_KE_PAYLOAD response to DH MODP1536; resending with suggested DH MODP2048
35 "westnet-eastnet-ikev2" #1: sent IKE_SA_INIT request to 192.1.2.23:UDP/500
36 "westnet-eastnet-ikev2" #1: processed IKE_SA_INIT response from 192.1.2.23:UDP/500 {cipher=AES_CBC_128 integ=HMAC_SHA1_96 prf=HMAC_SHA1 group=MODP2048}, initiating IKE_AUTH
37 "westnet-eastnet-ikev2" #1: sent IKE_AUTH request to 192.1.2.23:UDP/500
38 "westnet-eastnet-ikev2" #1: initiator established IKE SA; authenticated peer using authby=secret and ID_FQDN '@east'
39 "westnet-eastnet-ikev2" #2: initiator established Child SA using #1; IPsec tunnel [192.0.1.0/24===192.0.2.0/24] {ESP=>0xESPESP <0xESPESP xfrm=AES_CBC_256-HMAC_SHA2_256_128 DPD=passive}
40 west #
41 ../../guestbin/ping-once.sh --up -I 192.0.1.254 192.0.2.254
42 up
43 west #
44 echo done
45 done
46 west #
47 if [ -f /var/run/pluto/pluto.pid ]; then ../../guestbin/ipsec-kernel-state.sh ; fi
48 src 192.1.2.45 dst 192.1.2.23
49 proto esp spi 0xSPISPI reqid REQID mode tunnel
50 replay-window 0 flag af-unspec
51 auth-trunc hmac(sha256) 0xHASHKEY 128
52 enc cbc(aes) 0xENCKEY
53 lastused YYYY-MM-DD HH:MM:SS
54 src 192.1.2.23 dst 192.1.2.45
55 proto esp spi 0xSPISPI reqid REQID mode tunnel
56 replay-window 0 flag af-unspec
57 auth-trunc hmac(sha256) 0xHASHKEY 128
58 enc cbc(aes) 0xENCKEY
59 lastused YYYY-MM-DD HH:MM:SS
60 anti-replay esn context:
61 seq-hi 0x0, seq 0xXX, oseq-hi 0x0, oseq 0xXX
62 replay_window 128, bitmap-length 4
63 00000000 00000000 00000000 XXXXXXXX
64 west #
65 if [ -f /var/run/pluto/pluto.pid ]; then ../../guestbin/ipsec-kernel-policy.sh ; fi
66 src 192.0.1.0/24 dst 192.0.2.0/24
67 dir out priority PRIORITY ptype main
68 tmpl src 192.1.2.45 dst 192.1.2.23
69 proto esp reqid REQID mode tunnel
70 src 192.0.2.0/24 dst 192.0.1.0/24
71 dir fwd priority PRIORITY ptype main
72 tmpl src 192.1.2.23 dst 192.1.2.45
73 proto esp reqid REQID mode tunnel
74 src 192.0.2.0/24 dst 192.0.1.0/24
75 dir in priority PRIORITY ptype main
76 tmpl src 192.1.2.23 dst 192.1.2.45
77 proto esp reqid REQID mode tunnel
78 west #
79 if [ -f /var/run/charon.pid -o -f /var/run/strongswan/charon.pid ]; then strongswan status ; fi
80 west #
81