/testing/guestbin/swan-prep --nokeys
Creating empty NSS database
west #
 ipsec start
Redirecting to: [initsystem]
west #
 ../../guestbin/wait-until-pluto-started
west #
 echo "initdone"
initdone
west #
 # send AES_128; should work
west #
 ipsec whack --impair suppress_retransmits
west #
 ../../guestbin/libreswan-up-down.sh conf --up -I 192.0.1.254 192.0.2.254
"conf": added IKEv2 connection
"conf" #1: initiating IKEv2 connection to 192.1.2.23 using UDP
"conf" #1: sent IKE_SA_INIT request to 192.1.2.23:UDP/500
"conf" #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=MODP2048}, initiating IKE_AUTH
"conf" #1: sent IKE_AUTH request to 192.1.2.23:UDP/500
"conf" #1: initiator established IKE SA; authenticated peer using authby=secret and ID_FQDN '@east'
"conf" #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}
up
"conf": initiating delete of connection's IKE SA #1 (and Child SA #2)
"conf" #1: sent INFORMATIONAL request to delete IKE SA
"conf" #2: ESP traffic information: in=84B out=84B
"conf" #1: deleting IKE SA (established IKE SA)
west #
 ipsec whack --impair none
west #
 # add IKE transform type 6 id 0 unknown
west #
 ipsec whack --impair suppress_retransmits
west #
 ipsec whack --impair ikev2_add_ike_transform:0x60000
west #
 ../../guestbin/libreswan-up-down.sh conf --up -I 192.0.1.254 192.0.2.254
"conf": added IKEv2 connection
"conf" #3: initiating IKEv2 connection to 192.1.2.23 using UDP
"conf" #3: IMPAIR: adding transform type 6 (0x6) id 6.0 (0x0)
"conf" #3: sent IKE_SA_INIT request to 192.1.2.23:UDP/500
"conf" #3: processed IKE_SA_INIT response from 192.1.2.23:UDP/500 {cipher=3DES_CBC_192 integ=HMAC_SHA1_96 prf=HMAC_SHA1 group=MODP2048}, initiating IKE_AUTH
"conf" #3: sent IKE_AUTH request to 192.1.2.23:UDP/500
"conf" #3: initiator established IKE SA; authenticated peer using authby=secret and ID_FQDN '@east'
"conf" #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_CBC_128-HMAC_SHA1_96 DPD=passive}
up
"conf": initiating delete of connection's IKE SA #3 (and Child SA #4)
"conf" #3: sent INFORMATIONAL request to delete IKE SA
"conf" #4: ESP traffic information: in=84B out=84B
"conf" #3: deleting IKE SA (established IKE SA)
west #
 ipsec whack --impair none
west #
 # add IKE transform type 3 (PRF) id 0xff unknown
west #
 ipsec whack --impair suppress_retransmits
west #
 ipsec whack --impair ikev2_add_ike_transform:0x3ffff
west #
 ../../guestbin/libreswan-up-down.sh conf --up -I 192.0.1.254 192.0.2.254
"conf": added IKEv2 connection
"conf" #5: initiating IKEv2 connection to 192.1.2.23 using UDP
"conf" #5: IMPAIR: adding transform type INTEG (0x3) id 65535 (0xffff)
"conf" #5: sent IKE_SA_INIT request to 192.1.2.23:UDP/500
"conf" #5: processed IKE_SA_INIT response from 192.1.2.23:UDP/500 {cipher=AES_CBC_128 integ=HMAC_SHA1_96 prf=HMAC_SHA1 group=MODP2048}, initiating IKE_AUTH
"conf" #5: sent IKE_AUTH request to 192.1.2.23:UDP/500
"conf" #5: initiator established IKE SA; authenticated peer using authby=secret and ID_FQDN '@east'
"conf" #6: initiator established Child SA using #5; 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}
up
"conf": initiating delete of connection's IKE SA #5 (and Child SA #6)
"conf" #5: sent INFORMATIONAL request to delete IKE SA
"conf" #6: ESP traffic information: in=84B out=84B
"conf" #5: deleting IKE SA (established IKE SA)
west #
 ipsec whack --impair none
west #
 # add CHILD transform type 6 id 0 unknown
west #
 ipsec whack --impair suppress_retransmits
west #
 ipsec whack --impair ikev2_add_child_transform:0x60000
west #
 ../../guestbin/libreswan-up-down.sh conf --up -I 192.0.1.254 192.0.2.254
"conf": added IKEv2 connection
"conf" #7: initiating IKEv2 connection to 192.1.2.23 using UDP
"conf" #7: sent IKE_SA_INIT request to 192.1.2.23:UDP/500
"conf" #7: processed IKE_SA_INIT response from 192.1.2.23:UDP/500 {cipher=AES_CBC_128 integ=HMAC_SHA1_96 prf=HMAC_SHA1 group=MODP2048}, initiating IKE_AUTH
"conf" #7: IMPAIR: adding transform type 6 (0x6) id 6.0 (0x0)
"conf" #7: sent IKE_AUTH request to 192.1.2.23:UDP/500
"conf" #7: initiator established IKE SA; authenticated peer using authby=secret and ID_FQDN '@east'
"conf" #8: initiator established Child SA using #7; IPsec tunnel [192.0.1.0/24===192.0.2.0/24] {ESP/ESN=>0xESPESP <0xESPESP xfrm=3DES_CBC-HMAC_SHA1_96 DPD=passive}
up
"conf": initiating delete of connection's IKE SA #7 (and Child SA #8)
"conf" #7: sent INFORMATIONAL request to delete IKE SA
"conf" #8: ESP traffic information: in=84B out=84B
"conf" #7: deleting IKE SA (established IKE SA)
west #
 ipsec whack --impair none
west #
 # add CHILD transform type 3 (PRF) id 0xffff unknown
west #
 ipsec whack --impair suppress_retransmits
west #
 ipsec whack --impair ikev2_add_child_transform:0x3ffff
west #
 ../../guestbin/libreswan-up-down.sh conf --up -I 192.0.1.254 192.0.2.254
"conf": added IKEv2 connection
"conf" #9: initiating IKEv2 connection to 192.1.2.23 using UDP
"conf" #9: sent IKE_SA_INIT request to 192.1.2.23:UDP/500
"conf" #9: processed IKE_SA_INIT response from 192.1.2.23:UDP/500 {cipher=AES_CBC_128 integ=HMAC_SHA1_96 prf=HMAC_SHA1 group=MODP2048}, initiating IKE_AUTH
"conf" #9: IMPAIR: adding transform type INTEG (0x3) id 65535 (0xffff)
"conf" #9: sent IKE_AUTH request to 192.1.2.23:UDP/500
"conf" #9: initiator established IKE SA; authenticated peer using authby=secret and ID_FQDN '@east'
"conf" #10: initiator established Child SA using #9; 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}
up
"conf": initiating delete of connection's IKE SA #9 (and Child SA #10)
"conf" #9: sent INFORMATIONAL request to delete IKE SA
"conf" #10: ESP traffic information: in=84B out=84B
"conf" #9: deleting IKE SA (established IKE SA)
west #
 ipsec whack --impair none
west #
 grep INVALID_KEY_INFORMATION /tmp/pluto.log
west #
 
