/testing/guestbin/swan-prep
west #
 ipsec start
Redirecting to: [initsystem]
west #
 ../../guestbin/wait-until-pluto-started
west #
 ipsec auto --add westnet-eastnet-ipv4-psk
002 "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 delete-on-retransmit
west #
 ipsec whack --impair revival
west #
 ipsec auto --up westnet-eastnet-ipv4-psk
002 "westnet-eastnet-ipv4-psk" #1: initiating IKEv1 Main Mode connection
1v1 "westnet-eastnet-ipv4-psk" #1: sent Main Mode request
002 "westnet-eastnet-ipv4-psk" #1: IMPAIR: sending empty KE (g^x)
1v1 "westnet-eastnet-ipv4-psk" #1: sent Main Mode I2
003 "westnet-eastnet-ipv4-psk" #1: ignoring informational payload INVALID_KEY_INFORMATION, msgid=00000000, length=12
003 "westnet-eastnet-ipv4-psk" #1: received and ignored notification payload: INVALID_KEY_INFORMATION
002 "westnet-eastnet-ipv4-psk" #1: IMPAIR: retransmit so deleting SA
002 "westnet-eastnet-ipv4-psk" #1: deleting state (STATE_MAIN_I2) and NOT sending notification
002 "westnet-eastnet-ipv4-psk" #1: IMPAIR: skipping revival of connection that is supposed to remain up
west #
 ipsec auto --delete westnet-eastnet-ipv4-psk
002 "westnet-eastnet-ipv4-psk": terminating SAs using this connection
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
002 "westnet-eastnet-ipv4-psk": added IKEv1 connection
west #
 ipsec auto --up westnet-eastnet-ipv4-psk
002 "westnet-eastnet-ipv4-psk" #2: initiating IKEv1 Main Mode connection
1v1 "westnet-eastnet-ipv4-psk" #2: sent Main Mode request
1v1 "westnet-eastnet-ipv4-psk" #2: sent Main Mode I2
003 "westnet-eastnet-ipv4-psk" #2: KE has 0 byte DH public value; 256 required
217 "westnet-eastnet-ipv4-psk" #2: sending notification INVALID_KEY_INFORMATION to 192.1.2.23:500
031 "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
002 "westnet-eastnet-ipv4-psk" #2: deleting state (STATE_MAIN_I2) and NOT sending notification
002 "westnet-eastnet-ipv4-psk" #2: IMPAIR: skipping revival of connection that is supposed to remain up
west #
 ipsec auto --delete westnet-eastnet-ipv4-psk
002 "westnet-eastnet-ipv4-psk": terminating SAs using this connection
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 #
 
