/testing/guestbin/swan-prep --nokeys
Creating empty NSS database
west #
 ipsec start
Redirecting to: [initsystem]
west #
 ../../guestbin/wait-until-pluto-started
west #
 ipsec auto --add westnet-eastnet-ikev2a
"westnet-eastnet-ikev2a": added IKEv2 connection
west #
 ipsec auto --add westnet-eastnet-ikev2b
"westnet-eastnet-ikev2b": added IKEv2 connection
west #
 echo "initdone"
initdone
west #
 ipsec whack --impair revival
west #
 # initial exchange
west #
 ipsec auto --up westnet-eastnet-ikev2a
"westnet-eastnet-ikev2a" #1: initiating IKEv2 connection to 192.1.2.23 using UDP
"westnet-eastnet-ikev2a" #1: sent IKE_SA_INIT request to 192.1.2.23:UDP/500
"westnet-eastnet-ikev2a" #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-ikev2a" #1: sent IKE_AUTH request to 192.1.2.23:UDP/500
"westnet-eastnet-ikev2a" #1: initiator established IKE SA; authenticated peer using authby=secret and ID_FQDN '@east'
"westnet-eastnet-ikev2a" #2: initiator established Child SA using #1; IPsec tunnel [192.0.1.0/24===192.0.2.0/24] {ESP/ESN=>0xESPESP <0xESPESP xfrm=AES_GCM_16_256-NONE DPD=passive}
west #
 # creat-child-sa request. Expected to fail due to firewall
west #
 # we expect east to re-answer our retransmits
west #
 # drop silently to avoid race conditions of kernel log
west #
 iptables -I INPUT -p udp --dport 500 -j DROP
west #
 ipsec whack --impair timeout_on_retransmit
west #
 ipsec auto --up westnet-eastnet-ikev2b #retransmits
"westnet-eastnet-ikev2b" #3: initiating Child SA using IKE SA #1
"westnet-eastnet-ikev2b" #3: sent CREATE_CHILD_SA request to create Child SA using IKE SA #1
"westnet-eastnet-ikev2a" #1: IMPAIR: retransmit so timing out SA (may retry)
"westnet-eastnet-ikev2a" #2: connection is supposed to remain up; revival attempt 1 scheduled in 0 seconds
"westnet-eastnet-ikev2a" #2: IMPAIR: revival: skip scheduling revival event
"westnet-eastnet-ikev2a" #2: ESP traffic information: in=0B out=0B
"westnet-eastnet-ikev2b" #3: connection is supposed to remain up; revival attempt 1 scheduled in 0 seconds
"westnet-eastnet-ikev2b" #3: IMPAIR: revival: skip scheduling revival event
"westnet-eastnet-ikev2a" #1: deleting IKE SA (established IKE SA)
west #
 echo done
done
west #
 # should show retransmits on west and replies on east
west #
 grep sending /tmp/pluto.log |grep through
| sending 732 bytes for initiating IKE_SA_INIT through eth1 from 192.1.2.45:500 to 192.1.2.23:500 using UDP (for #1)
| sending 433 bytes for initiating IKE_AUTH through eth1 from 192.1.2.45:500 to 192.1.2.23:500 using UDP (for #1)
| sending 373 bytes for initiate new Child SA (CREATE_CHILD_SA) through eth1 from 192.1.2.45:500 to 192.1.2.23:500 using UDP (for #1)
west #
 
