/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 #
 # should fail fast
west #
 ipsec whack --impair ke-payload:0
west #
 ipsec whack --impair delete-on-retransmit
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 bogus KE (g^x) == 0 value to break DH calculations
1v1 "westnet-eastnet-ipv4-psk" #1: sent Main Mode I2
003 "westnet-eastnet-ipv4-psk" #1: NSS: shared key calculation using MODP failed: SEC_ERROR_NO_MEMORY: security library: memory allocation failure.
217 "westnet-eastnet-ipv4-psk" #1: sending notification INVALID_KEY_INFORMATION to 192.1.2.23:500
002 "westnet-eastnet-ipv4-psk" #1: deleting state (STATE_MAIN_I2) and NOT sending notification
002 "westnet-eastnet-ipv4-psk" #1: deleting IKE SA but connection is supposed to remain up; schedule EVENT_REVIVE_CONNS
west #
 ipsec whack --impair none
west #
 # expected to fail with a timeout
west #
 ipsec whack --impair suppress-retransmits
west #
 ipsec whack --impair revival
west #
 ipsec auto --add westnet-eastnet-ipv4-psk
002 "westnet-eastnet-ipv4-psk": terminating SAs using this connection
002 "westnet-eastnet-ipv4-psk" #2: deleting state (STATE_MAIN_I2) and NOT sending notification
002 "westnet-eastnet-ipv4-psk": added IKEv1 connection
west #
 ipsec auto --up westnet-eastnet-ipv4-psk
002 "westnet-eastnet-ipv4-psk" #3: initiating IKEv1 Main Mode connection
1v1 "westnet-eastnet-ipv4-psk" #3: sent Main Mode request
1v1 "westnet-eastnet-ipv4-psk" #3: sent Main Mode I2
003 "westnet-eastnet-ipv4-psk" #3: NSS: shared key calculation using MODP failed: SEC_ERROR_NO_MEMORY: security library: memory allocation failure.
217 "westnet-eastnet-ipv4-psk" #3: sending notification INVALID_KEY_INFORMATION to 192.1.2.23:500
002 "westnet-eastnet-ipv4-psk" #3: deleting state (STATE_MAIN_I2) and NOT sending notification
002 "westnet-eastnet-ipv4-psk" #3: IMPAIR: skipping revival of connection that is supposed to remain up
west #
 echo done
done
west #
 grep INVALID_KEY_INFORMATION /tmp/pluto.log
| complete v1 state transition with INVALID_KEY_INFORMATION
"westnet-eastnet-ipv4-psk" #1: sending notification INVALID_KEY_INFORMATION to 192.1.2.23:500
|    Notify Message Type: INVALID_KEY_INFORMATION (0x11)
| state transition function for STATE_MAIN_I2 failed: 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: INVALID_KEY_INFORMATION (0x11)
| state transition function for STATE_MAIN_I2 failed: INVALID_KEY_INFORMATION
| complete v1 state transition with INVALID_KEY_INFORMATION
"westnet-eastnet-ipv4-psk" #3: sending notification INVALID_KEY_INFORMATION to 192.1.2.23:500
|    Notify Message Type: INVALID_KEY_INFORMATION (0x11)
| state transition function for STATE_MAIN_I2 failed: INVALID_KEY_INFORMATION
west #
 
