/testing/guestbin/swan-prep
west #
 ipsec start
Redirecting to: [initsystem]
west #
 ../../guestbin/wait-until-pluto-started
west #
 ipsec auto --add westnet-eastnet-ipv4-psk
"westnet-eastnet-ipv4-psk": added IKEv1 connection
west #
 echo "initdone"
initdone
west #
 # initiator sends an empty KE payload
west #
 # responder should return invalid KE
west #
 ipsec whack --impair ke_payload:empty
west #
 ipsec whack --impair timeout_on_retransmit
west #
 ipsec whack --impair revival
west #
 ipsec auto --up westnet-eastnet-ipv4-psk
"westnet-eastnet-ipv4-psk" #1: initiating IKEv1 Main Mode connection
"westnet-eastnet-ipv4-psk" #1: sent Main Mode request
"westnet-eastnet-ipv4-psk" #1: IMPAIR: sending empty KE (g^x)
"westnet-eastnet-ipv4-psk" #1: sent Main Mode I2
"westnet-eastnet-ipv4-psk" #1: ignoring informational payload INVALID_KEY_INFORMATION, msgid=00000000, length=12
"westnet-eastnet-ipv4-psk" #1: received and ignored notification payload: INVALID_KEY_INFORMATION
"westnet-eastnet-ipv4-psk" #1: IMPAIR: retransmit so timing out SA (may retry)
"westnet-eastnet-ipv4-psk" #1: connection is supposed to remain up; revival attempt 1 scheduled in 0 seconds
"westnet-eastnet-ipv4-psk" #1: IMPAIR: revival: skip scheduling revival event
"westnet-eastnet-ipv4-psk" #1: deleting ISAKMP SA (MAIN_I2) and NOT sending notification
west #
 ipsec auto --delete westnet-eastnet-ipv4-psk
west #
 ipsec whack --impair none
west #
 # initiator sends valid KE
west #
 # responder sends back empty KE, should be rejected
west #
 # (responder also has re-transmits disabled)
west #
 ipsec whack --impair suppress_retransmits
west #
 ipsec whack --impair revival
west #
 ipsec auto --add westnet-eastnet-ipv4-psk
"westnet-eastnet-ipv4-psk": added IKEv1 connection
west #
 ipsec auto --up westnet-eastnet-ipv4-psk
"westnet-eastnet-ipv4-psk" #2: initiating IKEv1 Main Mode connection
"westnet-eastnet-ipv4-psk" #2: sent Main Mode request
"westnet-eastnet-ipv4-psk" #2: sent Main Mode I2
"westnet-eastnet-ipv4-psk" #2: KE has 0 byte DH public value; 256 required
"westnet-eastnet-ipv4-psk" #2: sending notification INVALID_KEY_INFORMATION to 192.1.2.23:500
"westnet-eastnet-ipv4-psk" #2: STATE_MAIN_I2: 60 second timeout exceeded after 0 retransmits.  No response (or no acceptable response) to our IKEv1 message
"westnet-eastnet-ipv4-psk" #2: connection is supposed to remain up; revival attempt 1 scheduled in 0 seconds
"westnet-eastnet-ipv4-psk" #2: IMPAIR: revival: skip scheduling revival event
"westnet-eastnet-ipv4-psk" #2: deleting ISAKMP SA (MAIN_I2) and NOT sending notification
west #
 ipsec auto --delete westnet-eastnet-ipv4-psk
west #
 grep INVALID_KEY_INFORMATION /tmp/pluto.log
|    Notify Message Type: v1N_INVALID_KEY_INFORMATION (0x11)
"westnet-eastnet-ipv4-psk" #1: ignoring informational payload INVALID_KEY_INFORMATION, msgid=00000000, length=12
| processing informational INVALID_KEY_INFORMATION (17)
"westnet-eastnet-ipv4-psk" #1: received and ignored notification payload: INVALID_KEY_INFORMATION
| complete v1 state transition with INVALID_KEY_INFORMATION
"westnet-eastnet-ipv4-psk" #2: sending notification INVALID_KEY_INFORMATION to 192.1.2.23:500
|    Notify Message Type: v1N_INVALID_KEY_INFORMATION (0x11)
| state transition function for STATE_MAIN_I2 failed: INVALID_KEY_INFORMATION
west #
 
