/testing/guestbin/swan-prep --hostkeys
Creating NSS database containing host keys
west #
 # confirm that the network is alive
west #
 ../../guestbin/wait-until-alive -I 192.0.1.254 192.0.2.254
destination -I 192.0.1.254 192.0.2.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-aes-default
"westnet-eastnet-aes-default": added IKEv1 connection
west #
 ipsec auto --up westnet-eastnet-aes-default
"westnet-eastnet-aes-default" #1: initiating IKEv1 Main Mode connection
"westnet-eastnet-aes-default" #1: sent Main Mode request
"westnet-eastnet-aes-default" #1: sent Main Mode I2
"westnet-eastnet-aes-default" #1: sent Main Mode I3
"westnet-eastnet-aes-default" #1: Peer ID is FQDN: '@east'
"westnet-eastnet-aes-default" #1: authenticated peer using preloaded certificate '@east' and 2nnn-bit RSA with SHA1 signature
"westnet-eastnet-aes-default" #1: ISAKMP SA established {auth=RSA_SIG cipher=AES_CBC_256 integ=HMAC_SHA1 group=MODP2048}
"westnet-eastnet-aes-default" #2: initiating Quick Mode IKEv1+RSASIG+ENCRYPT+TUNNEL+PFS+UP+IKE_FRAG_ALLOW+ESN_NO+ESN_YES {using isakmp#1 msgid:MSGID proposal=AES_CBC-HMAC_SHA1_96 pfsgroup=MODP2048 192.0.1.0/24===192.0.2.0/24}
"westnet-eastnet-aes-default" #2: sent Quick Mode request
"westnet-eastnet-aes-default" #2: IPsec SA established tunnel mode {ESP=>0xESPESP <0xESPESP xfrm=AES_CBC_128-HMAC_SHA1_96 DPD=passive}
west #
 ipsec auto --delete westnet-eastnet-aes-default
"westnet-eastnet-aes-default": terminating SAs using this connection
"westnet-eastnet-aes-default" #2: deleting IPsec SA (QUICK_I2) and sending notification using ISAKMP SA #1
"westnet-eastnet-aes-default" #2: ESP traffic information: in=0B out=0B
"westnet-eastnet-aes-default" #1: deleting ISAKMP SA (MAIN_I4) and sending notification
west #
 #
west #
 ipsec auto --add westnet-eastnet-aes-128
"westnet-eastnet-aes-128": added IKEv1 connection
west #
 ipsec auto --up westnet-eastnet-aes-128
"westnet-eastnet-aes-128" #3: initiating IKEv1 Main Mode connection
"westnet-eastnet-aes-128" #3: sent Main Mode request
"westnet-eastnet-aes-128" #3: sent Main Mode I2
"westnet-eastnet-aes-128" #3: sent Main Mode I3
"westnet-eastnet-aes-128" #3: Peer ID is FQDN: '@east'
"westnet-eastnet-aes-128" #3: authenticated peer using preloaded certificate '@east' and 2nnn-bit RSA with SHA1 signature
"westnet-eastnet-aes-128" #3: ISAKMP SA established {auth=RSA_SIG cipher=AES_CBC_128 integ=HMAC_SHA1 group=MODP2048}
"westnet-eastnet-aes-128" #4: initiating Quick Mode IKEv1+RSASIG+ENCRYPT+TUNNEL+PFS+UP+IKE_FRAG_ALLOW+ESN_NO+ESN_YES {using isakmp#3 msgid:MSGID proposal=AES_CBC_128-HMAC_SHA1_96 pfsgroup=MODP2048 192.0.1.0/24===192.0.2.0/24}
"westnet-eastnet-aes-128" #4: sent Quick Mode request
"westnet-eastnet-aes-128" #4: IPsec SA established tunnel mode {ESP=>0xESPESP <0xESPESP xfrm=AES_CBC_128-HMAC_SHA1_96 DPD=passive}
west #
 ipsec auto --delete westnet-eastnet-aes-128
"westnet-eastnet-aes-128": terminating SAs using this connection
"westnet-eastnet-aes-128" #4: deleting IPsec SA (QUICK_I2) and sending notification using ISAKMP SA #3
"westnet-eastnet-aes-128" #4: ESP traffic information: in=0B out=0B
"westnet-eastnet-aes-128" #3: deleting ISAKMP SA (MAIN_I4) and sending notification
west #
 #
west #
 ipsec auto --add westnet-eastnet-aes-256
"westnet-eastnet-aes-256": added IKEv1 connection
west #
 ipsec auto --up westnet-eastnet-aes-256
"westnet-eastnet-aes-256" #5: initiating IKEv1 Main Mode connection
"westnet-eastnet-aes-256" #5: sent Main Mode request
"westnet-eastnet-aes-256" #5: sent Main Mode I2
"westnet-eastnet-aes-256" #5: sent Main Mode I3
"westnet-eastnet-aes-256" #5: Peer ID is FQDN: '@east'
"westnet-eastnet-aes-256" #5: authenticated peer using preloaded certificate '@east' and 2nnn-bit RSA with SHA1 signature
"westnet-eastnet-aes-256" #5: ISAKMP SA established {auth=RSA_SIG cipher=AES_CBC_256 integ=HMAC_SHA1 group=MODP2048}
"westnet-eastnet-aes-256" #6: initiating Quick Mode IKEv1+RSASIG+ENCRYPT+TUNNEL+PFS+UP+IKE_FRAG_ALLOW+ESN_NO+ESN_YES {using isakmp#5 msgid:MSGID proposal=AES_CBC_256-HMAC_SHA1_96 pfsgroup=MODP2048 192.0.1.0/24===192.0.2.0/24}
"westnet-eastnet-aes-256" #6: sent Quick Mode request
"westnet-eastnet-aes-256" #6: IPsec SA established tunnel mode {ESP=>0xESPESP <0xESPESP xfrm=AES_CBC_256-HMAC_SHA1_96 DPD=passive}
west #
 ipsec auto --delete westnet-eastnet-aes-256
"westnet-eastnet-aes-256": terminating SAs using this connection
"westnet-eastnet-aes-256" #6: deleting IPsec SA (QUICK_I2) and sending notification using ISAKMP SA #5
"westnet-eastnet-aes-256" #6: ESP traffic information: in=0B out=0B
"westnet-eastnet-aes-256" #5: deleting ISAKMP SA (MAIN_I4) and sending notification
west #
 #
west #
 ipsec auto --add westnet-eastnet-aes-mix-1
"westnet-eastnet-aes-mix-1": added IKEv1 connection
west #
 ipsec auto --up westnet-eastnet-aes-mix-1
"westnet-eastnet-aes-mix-1" #7: initiating IKEv1 Main Mode connection
"westnet-eastnet-aes-mix-1" #7: sent Main Mode request
"westnet-eastnet-aes-mix-1" #7: sent Main Mode I2
"westnet-eastnet-aes-mix-1" #7: sent Main Mode I3
"westnet-eastnet-aes-mix-1" #7: Peer ID is FQDN: '@east'
"westnet-eastnet-aes-mix-1" #7: authenticated peer using preloaded certificate '@east' and 2nnn-bit RSA with SHA1 signature
"westnet-eastnet-aes-mix-1" #7: ISAKMP SA established {auth=RSA_SIG cipher=AES_CBC_128 integ=HMAC_SHA1 group=MODP2048}
"westnet-eastnet-aes-mix-1" #8: initiating Quick Mode IKEv1+RSASIG+ENCRYPT+TUNNEL+PFS+UP+IKE_FRAG_ALLOW+ESN_NO+ESN_YES {using isakmp#7 msgid:MSGID proposal=AES_CBC_256-HMAC_SHA1_96 pfsgroup=MODP2048 192.0.1.0/24===192.0.2.0/24}
"westnet-eastnet-aes-mix-1" #8: sent Quick Mode request
"westnet-eastnet-aes-mix-1" #8: IPsec SA established tunnel mode {ESP=>0xESPESP <0xESPESP xfrm=AES_CBC_256-HMAC_SHA1_96 DPD=passive}
west #
 ipsec auto --delete  westnet-eastnet-aes-mix-1
"westnet-eastnet-aes-mix-1": terminating SAs using this connection
"westnet-eastnet-aes-mix-1" #8: deleting IPsec SA (QUICK_I2) and sending notification using ISAKMP SA #7
"westnet-eastnet-aes-mix-1" #8: ESP traffic information: in=0B out=0B
"westnet-eastnet-aes-mix-1" #7: deleting ISAKMP SA (MAIN_I4) and sending notification
west #
 #
west #
 ipsec auto --add westnet-eastnet-aes-mix-2
"westnet-eastnet-aes-mix-2": added IKEv1 connection
west #
 ipsec auto --up westnet-eastnet-aes-mix-2
"westnet-eastnet-aes-mix-2" #9: initiating IKEv1 Main Mode connection
"westnet-eastnet-aes-mix-2" #9: sent Main Mode request
"westnet-eastnet-aes-mix-2" #9: sent Main Mode I2
"westnet-eastnet-aes-mix-2" #9: sent Main Mode I3
"westnet-eastnet-aes-mix-2" #9: Peer ID is FQDN: '@east'
"westnet-eastnet-aes-mix-2" #9: authenticated peer using preloaded certificate '@east' and 2nnn-bit RSA with SHA1 signature
"westnet-eastnet-aes-mix-2" #9: ISAKMP SA established {auth=RSA_SIG cipher=AES_CBC_256 integ=HMAC_SHA1 group=MODP2048}
"westnet-eastnet-aes-mix-2" #10: initiating Quick Mode IKEv1+RSASIG+ENCRYPT+TUNNEL+PFS+UP+IKE_FRAG_ALLOW+ESN_NO+ESN_YES {using isakmp#9 msgid:MSGID proposal=AES_CBC_128-HMAC_SHA1_96 pfsgroup=MODP2048 192.0.1.0/24===192.0.2.0/24}
"westnet-eastnet-aes-mix-2" #10: sent Quick Mode request
"westnet-eastnet-aes-mix-2" #10: IPsec SA established tunnel mode {ESP=>0xESPESP <0xESPESP xfrm=AES_CBC_128-HMAC_SHA1_96 DPD=passive}
west #
 ipsec auto --delete  westnet-eastnet-aes-mix-2
"westnet-eastnet-aes-mix-2": terminating SAs using this connection
"westnet-eastnet-aes-mix-2" #10: deleting IPsec SA (QUICK_I2) and sending notification using ISAKMP SA #9
"westnet-eastnet-aes-mix-2" #10: ESP traffic information: in=0B out=0B
"westnet-eastnet-aes-mix-2" #9: deleting ISAKMP SA (MAIN_I4) and sending notification
west #
 echo done
done
west #
 grep -A 1 KEY_LENGTH /tmp/pluto.log
|    af+type: AF+OAKLEY_KEY_LENGTH (0x800e)
|    length/value: 256 (01 00)
--
|    af+type: AF+OAKLEY_KEY_LENGTH (0x800e)
|    length/value: 128 (00 80)
--
|    af+type: AF+OAKLEY_KEY_LENGTH (0x800e)
|    length/value: 256 (01 00)
--
|    af+type: AF+OAKLEY_KEY_LENGTH (0x800e)
|    length/value: 128 (00 80)
--
|    af+type: AF+OAKLEY_KEY_LENGTH (0x800e)
|    length/value: 256 (01 00)
--
|    af+type: AF+OAKLEY_KEY_LENGTH (0x800e)
|    length/value: 128 (00 80)
--
|    af+type: AF+OAKLEY_KEY_LENGTH (0x800e)
|    length/value: 256 (01 00)
--
|    af+type: AF+OAKLEY_KEY_LENGTH (0x800e)
|    length/value: 128 (00 80)
--
|    af+type: AF+OAKLEY_KEY_LENGTH (0x800e)
|    length/value: 256 (01 00)
--
|    af+type: AF+KEY_LENGTH (0x8006)
|    length/value: 128 (00 80)
--
|    af+type: AF+KEY_LENGTH (0x8006)
|    length/value: 256 (01 00)
--
|    af+type: AF+KEY_LENGTH (0x8006)
|    length/value: 128 (00 80)
--
|    af+type: AF+OAKLEY_KEY_LENGTH (0x800e)
|    length/value: 128 (00 80)
--
|    af+type: AF+OAKLEY_KEY_LENGTH (0x800e)
|    length/value: 128 (00 80)
--
|    af+type: AF+OAKLEY_KEY_LENGTH (0x800e)
|    length/value: 128 (00 80)
--
|    af+type: AF+OAKLEY_KEY_LENGTH (0x800e)
|    length/value: 128 (00 80)
--
|    af+type: AF+OAKLEY_KEY_LENGTH (0x800e)
|    length/value: 128 (00 80)
--
|    af+type: AF+KEY_LENGTH (0x8006)
|    length/value: 128 (00 80)
--
|    af+type: AF+KEY_LENGTH (0x8006)
|    length/value: 128 (00 80)
--
|    af+type: AF+OAKLEY_KEY_LENGTH (0x800e)
|    length/value: 256 (01 00)
--
|    af+type: AF+OAKLEY_KEY_LENGTH (0x800e)
|    length/value: 256 (01 00)
--
|    af+type: AF+OAKLEY_KEY_LENGTH (0x800e)
|    length/value: 256 (01 00)
--
|    af+type: AF+OAKLEY_KEY_LENGTH (0x800e)
|    length/value: 256 (01 00)
--
|    af+type: AF+OAKLEY_KEY_LENGTH (0x800e)
|    length/value: 256 (01 00)
--
|    af+type: AF+KEY_LENGTH (0x8006)
|    length/value: 256 (01 00)
--
|    af+type: AF+KEY_LENGTH (0x8006)
|    length/value: 256 (01 00)
--
|    af+type: AF+OAKLEY_KEY_LENGTH (0x800e)
|    length/value: 128 (00 80)
--
|    af+type: AF+OAKLEY_KEY_LENGTH (0x800e)
|    length/value: 128 (00 80)
--
|    af+type: AF+OAKLEY_KEY_LENGTH (0x800e)
|    length/value: 128 (00 80)
--
|    af+type: AF+OAKLEY_KEY_LENGTH (0x800e)
|    length/value: 128 (00 80)
--
|    af+type: AF+OAKLEY_KEY_LENGTH (0x800e)
|    length/value: 128 (00 80)
--
|    af+type: AF+KEY_LENGTH (0x8006)
|    length/value: 256 (01 00)
--
|    af+type: AF+KEY_LENGTH (0x8006)
|    length/value: 256 (01 00)
--
|    af+type: AF+OAKLEY_KEY_LENGTH (0x800e)
|    length/value: 256 (01 00)
--
|    af+type: AF+OAKLEY_KEY_LENGTH (0x800e)
|    length/value: 256 (01 00)
--
|    af+type: AF+OAKLEY_KEY_LENGTH (0x800e)
|    length/value: 256 (01 00)
--
|    af+type: AF+OAKLEY_KEY_LENGTH (0x800e)
|    length/value: 256 (01 00)
--
|    af+type: AF+OAKLEY_KEY_LENGTH (0x800e)
|    length/value: 256 (01 00)
--
|    af+type: AF+KEY_LENGTH (0x8006)
|    length/value: 128 (00 80)
--
|    af+type: AF+KEY_LENGTH (0x8006)
|    length/value: 128 (00 80)
west #
