/testing/guestbin/swan-prep
west #
 ipsec start
Redirecting to: [initsystem]
west #
 ../../guestbin/wait-until-pluto-started
west #
 echo "initdone"
initdone
west #
 ipsec whack --impair suppress_retransmits # one packet
west #
 ipsec whack --impair replay_encrypted
west #
 ipsec whack --impair corrupt_encrypted
west #
 ../../guestbin/libreswan-up-down.sh westnet-eastnet-ipv4-psk-ikev2 -I 192.0.1.254 192.0.2.254
"westnet-eastnet-ipv4-psk-ikev2": added IKEv2 connection
"westnet-eastnet-ipv4-psk-ikev2" #1: initiating IKEv2 connection to 192.1.2.23 using UDP
"westnet-eastnet-ipv4-psk-ikev2" #1: sent IKE_SA_INIT request to 192.1.2.23:UDP/500
"westnet-eastnet-ipv4-psk-ikev2" #1: processed IKE_SA_INIT response from 192.1.2.23:UDP/500 {cipher=AES_GCM_16_256 integ=n/a prf=HMAC_SHA2_512 group=DH19}, initiating IKE_AUTH
"westnet-eastnet-ipv4-psk-ikev2" #1: sent IKE_AUTH request to 192.1.2.23:UDP/500
"westnet-eastnet-ipv4-psk-ikev2" #1: IMPAIR: cloning incoming encrypted message and scheduling its replay
"westnet-eastnet-ipv4-psk-ikev2" #1: IMPAIR: corrupting incoming encrypted message's SK payload's first byte
"westnet-eastnet-ipv4-psk-ikev2" #1: NSS: AEAD decryption using AES_GCM_16_256 and PK11_Decrypt() failed: SEC_ERROR_BAD_DATA: security library: received bad data.
"westnet-eastnet-ipv4-psk-ikev2" #1: encrypted payload seems to be corrupt; dropping packet
"westnet-eastnet-ipv4-psk-ikev2" #1: IMPAIR: processing a fake (cloned) message
"westnet-eastnet-ipv4-psk-ikev2" #1: initiator established IKE SA; authenticated peer using authby=secret and ID_FQDN '@east'
"westnet-eastnet-ipv4-psk-ikev2" #2: initiator established Child SA using #1; IPsec tunnel [192.0.1.0/24===192.0.2.0/24] {ESP/ESN=>0xESPESP <0xESPESP xfrm=AES_GCM_16_256-NONE DPD=passive}
up
"westnet-eastnet-ipv4-psk-ikev2": terminating SAs using this connection
"westnet-eastnet-ipv4-psk-ikev2" #1: sent INFORMATIONAL request to delete IKE SA
"westnet-eastnet-ipv4-psk-ikev2" #1: IMPAIR: cloning incoming encrypted message and scheduling its replay
"westnet-eastnet-ipv4-psk-ikev2" #1: IMPAIR: corrupting incoming encrypted message's SK payload's first byte
"westnet-eastnet-ipv4-psk-ikev2" #1: NSS: AEAD decryption using AES_GCM_16_256 and PK11_Decrypt() failed: SEC_ERROR_BAD_DATA: security library: received bad data.
"westnet-eastnet-ipv4-psk-ikev2" #1: encrypted payload seems to be corrupt; dropping packet
"westnet-eastnet-ipv4-psk-ikev2" #1: IMPAIR: processing a fake (cloned) message
"westnet-eastnet-ipv4-psk-ikev2" #2: ESP traffic information: in=84B out=84B
"westnet-eastnet-ipv4-psk-ikev2" #1: deleting IKE SA (STATE_IKESA_DEL)
west #
 echo done
done
west #
 : expect only one SKEYSEED operation
west #
 grep 'calculating skeyseed' /tmp/pluto.log | wc -l
1
west #
 ../../guestbin/ipsec-kernel-state.sh
west #
 ../../guestbin/ipsec-kernel-policy.sh
west #
 
