/testing/guestbin/swan-prep
west #
 ipsec start
Redirecting to: [initsystem]
west #
 ../../guestbin/wait-until-pluto-started
west #
 ipsec auto --add westnet-eastnet-mismatch
002 "westnet-eastnet-mismatch": added IKEv2 connection
west #
 echo "initdone"
initdone
west #
 ipsec whack --impair revival
west #
 ipsec auto --up westnet-eastnet-mismatch
1v2 "westnet-eastnet-mismatch" #1: initiating IKEv2 connection
1v2 "westnet-eastnet-mismatch" #1: sent IKE_SA_INIT request to 192.1.2.23:500
002 "westnet-eastnet-mismatch" #1: WARNING: '@west' PSK length of 6 bytes is too short for PRF HMAC_SHA2_512 in FIPS mode (32 bytes required)
1v2 "westnet-eastnet-mismatch" #1: sent IKE_AUTH request {cipher=AES_GCM_16_256 integ=n/a prf=HMAC_SHA2_512 group=MODP2048}
002 "westnet-eastnet-mismatch" #1: WARNING: '@west' PSK length of 6 bytes is too short for PRF HMAC_SHA2_512 in FIPS mode (32 bytes required)
003 "westnet-eastnet-mismatch" #1: initiator established IKE SA; authenticated peer using authby=secret and ID_FQDN '@east'
003 "westnet-eastnet-mismatch" #2: IKE_AUTH response rejected Child SA with TS_UNACCEPTABLE
west #
 echo done
done
west #
 # this should not match anything
west #
 grep v2N_INVALID_MESSAGE_ID /tmp/pluto.log
west #
 # this shows we returned the error in IKE_AUTH
west #
 grep "exchange type:" /tmp/pluto.log
|    exchange type: ISAKMP_v2_IKE_SA_INIT (0x22)
|    exchange type: ISAKMP_v2_IKE_SA_INIT (0x22)
|    exchange type: ISAKMP_v2_IKE_AUTH (0x23)
|    exchange type: ISAKMP_v2_IKE_AUTH (0x23)
west #
 
