../../guestbin/swan-prep --hostkeys
Creating NSS database containing host keys
west #
 # confirm that the network is alive
west #
 ../../guestbin/wait-until-alive 192.0.2.254 -I 192.0.1.254
destination 192.0.2.254 -I 192.0.1.254 is alive
west #
 ipsec start
Redirecting to: [initsystem]
west #
 ../../guestbin/wait-until-pluto-started
west #
 ipsec whack --impair suppress_retransmits
west #
 echo "initdone"
initdone
west #
 ipsec auto --add westnet-eastnet-propnum
"westnet-eastnet-propnum": added IKEv2 connection
west #
 ipsec auto --up westnet-eastnet-propnum
"westnet-eastnet-propnum" #1: initiating IKEv2 connection to 192.1.2.23 using UDP
"westnet-eastnet-propnum" #1: sent IKE_SA_INIT request to 192.1.2.23:UDP/500
"westnet-eastnet-propnum" #1: processed IKE_SA_INIT response from 192.1.2.23:UDP/500 {cipher=3DES_CBC_192 integ=HMAC_MD5_96 prf=HMAC_MD5 group=MODP2048}, initiating IKE_AUTH
"westnet-eastnet-propnum" #1: sent IKE_AUTH request to 192.1.2.23:UDP/500 with digital-signature and FQDN '@west'; Child SA #2 {ESP <0xESPESP}
"westnet-eastnet-propnum" #1: initiator established IKE SA; authenticated peer using preloaded certificate '@east' and 2nnn-bit RSASSA-PSS with SHA2_512 digital signature
"westnet-eastnet-propnum" #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_CBC_128-HMAC_SHA1_96 DPD=passive}
west #
 ipsec auto --delete westnet-eastnet-propnum
"westnet-eastnet-propnum": terminating SAs using this connection
"westnet-eastnet-propnum" #1: deleting IKE SA (ESTABLISHED_IKE_SA) and sending notification
"westnet-eastnet-propnum" #2: ESP traffic information: in=0B out=0B
west #
 : dump all emitted and parsed proposals onto the console
west #
 : weird pattern deals with optional length field
west #
 grep -v '| helper' /tmp/pluto.log | grep -B 1 -e '|    last proposal: ' -A 3 -e '|    prop #: '
| ****emit IKEv2 Proposal Substructure Payload:
|    last proposal: v2_PROPOSAL_NON_LAST (0x2)
|    prop #: 1 (01)
|    proto ID: IKEv2_SEC_PROTO_IKE (0x1)
|    spi size: 0 (00)
|    # transforms: 5 (05)
--
| ****emit IKEv2 Proposal Substructure Payload:
|    last proposal: v2_PROPOSAL_LAST (0x0)
|    prop #: 2 (02)
|    proto ID: IKEv2_SEC_PROTO_IKE (0x1)
|    spi size: 0 (00)
|    # transforms: 4 (04)
--
| ****parse IKEv2 Proposal Substructure Payload:
|    last proposal: v2_PROPOSAL_LAST (0x0)
|    length: 40 (00 28)
|    prop #: 2 (02)
|    proto ID: IKEv2_SEC_PROTO_IKE (0x1)
|    spi size: 0 (00)
|    # transforms: 4 (04)
--
| *****emit IKEv2 Proposal Substructure Payload:
|    last proposal: v2_PROPOSAL_NON_LAST (0x2)
|    prop #: 1 (01)
|    proto ID: IKEv2_SEC_PROTO_ESP (0x3)
|    spi size: 4 (04)
|    # transforms: 5 (05)
--
| *****emit IKEv2 Proposal Substructure Payload:
|    last proposal: v2_PROPOSAL_LAST (0x0)
|    prop #: 2 (02)
|    proto ID: IKEv2_SEC_PROTO_ESP (0x3)
|    spi size: 4 (04)
|    # transforms: 4 (04)
--
| ***parse IKEv2 Proposal Substructure Payload:
|    last proposal: v2_PROPOSAL_LAST (0x0)
|    length: 40 (00 28)
|    prop #: 1 (01)
|    proto ID: IKEv2_SEC_PROTO_ESP (0x3)
|    spi size: 4 (04)
|    # transforms: 3 (03)
west #
