/testing/guestbin/swan-prep --nokeys
Creating empty NSS database
west #
 # confirm that newtwork is alive
west #
 ../../guestbin/wait-until-alive -I 192.0.1.254 192.0.2.254
destination -I 192.0.1.254 192.0.2.254 is alive
west #
 ipsec pluto --config /etc/ipsec.conf --leak-detective
west #
 ../../guestbin/wait-until-pluto-started
west #
 ipsec auto --add westnet-eastnet-ipv4-psk-ppk
"westnet-eastnet-ipv4-psk-ppk": added IKEv2 connection
west #
 ipsec auto --status | grep westnet-eastnet-ipv4-psk-ppk
"westnet-eastnet-ipv4-psk-ppk": 192.0.1.0/24===192.1.2.45[@west]...192.1.2.23[@east]===192.0.2.0/24; unrouted; my_ip=unset; their_ip=unset;
"westnet-eastnet-ipv4-psk-ppk":   host: oriented; local: 192.1.2.45; remote: 192.1.2.23;
"westnet-eastnet-ipv4-psk-ppk":   my_updown=ipsec _updown;
"westnet-eastnet-ipv4-psk-ppk":   xauth us:none, xauth them:none,  my_username=[any]; their_username=[any]
"westnet-eastnet-ipv4-psk-ppk":   our auth:secret, their auth:secret, our autheap:none, their autheap:none;
"westnet-eastnet-ipv4-psk-ppk":   modecfg info: us:none, them:none, modecfg policy:push, dns:unset, domains:unset, cat:unset;
"westnet-eastnet-ipv4-psk-ppk":   sec_label:unset;
"westnet-eastnet-ipv4-psk-ppk":   ike_life: 28800s; ipsec_life: 28800s; ipsec_max_bytes: 2^63B; ipsec_max_packets: 2^63; replay_window: 128; rekey_margin: 540s; rekey_fuzz: 100%;
"westnet-eastnet-ipv4-psk-ppk":   retransmit-interval: 9999ms; retransmit-timeout: 99s; iketcp:no; iketcp-port:4500;
"westnet-eastnet-ipv4-psk-ppk":   initial-contact:no; cisco-unity:no; fake-strongswan:no; send-vendorid:no; send-no-esp-tfc:no;
"westnet-eastnet-ipv4-psk-ppk":   policy: IKEv2+PSK+ENCRYPT+TUNNEL+PFS+IKE_FRAG_ALLOW+PPK_ALLOW+PPK_INSIST+ESN_NO+ESN_YES;
"westnet-eastnet-ipv4-psk-ppk":   v2-auth-hash-policy: none;
"westnet-eastnet-ipv4-psk-ppk":   conn_prio: 24,24; interface: eth1; metric: 0; mtu: unset; sa_prio:auto; sa_tfc:none;
"westnet-eastnet-ipv4-psk-ppk":   nflog-group: unset; mark: unset; vti-iface:unset; vti-routing:no; vti-shared:no; nic-offload:no;
"westnet-eastnet-ipv4-psk-ppk":   our idtype: ID_FQDN; our id=@west; their idtype: ID_FQDN; their id=@east
"westnet-eastnet-ipv4-psk-ppk":   liveness: passive; dpddelay:0s; retransmit-timeout:60s
"westnet-eastnet-ipv4-psk-ppk":   nat-traversal: encapsulation:auto; keepalive:20s
"westnet-eastnet-ipv4-psk-ppk":   routing: unrouted;
"westnet-eastnet-ipv4-psk-ppk":   conn serial: $1;
west #
 ipsec whack --impair suppress_retransmits
west #
 echo "initdone"
initdone
west #
 ipsec whack --impair suppress_retransmits
west #
 # expected to fail
west #
 ipsec auto --up westnet-eastnet-ipv4-psk-ppk
"westnet-eastnet-ipv4-psk-ppk" #1: initiating IKEv2 connection to 192.1.2.23 using UDP
"westnet-eastnet-ipv4-psk-ppk" #1: sent IKE_SA_INIT request to 192.1.2.23:UDP/500
"westnet-eastnet-ipv4-psk-ppk" #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
"westnet-eastnet-ipv4-psk-ppk" #1: connection requires PPK, but we didn't find one
"westnet-eastnet-ipv4-psk-ppk" #1: encountered fatal error in state IKE_SA_INIT_IR
"westnet-eastnet-ipv4-psk-ppk" #1: connection is supposed to remain up; revival attempt 1 scheduled in 0 seconds
"westnet-eastnet-ipv4-psk-ppk" #1: deleting IKE SA (processed IKE_SA_INIT response, preparing IKE_INTERMEDIATE or IKE_AUTH request)
west #
 echo done
done
west #
 ipsec whack --shutdown
Pluto is shutting down
west #
 
