/testing/guestbin/swan-prep
west #
 ipsec start
Redirecting to: [initsystem]
west #
 ../../guestbin/wait-until-pluto-started
west #
 ipsec auto --add one
"one": added IKEv2 connection
west #
 ipsec auto --add two
"two": added IKEv2 connection
west #
 echo "initdone"
initdone
west #
 ipsec auto --up one
"one" #1: initiating IKEv2 connection to 192.1.2.23 using UDP
"one" #1: sent IKE_SA_INIT request to 192.1.2.23:UDP/500
"one" #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=DH19}, initiating IKE_AUTH
"one" #1: sent IKE_AUTH request to 192.1.2.23:UDP/500
"one" #1: initiator established IKE SA; authenticated peer using authby=secret and ID_FQDN '@east'
"one" #2: initiator established Child SA using #1; IPsec tunnel [192.0.1.0-192.0.1.255:80-80 6===192.0.2.0/24/TCP] {ESP=>0xESPESP <0xESPESP xfrm=AES_CBC_128-HMAC_SHA1_96 DPD=passive}
west #
 sleep 10
west #
 echo done
done
west #
 ipsec auto --up two
"two" #4: initiating Child SA using IKE SA #1
"two" #4: sent CREATE_CHILD_SA request for new IPsec SA
"two" #4: initiator established Child SA using #1; IPsec tunnel [192.0.11.0-192.0.11.255:0-65535 6===192.0.22.0-192.0.22.255:88-88 6] {ESP=>0xESPESP <0xESPESP xfrm=AES_CBC_128-HMAC_SHA1_96-DH19 DPD=passive}
west #
 sleep 10
west #
 echo done
done
west #
 # State's received msgid should be incremented after each new
west #
 # exchange.  Since west, the IKE SA initiator, is responding to
west #
 # CHILD_SA the values start at 0.
west #
 grep hdr.isa_msgid /tmp/pluto.log
| #1 st.st_msgid_lastrecv -1 md.hdr.isa_msgid 00000000
| #1 st.st_msgid_lastrecv 0 md.hdr.isa_msgid 00000001
| #1 st.st_msgid_lastrecv 1 md.hdr.isa_msgid 00000002
west #
 
