/testing/guestbin/swan-prep --x509
Preparing X.509 files
north #
 ipsec start
Redirecting to: [initsystem]
north #
 ../../guestbin/wait-until-pluto-started
north #
 echo initdone
initdone
north #
 # north is redirected to 1 - 192.1.2.44 - which is down
north #
 ipsec whack --impair none
north #
 ipsec whack --impair revival --impair timeout_on_retransmit
north #
 ipsec auto --add north-east
"north-east": added IKEv2 connection
north #
 ipsec auto --up north-east
"north-east" #1: initiating IKEv2 connection to 192.1.2.23 using UDP
"north-east" #1: sent IKE_SA_INIT request to 192.1.2.23:UDP/500
"north-east" #1: IKE_SA_INIT response redirects to new gateway 192.1.2.44
"north-east" #1: scheduling redirect 1 to 192.1.2.44
"north-east" #1: IMPAIR: redirect: skip scheduling redirect event
"north-east" #1: deleting IKE SA (sent IKE_SA_INIT request)
north #
 ipsec whack --impair trigger_revival:1
"north-east": IMPAIR: dispatch REVIVAL; redirect attempt 1 from 192.1.2.23 to 192.1.2.44; delete IKE SA
"north-east" #2: initiating IKEv2 connection to 192.1.2.44 using UDP
"north-east" #2: sent IKE_SA_INIT request to 192.1.2.44:UDP/500
"north-east" #2: IMPAIR: retransmit so timing out SA (may retry)
"north-east" #2: connection is supposed to remain up; revival attempt 1 scheduled in 0 seconds
"north-east" #2: IMPAIR: revival: skip scheduling revival event
"north-east" #2: deleting IKE SA (sent IKE_SA_INIT request)
north #
 ipsec auto --delete north-east
north #
 # north is redirected to 3 - 192.1.2.46 - which is down
north #
 ipsec whack --impair none
north #
 ipsec whack --impair revival --impair timeout_on_retransmit
north #
 ipsec auto --add north-east
"north-east": added IKEv2 connection
north #
 ipsec auto --up north-east
"north-east" #3: initiating IKEv2 connection to 192.1.2.23 using UDP
"north-east" #3: sent IKE_SA_INIT request to 192.1.2.23:UDP/500
"north-east" #3: IKE_SA_INIT response redirects to new gateway 192.1.2.46
"north-east" #3: scheduling redirect 1 to 192.1.2.46
"north-east" #3: IMPAIR: redirect: skip scheduling redirect event
"north-east" #3: deleting IKE SA (sent IKE_SA_INIT request)
north #
 ipsec whack --impair trigger_revival:2
"north-east": IMPAIR: dispatch REVIVAL; redirect attempt 1 from 192.1.2.23 to 192.1.2.46; delete IKE SA
"north-east" #4: initiating IKEv2 connection to 192.1.2.46 using UDP
"north-east" #4: sent IKE_SA_INIT request to 192.1.2.46:UDP/500
"north-east" #4: IMPAIR: retransmit so timing out SA (may retry)
"north-east" #4: connection is supposed to remain up; revival attempt 1 scheduled in 0 seconds
"north-east" #4: IMPAIR: revival: skip scheduling revival event
"north-east" #4: deleting IKE SA (sent IKE_SA_INIT request)
north #
 ipsec auto --delete north-east
north #
 # north is redirected to 2 - 192.1.2.45 - which is up
north #
 ipsec whack --impair none
north #
 ipsec whack --impair revival --impair suppress_retransmits
north #
 ipsec auto --add north-east
"north-east": added IKEv2 connection
north #
 ipsec auto --up north-east
"north-east" #5: initiating IKEv2 connection to 192.1.2.23 using UDP
"north-east" #5: sent IKE_SA_INIT request to 192.1.2.23:UDP/500
"north-east" #5: IKE_SA_INIT response redirects to new gateway 192.1.2.45
"north-east" #5: scheduling redirect 1 to 192.1.2.45
"north-east" #5: IMPAIR: redirect: skip scheduling redirect event
"north-east" #5: deleting IKE SA (sent IKE_SA_INIT request)
north #
 ipsec whack --impair trigger_revival:3
"north-east": IMPAIR: dispatch REVIVAL; redirect attempt 1 from 192.1.2.23 to 192.1.2.45; delete IKE SA
"north-east" #6: initiating IKEv2 connection to 192.1.2.45 using UDP
"north-east" #6: sent IKE_SA_INIT request to 192.1.2.45:UDP/500
"north-east" #6: processed IKE_SA_INIT response from 192.1.2.45:UDP/500 {cipher=AES_GCM_16_256 integ=n/a prf=HMAC_SHA2_512 group=DH19}, initiating IKE_AUTH
"north-east" #6: sent IKE_AUTH request to 192.1.2.45:UDP/500
"north-east" #6: initiator established IKE SA; authenticated peer certificate 'C=CA, ST=Ontario, L=Toronto, O=Libreswan, OU=Test Department, CN=east.testing.libreswan.org, E=user-east@testing.libreswan.org' and 3nnn-bit RSASSA-PSS with SHA2_512 digital signature issued by 'C=CA, ST=Ontario, L=Toronto, O=Libreswan, OU=Test Department, CN=Libreswan test CA for mainca, E=testing@libreswan.org'
"north-east" #7: received INTERNAL_IP4_ADDRESS 192.0.2.101
"north-east" #7: received INTERNAL_IP4_DNS 1.2.3.4
"north-east" #7: received INTERNAL_IP4_DNS 5.6.7.8
"north-east" #7: up-client output: updating resolvconf
"north-east" #7: initiator established Child SA using #6; IPsec tunnel [192.0.2.101/32===0.0.0.0/0] {ESP/ESN=>0xESPESP <0xESPESP xfrm=AES_GCM_16_256-NONE DPD=passive}
north #
 ../../guestbin/ping-once.sh --up 192.0.2.254
up
north #
 ipsec whack --trafficstatus
#7: "north-east", type=ESP, add_time=1234567890, inBytes=84, outBytes=84, maxBytes=2^63B, id='C=CA, ST=Ontario, L=Toronto, O=Libreswan, OU=Test Department, CN=east.testing.libreswan.org, E=user-east@testing.libreswan.org', lease=192.0.2.101/32
north #
 ipsec auto --delete north-east
"north-east": terminating SAs using this connection
"north-east" #6: deleting IKE SA (ESTABLISHED_IKE_SA) and sending notification
"north-east" #7: down-client output: restoring resolvconf
"north-east" #7: ESP traffic information: in=84B out=84B
north #
 ipsec whack --trafficstatus
north #
 ipsec whack --shutdown
Pluto is shutting down

