--- west.console.txt 2019-08-24 18:12:56.235675264 +0000 +++ OUTPUT/west.console.txt 2019-08-26 13:12:53.321752207 +0000 @@ -10,8 +10,12 @@ west # # AES: key-length required west # + +west # # should work west # + +west # ipsec whack --impair suppress-retransmits west # ../../pluto/bin/libreswan-up-down.sh aes128 -I 192.0.1.254 192.0.2.254 @@ -34,8 +38,12 @@ west # ipsec whack --impair none west # + +west # # send 128 twice west # + +west # ipsec whack --impair delete-on-retransmit west # ipsec whack --impair ike-key-length-attribute:duplicate @@ -53,240 +61,276 @@ west # ipsec whack --impair none west # + +west # ipsec whack --impair delete-on-retransmit west # ipsec whack --impair child-key-length-attribute:duplicate west # ../../pluto/bin/libreswan-up-down.sh aes128 -I 192.0.1.254 192.0.2.254 002 added connection description "aes128" -002 "aes128" #4: initiating Main Mode -1v1 "aes128" #4: STATE_MAIN_I1: initiate -1v1 "aes128" #4: STATE_MAIN_I2: sent MI2, expecting MR2 -1v1 "aes128" #4: STATE_MAIN_I3: sent MI3, expecting MR3 -002 "aes128" #4: Peer ID is ID_FQDN: '@east' -004 "aes128" #4: STATE_MAIN_I4: ISAKMP SA established {auth=PRESHARED_KEY cipher=AES_CBC_128 integ=HMAC_SHA1 group=MODP2048} -002 "aes128" #5: initiating Quick Mode PSK+ENCRYPT+TUNNEL+PFS+UP+IKEV1_ALLOW+SAREF_TRACK+IKE_FRAG_ALLOW+ESN_NO -002 "aes128" #5: IMPAIR: stripping key-length -002 "aes128" #5: IMPAIR: duplicating key-length -1v1 "aes128" #5: STATE_QUICK_I1: initiate -002 "aes128" #5: IMPAIR: retransmit so deleting SA -002 "aes128" #5: deleting state (STATE_QUICK_I1) and NOT sending notification +002 "aes128" #5: initiating Main Mode +1v1 "aes128" #5: STATE_MAIN_I1: initiate +1v1 "aes128" #5: STATE_MAIN_I2: sent MI2, expecting MR2 +1v1 "aes128" #5: STATE_MAIN_I3: sent MI3, expecting MR3 +002 "aes128" #5: Peer ID is ID_FQDN: '@east' +004 "aes128" #5: STATE_MAIN_I4: ISAKMP SA established {auth=PRESHARED_KEY cipher=AES_CBC_128 integ=HMAC_SHA1 group=MODP2048} +002 "aes128" #6: initiating Quick Mode PSK+ENCRYPT+TUNNEL+PFS+UP+IKEV1_ALLOW+SAREF_TRACK+IKE_FRAG_ALLOW+ESN_NO +002 "aes128" #6: IMPAIR: stripping key-length +002 "aes128" #6: IMPAIR: duplicating key-length +1v1 "aes128" #6: STATE_QUICK_I1: initiate +002 "aes128" #6: IMPAIR: retransmit so deleting SA +002 "aes128" #6: deleting state (STATE_QUICK_I1) and NOT sending notification west # ipsec whack --impair none west # - # send 0 instead of 128 -west # - ipsec whack --impair delete-on-retransmit + west # - ipsec whack --impair ike-key-length-attribute:0 -west # - ../../pluto/bin/libreswan-up-down.sh aes128 -I 192.0.1.254 192.0.2.254 -002 added connection description "aes128" -002 "aes128" #6: initiating Main Mode -002 "aes128" #6: IMPAIR: stripping key-length -002 "aes128" #6: IMPAIR: sending key-length attribute value 0 -1v1 "aes128" #6: STATE_MAIN_I1: initiate -003 "aes128" #6: ignoring informational payload NO_PROPOSAL_CHOSEN, msgid=00000000, length=12 -003 "aes128" #6: received and ignored notification payload: NO_PROPOSAL_CHOSEN -002 "aes128" #6: IMPAIR: retransmit so deleting SA -002 "aes128" #6: deleting state (STATE_MAIN_I1) and NOT sending notification + # send 0 instead of 128 west # - ipsec whack --impair none + west # ipsec whack --impair delete-on-retransmit west # - ipsec whack --impair child-key-length-attribute:0 + ipsec whack --impair ike-key-length-attribute:0 west # ../../pluto/bin/libreswan-up-down.sh aes128 -I 192.0.1.254 192.0.2.254 002 added connection description "aes128" 002 "aes128" #7: initiating Main Mode +002 "aes128" #7: IMPAIR: stripping key-length +002 "aes128" #7: IMPAIR: sending key-length attribute value 0 1v1 "aes128" #7: STATE_MAIN_I1: initiate -1v1 "aes128" #7: STATE_MAIN_I2: sent MI2, expecting MR2 -1v1 "aes128" #7: STATE_MAIN_I3: sent MI3, expecting MR3 -002 "aes128" #7: Peer ID is ID_FQDN: '@east' -004 "aes128" #7: STATE_MAIN_I4: ISAKMP SA established {auth=PRESHARED_KEY cipher=AES_CBC_128 integ=HMAC_SHA1 group=MODP2048} -002 "aes128" #8: initiating Quick Mode PSK+ENCRYPT+TUNNEL+PFS+UP+IKEV1_ALLOW+SAREF_TRACK+IKE_FRAG_ALLOW+ESN_NO -002 "aes128" #8: IMPAIR: stripping key-length -002 "aes128" #8: IMPAIR: sending key-length attribute value 0 -1v1 "aes128" #8: STATE_QUICK_I1: initiate -002 "aes128" #8: IMPAIR: retransmit so deleting SA -002 "aes128" #8: deleting state (STATE_QUICK_I1) and NOT sending notification +003 "aes128" #7: ignoring informational payload NO_PROPOSAL_CHOSEN, msgid=00000000, length=12 +003 "aes128" #7: received and ignored notification payload: NO_PROPOSAL_CHOSEN +002 "aes128" #7: IMPAIR: retransmit so deleting SA +002 "aes128" #7: deleting state (STATE_MAIN_I1) and NOT sending notification west # ipsec whack --impair none west # - # omit the key-length attribute + west # ipsec whack --impair delete-on-retransmit west # - ipsec whack --impair ike-key-length-attribute:omit + ipsec whack --impair child-key-length-attribute:0 west # ../../pluto/bin/libreswan-up-down.sh aes128 -I 192.0.1.254 192.0.2.254 002 added connection description "aes128" 002 "aes128" #9: initiating Main Mode -002 "aes128" #9: IMPAIR: stripping key-length -002 "aes128" #9: IMPAIR: not sending key-length attribute 1v1 "aes128" #9: STATE_MAIN_I1: initiate 1v1 "aes128" #9: STATE_MAIN_I2: sent MI2, expecting MR2 1v1 "aes128" #9: STATE_MAIN_I3: sent MI3, expecting MR3 002 "aes128" #9: Peer ID is ID_FQDN: '@east' 004 "aes128" #9: STATE_MAIN_I4: ISAKMP SA established {auth=PRESHARED_KEY cipher=AES_CBC_128 integ=HMAC_SHA1 group=MODP2048} 002 "aes128" #10: initiating Quick Mode PSK+ENCRYPT+TUNNEL+PFS+UP+IKEV1_ALLOW+SAREF_TRACK+IKE_FRAG_ALLOW+ESN_NO +002 "aes128" #10: IMPAIR: stripping key-length +002 "aes128" #10: IMPAIR: sending key-length attribute value 0 1v1 "aes128" #10: STATE_QUICK_I1: initiate -004 "aes128" #10: STATE_QUICK_I2: sent QI2, IPsec SA established tunnel mode {ESP=>0xESPESP <0xESPESP xfrm=AES_CBC_128-HMAC_SHA1_96 NATOA=none NATD=none DPD=passive} -destination -I 192.0.1.254 192.0.2.254 is alive -002 "aes128": terminating SAs using this connection -002 "aes128" #10: deleting state (STATE_QUICK_I2) and sending notification -005 "aes128" #10: ESP traffic information: in=84B out=84B -002 "aes128" #9: deleting state (STATE_MAIN_I4) and sending notification -002 "aes128": terminating SAs using this connection +002 "aes128" #10: IMPAIR: retransmit so deleting SA +002 "aes128" #10: deleting state (STATE_QUICK_I1) and NOT sending notification west # ipsec whack --impair none west # + +west # + # omit the key-length attribute +west # + +west # ipsec whack --impair delete-on-retransmit west # - ipsec whack --impair child-key-length-attribute:omit + ipsec whack --impair ike-key-length-attribute:omit west # ../../pluto/bin/libreswan-up-down.sh aes128 -I 192.0.1.254 192.0.2.254 002 added connection description "aes128" 002 "aes128" #11: initiating Main Mode +002 "aes128" #11: IMPAIR: stripping key-length +002 "aes128" #11: IMPAIR: not sending key-length attribute 1v1 "aes128" #11: STATE_MAIN_I1: initiate 1v1 "aes128" #11: STATE_MAIN_I2: sent MI2, expecting MR2 1v1 "aes128" #11: STATE_MAIN_I3: sent MI3, expecting MR3 002 "aes128" #11: Peer ID is ID_FQDN: '@east' 004 "aes128" #11: STATE_MAIN_I4: ISAKMP SA established {auth=PRESHARED_KEY cipher=AES_CBC_128 integ=HMAC_SHA1 group=MODP2048} 002 "aes128" #12: initiating Quick Mode PSK+ENCRYPT+TUNNEL+PFS+UP+IKEV1_ALLOW+SAREF_TRACK+IKE_FRAG_ALLOW+ESN_NO -002 "aes128" #12: IMPAIR: stripping key-length -002 "aes128" #12: IMPAIR: not sending key-length attribute 1v1 "aes128" #12: STATE_QUICK_I1: initiate -002 "aes128" #12: IMPAIR: retransmit so deleting SA -002 "aes128" #12: deleting state (STATE_QUICK_I1) and NOT sending notification +004 "aes128" #12: STATE_QUICK_I2: sent QI2, IPsec SA established tunnel mode {ESP=>0xESPESP <0xESPESP xfrm=AES_CBC_128-HMAC_SHA1_96 NATOA=none NATD=none DPD=passive} +destination -I 192.0.1.254 192.0.2.254 is alive +002 "aes128": terminating SAs using this connection +002 "aes128" #12: deleting state (STATE_QUICK_I2) and sending notification +005 "aes128" #12: ESP traffic information: in=84B out=84B +002 "aes128" #11: deleting state (STATE_MAIN_I4) and sending notification +002 "aes128": terminating SAs using this connection west # ipsec whack --impair none west # - # send an "empty" key-length attribute + west # ipsec whack --impair delete-on-retransmit west # - ipsec whack --impair emitting -west # - ipsec whack --impair ike-key-length-attribute:empty + ipsec whack --impair child-key-length-attribute:omit west # ../../pluto/bin/libreswan-up-down.sh aes128 -I 192.0.1.254 192.0.2.254 002 added connection description "aes128" 002 "aes128" #13: initiating Main Mode -002 "aes128" #13: IMPAIR: stripping key-length -002 "aes128" #13: IMPAIR: key-length-attribute:empty not implemented 1v1 "aes128" #13: STATE_MAIN_I1: initiate 1v1 "aes128" #13: STATE_MAIN_I2: sent MI2, expecting MR2 1v1 "aes128" #13: STATE_MAIN_I3: sent MI3, expecting MR3 002 "aes128" #13: Peer ID is ID_FQDN: '@east' 004 "aes128" #13: STATE_MAIN_I4: ISAKMP SA established {auth=PRESHARED_KEY cipher=AES_CBC_128 integ=HMAC_SHA1 group=MODP2048} 002 "aes128" #14: initiating Quick Mode PSK+ENCRYPT+TUNNEL+PFS+UP+IKEV1_ALLOW+SAREF_TRACK+IKE_FRAG_ALLOW+ESN_NO +002 "aes128" #14: IMPAIR: stripping key-length +002 "aes128" #14: IMPAIR: not sending key-length attribute 1v1 "aes128" #14: STATE_QUICK_I1: initiate -004 "aes128" #14: STATE_QUICK_I2: sent QI2, IPsec SA established tunnel mode {ESP=>0xESPESP <0xESPESP xfrm=AES_CBC_128-HMAC_SHA1_96 NATOA=none NATD=none DPD=passive} -destination -I 192.0.1.254 192.0.2.254 is alive -002 "aes128": terminating SAs using this connection -002 "aes128" #14: deleting state (STATE_QUICK_I2) and sending notification -005 "aes128" #14: ESP traffic information: in=84B out=84B -002 "aes128" #13: deleting state (STATE_MAIN_I4) and sending notification -002 "aes128": terminating SAs using this connection +002 "aes128" #14: IMPAIR: retransmit so deleting SA +002 "aes128" #14: deleting state (STATE_QUICK_I1) and NOT sending notification west # ipsec whack --impair none west # + +west # + # send an "empty" key-length attribute +west # + +west # ipsec whack --impair delete-on-retransmit west # ipsec whack --impair emitting west # - ipsec whack --impair child-key-length-attribute:empty + ipsec whack --impair ike-key-length-attribute:empty west # ../../pluto/bin/libreswan-up-down.sh aes128 -I 192.0.1.254 192.0.2.254 002 added connection description "aes128" 002 "aes128" #15: initiating Main Mode +002 "aes128" #15: IMPAIR: stripping key-length +002 "aes128" #15: IMPAIR: key-length-attribute:empty not implemented 1v1 "aes128" #15: STATE_MAIN_I1: initiate 1v1 "aes128" #15: STATE_MAIN_I2: sent MI2, expecting MR2 1v1 "aes128" #15: STATE_MAIN_I3: sent MI3, expecting MR3 002 "aes128" #15: Peer ID is ID_FQDN: '@east' 004 "aes128" #15: STATE_MAIN_I4: ISAKMP SA established {auth=PRESHARED_KEY cipher=AES_CBC_128 integ=HMAC_SHA1 group=MODP2048} 002 "aes128" #16: initiating Quick Mode PSK+ENCRYPT+TUNNEL+PFS+UP+IKEV1_ALLOW+SAREF_TRACK+IKE_FRAG_ALLOW+ESN_NO -002 "aes128" #16: IMPAIR: stripping key-length -002 "aes128" #16: IMPAIR: key-length-attribute:empty not implemented 1v1 "aes128" #16: STATE_QUICK_I1: initiate -002 "aes128" #16: IMPAIR: retransmit so deleting SA -002 "aes128" #16: deleting state (STATE_QUICK_I1) and NOT sending notification +004 "aes128" #16: STATE_QUICK_I2: sent QI2, IPsec SA established tunnel mode {ESP=>0xESPESP <0xESPESP xfrm=AES_CBC_128-HMAC_SHA1_96 NATOA=none NATD=none DPD=passive} +destination -I 192.0.1.254 192.0.2.254 is alive +002 "aes128": terminating SAs using this connection +002 "aes128" #16: deleting state (STATE_QUICK_I2) and sending notification +005 "aes128" #16: ESP traffic information: in=84B out=84B +002 "aes128" #15: deleting state (STATE_MAIN_I4) and sending notification +002 "aes128": terminating SAs using this connection +west # + ipsec whack --impair none +west # + +west # + ipsec whack --impair delete-on-retransmit +west # + ipsec whack --impair emitting +west # + ipsec whack --impair child-key-length-attribute:empty +west # + ../../pluto/bin/libreswan-up-down.sh aes128 -I 192.0.1.254 192.0.2.254 +002 added connection description "aes128" +002 "aes128" #17: initiating Main Mode +1v1 "aes128" #17: STATE_MAIN_I1: initiate +1v1 "aes128" #17: STATE_MAIN_I2: sent MI2, expecting MR2 +1v1 "aes128" #17: STATE_MAIN_I3: sent MI3, expecting MR3 +002 "aes128" #17: Peer ID is ID_FQDN: '@east' +004 "aes128" #17: STATE_MAIN_I4: ISAKMP SA established {auth=PRESHARED_KEY cipher=AES_CBC_128 integ=HMAC_SHA1 group=MODP2048} +002 "aes128" #18: initiating Quick Mode PSK+ENCRYPT+TUNNEL+PFS+UP+IKEV1_ALLOW+SAREF_TRACK+IKE_FRAG_ALLOW+ESN_NO +002 "aes128" #18: IMPAIR: stripping key-length +002 "aes128" #18: IMPAIR: key-length-attribute:empty not implemented +1v1 "aes128" #18: STATE_QUICK_I1: initiate +002 "aes128" #18: IMPAIR: retransmit so deleting SA +002 "aes128" #18: deleting state (STATE_QUICK_I1) and NOT sending notification west # ipsec whack --impair none west # + +west # # 3DES: key-length should be omitted west # + +west # # should work west # + +west # ipsec whack --impair suppress-retransmits west # ../../pluto/bin/libreswan-up-down.sh 3des -I 192.0.1.254 192.0.2.254 002 added connection description "3des" -002 "3des" #17: initiating Main Mode -1v1 "3des" #17: STATE_MAIN_I1: initiate -1v1 "3des" #17: STATE_MAIN_I2: sent MI2, expecting MR2 -1v1 "3des" #17: STATE_MAIN_I3: sent MI3, expecting MR3 -002 "3des" #17: Peer ID is ID_FQDN: '@east' -004 "3des" #17: STATE_MAIN_I4: ISAKMP SA established {auth=PRESHARED_KEY cipher=3DES_CBC_192 integ=HMAC_SHA1 group=MODP2048} -002 "3des" #18: initiating Quick Mode PSK+ENCRYPT+TUNNEL+PFS+UP+IKEV1_ALLOW+SAREF_TRACK+IKE_FRAG_ALLOW+ESN_NO -1v1 "3des" #18: STATE_QUICK_I1: initiate -004 "3des" #18: STATE_QUICK_I2: sent QI2, IPsec SA established tunnel mode {ESP=>0xESPESP <0xESPESP xfrm=3DES_CBC-HMAC_SHA1_96 NATOA=none NATD=none DPD=passive} +002 "3des" #19: initiating Main Mode +1v1 "3des" #19: STATE_MAIN_I1: initiate +1v1 "3des" #19: STATE_MAIN_I2: sent MI2, expecting MR2 +1v1 "3des" #19: STATE_MAIN_I3: sent MI3, expecting MR3 +002 "3des" #19: Peer ID is ID_FQDN: '@east' +004 "3des" #19: STATE_MAIN_I4: ISAKMP SA established {auth=PRESHARED_KEY cipher=3DES_CBC_192 integ=HMAC_SHA1 group=MODP2048} +002 "3des" #20: initiating Quick Mode PSK+ENCRYPT+TUNNEL+PFS+UP+IKEV1_ALLOW+SAREF_TRACK+IKE_FRAG_ALLOW+ESN_NO +1v1 "3des" #20: STATE_QUICK_I1: initiate +004 "3des" #20: STATE_QUICK_I2: sent QI2, IPsec SA established tunnel mode {ESP=>0xESPESP <0xESPESP xfrm=3DES_CBC-HMAC_SHA1_96 NATOA=none NATD=none DPD=passive} destination -I 192.0.1.254 192.0.2.254 is alive 002 "3des": terminating SAs using this connection -002 "3des" #18: deleting state (STATE_QUICK_I2) and sending notification -005 "3des" #18: ESP traffic information: in=84B out=84B -002 "3des" #17: deleting state (STATE_MAIN_I4) and sending notification +002 "3des" #20: deleting state (STATE_QUICK_I2) and sending notification +005 "3des" #20: ESP traffic information: in=84B out=84B +002 "3des" #19: deleting state (STATE_MAIN_I4) and sending notification 002 "3des": terminating SAs using this connection west # ipsec whack --impair none west # + +west # # send 0 instead of leaving it out west # + +west # ipsec whack --impair delete-on-retransmit west # ipsec whack --impair ike-key-length-attribute:0 west # ../../pluto/bin/libreswan-up-down.sh 3des -I 192.0.1.254 192.0.2.254 002 added connection description "3des" -002 "3des" #19: initiating Main Mode -002 "3des" #19: IMPAIR: sending key-length attribute value 0 -1v1 "3des" #19: STATE_MAIN_I1: initiate -003 "3des" #19: ignoring informational payload NO_PROPOSAL_CHOSEN, msgid=00000000, length=12 -003 "3des" #19: received and ignored notification payload: NO_PROPOSAL_CHOSEN -002 "3des" #19: IMPAIR: retransmit so deleting SA -002 "3des" #19: deleting state (STATE_MAIN_I1) and NOT sending notification +002 "3des" #21: initiating Main Mode +002 "3des" #21: IMPAIR: sending key-length attribute value 0 +1v1 "3des" #21: STATE_MAIN_I1: initiate +003 "3des" #21: ignoring informational payload NO_PROPOSAL_CHOSEN, msgid=00000000, length=12 +003 "3des" #21: received and ignored notification payload: NO_PROPOSAL_CHOSEN +002 "3des" #21: IMPAIR: retransmit so deleting SA +002 "3des" #21: deleting state (STATE_MAIN_I1) and NOT sending notification west # ipsec whack --impair none west # + +west # # send 192 instead of leaving it out west # + +west # ipsec whack --impair delete-on-retransmit west # ipsec whack --impair ike-key-length-attribute:192 west # ../../pluto/bin/libreswan-up-down.sh 3des -I 192.0.1.254 192.0.2.254 002 added connection description "3des" -002 "3des" #20: initiating Main Mode -002 "3des" #20: IMPAIR: sending key-length attribute value 192 -1v1 "3des" #20: STATE_MAIN_I1: initiate -1v1 "3des" #20: STATE_MAIN_I2: sent MI2, expecting MR2 -1v1 "3des" #20: STATE_MAIN_I3: sent MI3, expecting MR3 -002 "3des" #20: Peer ID is ID_FQDN: '@east' -004 "3des" #20: STATE_MAIN_I4: ISAKMP SA established {auth=PRESHARED_KEY cipher=3DES_CBC_192 integ=HMAC_SHA1 group=MODP2048} -002 "3des" #21: initiating Quick Mode PSK+ENCRYPT+TUNNEL+PFS+UP+IKEV1_ALLOW+SAREF_TRACK+IKE_FRAG_ALLOW+ESN_NO -1v1 "3des" #21: STATE_QUICK_I1: initiate -004 "3des" #21: STATE_QUICK_I2: sent QI2, IPsec SA established tunnel mode {ESP=>0xESPESP <0xESPESP xfrm=3DES_CBC-HMAC_SHA1_96 NATOA=none NATD=none DPD=passive} +002 "3des" #23: initiating Main Mode +002 "3des" #23: IMPAIR: sending key-length attribute value 192 +1v1 "3des" #23: STATE_MAIN_I1: initiate +1v1 "3des" #23: STATE_MAIN_I2: sent MI2, expecting MR2 +1v1 "3des" #23: STATE_MAIN_I3: sent MI3, expecting MR3 +002 "3des" #23: Peer ID is ID_FQDN: '@east' +004 "3des" #23: STATE_MAIN_I4: ISAKMP SA established {auth=PRESHARED_KEY cipher=3DES_CBC_192 integ=HMAC_SHA1 group=MODP2048} +002 "3des" #24: initiating Quick Mode PSK+ENCRYPT+TUNNEL+PFS+UP+IKEV1_ALLOW+SAREF_TRACK+IKE_FRAG_ALLOW+ESN_NO +1v1 "3des" #24: STATE_QUICK_I1: initiate +004 "3des" #24: STATE_QUICK_I2: sent QI2, IPsec SA established tunnel mode {ESP=>0xESPESP <0xESPESP xfrm=3DES_CBC-HMAC_SHA1_96 NATOA=none NATD=none DPD=passive} destination -I 192.0.1.254 192.0.2.254 is alive 002 "3des": terminating SAs using this connection -002 "3des" #21: deleting state (STATE_QUICK_I2) and sending notification -005 "3des" #21: ESP traffic information: in=84B out=84B -002 "3des" #20: deleting state (STATE_MAIN_I4) and sending notification +002 "3des" #24: deleting state (STATE_QUICK_I2) and sending notification +005 "3des" #24: ESP traffic information: in=84B out=84B +002 "3des" #23: deleting state (STATE_MAIN_I4) and sending notification 002 "3des": terminating SAs using this connection west # ipsec whack --impair none west # + +west # echo done done west #