/testing/guestbin/swan-prep
west #
 ipsec start
Redirecting to: [initsystem]
west #
 /testing/pluto/bin/wait-until-pluto-started
west #
 ipsec auto --add one
002 "one": added IKEv2 connection
west #
 ipsec auto --add two
002 "two": added IKEv2 connection
west #
 echo "initdone"
initdone
west #
 ipsec auto --up one
1v2 "one" #1: initiating IKEv2 connection
1v2 "one" #1: sent IKE_SA_INIT request
1v2 "one" #1: sent IKE_AUTH request {auth=IKEv2 cipher=AES_CBC_128 integ=HMAC_SHA1_96 prf=HMAC_SHA1 group=MODP2048}
002 "one" #1: IKEv2 mode peer ID is ID_FQDN: '@east'
003 "one" #1: authenticated using authby=secret
002 "one" #2: negotiated connection [192.0.1.0-192.0.1.255:80-80 6] -> [192.0.2.0-192.0.2.255:0-65535 6]
004 "one" #2: IPsec SA established tunnel mode {ESP=>0xESPESP <0xESPESP xfrm=AES_CBC_128-HMAC_SHA1_96 NATOA=none NATD=none DPD=passive}
west #
 sleep 10
west #
 echo done
done
west #
 ipsec auto --up two
1v2 "two" #4: sent CREATE_CHILD_SA request for new IPsec SA
002 "two" #4: negotiated connection [192.0.11.0-192.0.11.255:0-65535 6] -> [192.0.22.0-192.0.22.255:88-88 6]
004 "two" #4: IPsec SA established tunnel mode {ESP=>0xESPESP <0xESPESP xfrm=AES_CBC_128-HMAC_SHA1_96-MODP2048 NATOA=none NATD=none 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 #
 
