/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 --debug-all --impair-send-key-size-check all --impair-retransmits
whack error: unexpected argument "all"
west #
 ipsec auto --add westnet-eastnet-aes256
003 phase2alg string error: 3DES does not take variable key lengths, enc_alg="3des"(333), auth_alg="sha1", modp=""
west #
 ipsec auto --status | grep westnet-eastnet-aes256
west #
 echo "initdone"
initdone
west #
 ipsec auto --up  westnet-eastnet-aes256
000 initiating all conns with alias='westnet-eastnet-aes256'
021 no connection named "westnet-eastnet-aes256"
west #
 echo done
done
west #
 # should not match anything
west #
 grep ID_UNASSIGNED_ID4 /tmp/pluto.log
west #
west #
 if [ -n "`ls /tmp/core* 2>/dev/null`" ]; then echo CORE FOUND; mv /tmp/core* OUTPUT/; fi
west #
 if [ -f /sbin/ausearch ]; then ausearch -r -m avc -ts recent ; fi

