/testing/guestbin/swan-prep
west #
 # confirm that the network is alive
west #
 ../../pluto/bin/wait-until-alive -I 192.0.1.254 192.0.2.254
destination -I 192.0.1.254 192.0.2.254 is alive
west #
 ipsec start
Redirecting to: systemctl start ipsec.service
west #
 /testing/pluto/bin/wait-until-pluto-started
west #
 ipsec whack --impair major-version-bump --impair retransmits
west #
 ipsec auto --add westnet-eastnet-ikev2-major
002 added connection description "westnet-eastnet-ikev2-major"
west #
 echo "initdone"
initdone
west #
 ipsec auto --up  westnet-eastnet-ikev2-major
002 "westnet-eastnet-ikev2-major" #1: initiating v2 parent SA
133 "westnet-eastnet-ikev2-major" #1: STATE_PARENT_I1: initiate
133 "westnet-eastnet-ikev2-major" #1: STATE_PARENT_I1: sent v2I1, expected v2R1
002 "westnet-eastnet-ikev2-major" #1: suppressing retransmit because IMPAIR_RETRANSMITS is set.
003 "westnet-eastnet-ikev2-major" #1: Informational Exchange message must be encrypted
west #
 echo done
done
west #
 grep INVALID_MAJOR_VERSION /tmp/pluto.log
west #
 grep "INVALID_MAJOR_VERSION" /tmp/pluto.log >/dev/null && echo payload found
west #
west #
 ../bin/check-for-core.sh
west #
 if [ -f /sbin/ausearch ]; then ausearch -r -m avc -ts recent ; fi

