/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 #
 ipsec whack --impair revival
west #
 # AES: key-length required
west #
 # send AES_128; should work
west #
 ipsec whack --impair suppress_retransmits
west #
 ../../guestbin/libreswan-up-down.sh aes128 -I 192.0.1.254 192.0.2.254
"aes128": added IKEv2 connection
"aes128" #1: initiating IKEv2 connection to 192.1.2.23 using UDP
"aes128" #1: sent IKE_SA_INIT request to 192.1.2.23:UDP/500
"aes128" #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
"aes128" #1: sent IKE_AUTH request to 192.1.2.23:UDP/500
"aes128" #1: initiator established IKE SA; authenticated peer using authby=secret and ID_FQDN '@east'
"aes128" #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
"aes128": terminating SAs using this connection
"aes128" #1: sent INFORMATIONAL request to delete IKE SA
"aes128" #2: ESP traffic information: in=84B out=84B
"aes128" #1: deleting IKE SA (established IKE SA)
west #
 ipsec whack --impair none
west #
 # send AES_0
west #
 ipsec whack --impair timeout_on_retransmit
west #
 ipsec whack --impair ike_key_length_attribute:0
west #
 ../../guestbin/libreswan-up-down.sh aes128 -I 192.0.1.254 192.0.2.254
"aes128": added IKEv2 connection
"aes128" #3: initiating IKEv2 connection to 192.1.2.23 using UDP
"aes128" #3: IMPAIR: emitting fixed-length key-length attribute with 0 key
"aes128" #3: sent IKE_SA_INIT request to 192.1.2.23:UDP/500
"aes128" #3: unexpected IKE_SA_INIT message containing NO_PROPOSAL_CHOSEN notification; message payloads: N; missing payloads: SA,KE,Ni
"aes128" #3: IMPAIR: retransmit so timing out SA (may retry)
"aes128" #3: connection is supposed to remain up; revival attempt 1 scheduled in 0 seconds
"aes128" #3: deleting IKE SA (sent IKE_SA_INIT request)
west #
 ipsec whack --impair none
west #
 ipsec whack --impair timeout_on_retransmit
west #
 ipsec whack --impair child_key_length_attribute:0
west #
 ../../guestbin/libreswan-up-down.sh aes128 -I 192.0.1.254 192.0.2.254
"aes128": added IKEv2 connection
"aes128" #5: initiating IKEv2 connection to 192.1.2.23 using UDP
"aes128" #5: sent IKE_SA_INIT request to 192.1.2.23:UDP/500
"aes128" #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
"aes128" #5: IMPAIR: emitting fixed-length key-length attribute with 0 key
"aes128" #5: sent IKE_AUTH request to 192.1.2.23:UDP/500
"aes128" #5: initiator established IKE SA; authenticated peer using authby=secret and ID_FQDN '@east'
"aes128" #6: IKE_AUTH response rejected Child SA with NO_PROPOSAL_CHOSEN
"aes128" #6: connection is supposed to remain up; revival attempt 1 scheduled in 0 seconds
west #
 ipsec whack --impair none
west #
 # send AES_128_128; will work but probably should not
west #
 ipsec whack --impair suppress_retransmits
west #
 ipsec whack --impair ike_key_length_attribute:duplicate
west #
 ../../guestbin/libreswan-up-down.sh aes128 -I 192.0.1.254 192.0.2.254
"aes128": added IKEv2 connection
"aes128" #8: initiating IKEv2 connection to 192.1.2.23 using UDP
"aes128" #8: IMPAIR: duplicating key-length attribute
"aes128" #8: sent IKE_SA_INIT request to 192.1.2.23:UDP/500
"aes128" #8: 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
"aes128" #8: sent IKE_AUTH request to 192.1.2.23:UDP/500
"aes128" #8: initiator established IKE SA; authenticated peer using authby=secret and ID_FQDN '@east'
"aes128" #9: initiator established Child SA using #8; 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
"aes128": terminating SAs using this connection
"aes128" #8: sent INFORMATIONAL request to delete IKE SA
"aes128" #9: ESP traffic information: in=84B out=84B
"aes128" #8: deleting IKE SA (established IKE SA)
west #
 ipsec whack --impair none
west #
 ipsec whack --impair suppress_retransmits
west #
 ipsec whack --impair child_key_length_attribute:duplicate
west #
 ../../guestbin/libreswan-up-down.sh aes128 -I 192.0.1.254 192.0.2.254
"aes128": added IKEv2 connection
"aes128" #10: initiating IKEv2 connection to 192.1.2.23 using UDP
"aes128" #10: sent IKE_SA_INIT request to 192.1.2.23:UDP/500
"aes128" #10: 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
"aes128" #10: IMPAIR: duplicating key-length attribute
"aes128" #10: sent IKE_AUTH request to 192.1.2.23:UDP/500
"aes128" #10: initiator established IKE SA; authenticated peer using authby=secret and ID_FQDN '@east'
"aes128" #11: initiator established Child SA using #10; 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
"aes128": terminating SAs using this connection
"aes128" #10: sent INFORMATIONAL request to delete IKE SA
"aes128" #11: ESP traffic information: in=84B out=84B
"aes128" #10: deleting IKE SA (established IKE SA)
west #
 ipsec whack --impair none
west #
 # send AES; should fail
west #
 ipsec whack --impair timeout_on_retransmit
west #
 ipsec whack --impair ike_key_length_attribute:omit
west #
 ../../guestbin/libreswan-up-down.sh aes128 -I 192.0.1.254 192.0.2.254
"aes128": added IKEv2 connection
"aes128" #12: initiating IKEv2 connection to 192.1.2.23 using UDP
"aes128" #12: IMPAIR: omitting fixed-size key-length attribute
"aes128" #12: sent IKE_SA_INIT request to 192.1.2.23:UDP/500
"aes128" #12: unexpected IKE_SA_INIT message containing NO_PROPOSAL_CHOSEN notification; message payloads: N; missing payloads: SA,KE,Ni
"aes128" #12: IMPAIR: retransmit so timing out SA (may retry)
"aes128" #12: connection is supposed to remain up; revival attempt 1 scheduled in 0 seconds
"aes128" #12: deleting IKE SA (sent IKE_SA_INIT request)
west #
 ipsec whack --impair none
west #
 ipsec whack --impair timeout_on_retransmit
west #
 ipsec whack --impair child_key_length_attribute:omit
west #
 ../../guestbin/libreswan-up-down.sh aes128 -I 192.0.1.254 192.0.2.254
"aes128": added IKEv2 connection
"aes128" #14: initiating IKEv2 connection to 192.1.2.23 using UDP
"aes128" #14: sent IKE_SA_INIT request to 192.1.2.23:UDP/500
"aes128" #14: 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
"aes128" #14: IMPAIR: omitting fixed-size key-length attribute
"aes128" #14: sent IKE_AUTH request to 192.1.2.23:UDP/500
"aes128" #14: initiator established IKE SA; authenticated peer using authby=secret and ID_FQDN '@east'
"aes128" #15: IKE_AUTH response rejected Child SA with NO_PROPOSAL_CHOSEN
"aes128" #15: connection is supposed to remain up; revival attempt 1 scheduled in 0 seconds
west #
 ipsec whack --impair none
west #
 # send AES_<>; should fail
west #
 ipsec whack --impair timeout_on_retransmit
west #
 ipsec whack --impair emitting
west #
 ipsec whack --impair ike_key_length_attribute:empty
west #
 ../../guestbin/libreswan-up-down.sh aes128 -I 192.0.1.254 192.0.2.254
"aes128": added IKEv2 connection
"aes128" #17: initiating IKEv2 connection to 192.1.2.23 using UDP
"aes128" #17: IMPAIR: emitting variable-size key-length attribute with no key
"aes128" #17: IMPAIR: emitting af+type of IKEv2 Attribute Substructure Payload has an unknown value: 0x0+14 (0xe)
"aes128" #17: sent IKE_SA_INIT request to 192.1.2.23:UDP/500
"aes128" #17: unexpected IKE_SA_INIT message containing INVALID_SYNTAX notification; message payloads: N; missing payloads: SA,KE,Ni
"aes128" #17: IMPAIR: retransmit so timing out SA (may retry)
"aes128" #17: connection is supposed to remain up; revival attempt 1 scheduled in 0 seconds
"aes128" #17: deleting IKE SA (sent IKE_SA_INIT request)
west #
 ipsec whack --impair none
west #
 ipsec whack --impair timeout_on_retransmit
west #
 ipsec whack --impair emitting
west #
 ipsec whack --impair ike_key_length_attribute:empty
west #
 ../../guestbin/libreswan-up-down.sh aes128 -I 192.0.1.254 192.0.2.254
"aes128": added IKEv2 connection
"aes128" #19: initiating IKEv2 connection to 192.1.2.23 using UDP
"aes128" #19: IMPAIR: emitting variable-size key-length attribute with no key
"aes128" #19: IMPAIR: emitting af+type of IKEv2 Attribute Substructure Payload has an unknown value: 0x0+14 (0xe)
"aes128" #19: sent IKE_SA_INIT request to 192.1.2.23:UDP/500
"aes128" #19: unexpected IKE_SA_INIT message containing INVALID_SYNTAX notification; message payloads: N; missing payloads: SA,KE,Ni
"aes128" #19: IMPAIR: retransmit so timing out SA (may retry)
"aes128" #19: connection is supposed to remain up; revival attempt 1 scheduled in 0 seconds
"aes128" #19: deleting IKE SA (sent IKE_SA_INIT request)
west #
 ipsec whack --impair none
west #
 # send 3DES; should work, key-length should be omitted
west #
 ipsec whack --impair suppress_retransmits
west #
 ../../guestbin/libreswan-up-down.sh 3des -I 192.0.1.254 192.0.2.254
"3des": added IKEv2 connection
"3des" #21: initiating IKEv2 connection to 192.1.2.23 using UDP
"3des" #21: sent IKE_SA_INIT request to 192.1.2.23:UDP/500
"3des" #21: 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
"3des" #21: sent IKE_AUTH request to 192.1.2.23:UDP/500
"3des" #21: initiator established IKE SA; authenticated peer using authby=secret and ID_FQDN '@east'
"3des" #22: initiator established Child SA using #21; 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
"3des": terminating SAs using this connection
"3des" #21: sent INFORMATIONAL request to delete IKE SA
"3des" #22: ESP traffic information: in=84B out=84B
"3des" #21: deleting IKE SA (established IKE SA)
west #
 ipsec whack --impair none
west #
 # send 3DES_0; should fail (but doesn't)
west #
 ipsec whack --impair suppress_retransmits
west #
 ipsec whack --impair ike_key_length_attribute:0
west #
 ../../guestbin/libreswan-up-down.sh 3des -I 192.0.1.254 192.0.2.254
"3des": added IKEv2 connection
"3des" #23: initiating IKEv2 connection to 192.1.2.23 using UDP
"3des" #23: IMPAIR: emitting fixed-length key-length attribute with 0 key
"3des" #23: sent IKE_SA_INIT request to 192.1.2.23:UDP/500
"3des" #23: 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
"3des" #23: sent IKE_AUTH request to 192.1.2.23:UDP/500
"3des" #23: initiator established IKE SA; authenticated peer using authby=secret and ID_FQDN '@east'
"3des" #24: initiator established Child SA using #23; 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
"3des": terminating SAs using this connection
"3des" #23: sent INFORMATIONAL request to delete IKE SA
"3des" #24: ESP traffic information: in=84B out=84B
"3des" #23: deleting IKE SA (established IKE SA)
west #
 ipsec whack --impair none
west #
 # send 3DES_192; should work (but doesn't)
west #
 ipsec whack --impair timeout_on_retransmit
west #
 ipsec whack --impair ike_key_length_attribute:192
west #
 ../../guestbin/libreswan-up-down.sh 3des -I 192.0.1.254 192.0.2.254
"3des": added IKEv2 connection
"3des" #25: initiating IKEv2 connection to 192.1.2.23 using UDP
"3des" #25: IMPAIR: emitting fixed-length key-length attribute with 192 key
"3des" #25: sent IKE_SA_INIT request to 192.1.2.23:UDP/500
"3des" #25: unexpected IKE_SA_INIT message containing NO_PROPOSAL_CHOSEN notification; message payloads: N; missing payloads: SA,KE,Ni
"3des" #25: IMPAIR: retransmit so timing out SA (may retry)
"3des" #25: connection is supposed to remain up; revival attempt 1 scheduled in 0 seconds
"3des" #25: deleting IKE SA (sent IKE_SA_INIT request)
west #
 ipsec whack --impair none
west #
 echo done
done
west #
 grep INVALID_KEY_INFORMATION /tmp/pluto.log
west #
 
