/testing/guestbin/swan-prep west # ipsec start Redirecting to: [initsystem] west # /testing/pluto/bin/wait-until-pluto-started west # echo "initdone" initdone 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 002 added connection description "aes128" 002 "aes128" #1: initiating Main Mode 1v1 "aes128" #1: STATE_MAIN_I1: initiate 1v1 "aes128" #1: STATE_MAIN_I2: sent MI2, expecting MR2 1v1 "aes128" #1: STATE_MAIN_I3: sent MI3, expecting MR3 002 "aes128" #1: Peer ID is ID_FQDN: '@east' 004 "aes128" #1: STATE_MAIN_I4: ISAKMP SA established {auth=PRESHARED_KEY cipher=AES_CBC_128 integ=HMAC_SHA1 group=MODP2048} 002 "aes128" #2: initiating Quick Mode PSK+ENCRYPT+TUNNEL+PFS+UP+IKEV1_ALLOW+SAREF_TRACK+IKE_FRAG_ALLOW+ESN_NO 1v1 "aes128" #2: STATE_QUICK_I1: initiate 004 "aes128" #2: 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" #2: deleting state (STATE_QUICK_I2) and sending notification 005 "aes128" #2: ESP traffic information: in=84B out=84B 002 "aes128" #1: deleting state (STATE_MAIN_I4) and sending notification 002 "aes128": terminating SAs using this connection 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 west # ../../pluto/bin/libreswan-up-down.sh aes128 -I 192.0.1.254 192.0.2.254 002 added connection description "aes128" 002 "aes128" #3: initiating Main Mode 002 "aes128" #3: IMPAIR: stripping key-length 002 "aes128" #3: IMPAIR: duplicating key-length 1v1 "aes128" #3: STATE_MAIN_I1: initiate 003 "aes128" #3: ignoring informational payload BAD_PROPOSAL_SYNTAX, msgid=00000000, length=12 003 "aes128" #3: received and ignored notification payload: BAD_PROPOSAL_SYNTAX 002 "aes128" #3: IMPAIR: retransmit so deleting SA 002 "aes128" #3: deleting state (STATE_MAIN_I1) and NOT sending notification 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" #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 # west # # send 0 instead of 128 west # 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" #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 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 # west # ipsec whack --impair delete-on-retransmit west # 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 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 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 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 1v1 "aes128" #12: STATE_QUICK_I1: initiate 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 # west # ipsec whack --impair delete-on-retransmit west # 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 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 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 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 1v1 "aes128" #16: STATE_QUICK_I1: initiate 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" #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" #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" #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" #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" #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 # grep INVALID_KEY_INFORMATION /tmp/pluto.log west # west # ../bin/check-for-core.sh west # if [ -f /sbin/ausearch ]; then ausearch -r -m avc -ts recent ; fi