../../guestbin/swan-prep --x509
Preparing X.509 files
west #
 ipsec start
Redirecting to: [initsystem]
west #
 ../../guestbin/wait-until-pluto-started
west #
 ipsec add west-east
"west-east": added IKEv2 connection
west #
 ipsec whack --impair suppress-retransmits --impair send-no-delete --impair revival
west #
 ipsec connectionstatus | grep -i -e resume -e ticket
"west-east":   policy: IKEv2+RSASIG+ECDSA+RSASIG_v1_5+ENCRYPT+TUNNEL+PFS+IKE_FRAG_ALLOW+ESN_NO+ESN_YES+RESUME;
"west-east":   session resume ticket: none
west #
 echo "initdone"
initdone
west #
 ipsec up west-east
"west-east" #1: initiating IKEv2 connection to 192.1.2.23 using UDP
"west-east" #1: sent IKE_SA_INIT request to 192.1.2.23:UDP/500
"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
"west-east" #1: asking for session resume ticket
"west-east" #1: sent IKE_AUTH request to 192.1.2.23:UDP/500
"west-east" #1: 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'
"west-east" #1: received v2N_TICKET_LT_OPAQUE
"west-east" #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 #
 ../../guestbin/ping-once.sh --up -I 192.0.1.254 192.0.2.254
up
west #
 ipsec trafficstatus
#2: "west-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'
west #
 ipsec status | grep ticket
"west-east":   session resume ticket: length: B bytes; expires-in: Ns;
west #
 ipsec whack --suspend --name west-east
west #
 ipsec up west-east
"west-east" #3: sent IKE_SESSION_RESUME request to 192.1.2.23:UDP/500
"west-east" #3: initiator processed IKE_SESSION_RESUME; processed IKE_SESSION_RESUME response, preparing IKE_AUTH request
"west-east" #3: asking for session resume ticket
"west-east" #3: sent IKE_AUTH request to 192.1.2.23:UDP/500
"west-east" #3: initiator established IKE SA; authenticated peer using authby=session-resume
"west-east" #3: received v2N_TICKET_LT_OPAQUE
"west-east" #4: initiator established Child SA using #3; 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 #
 ../../guestbin/ping-once.sh --up -I 192.0.1.254 192.0.2.254
up
west #
 ipsec down west-east
"west-east": initiating delete of connection's IKE SA #3 (and Child SA #4)
"west-east" #3: sent INFORMATIONAL request to delete IKE SA
"west-east" #4: ESP traffic information: in=84B out=84B
"west-east" #3: deleting IKE SA (established IKE SA)
west #
 echo done
done
west #
 
