/testing/guestbin/swan-prep
east #
 ipsec start
Redirecting to: systemctl start ipsec.service
east #
 /testing/pluto/bin/wait-until-pluto-started
east #
 ipsec auto --add westnet-eastnet
002 added connection description "westnet-eastnet"
east #
 ipsec auto --add west-east
002 added connection description "west-east"
east #
 echo "initdone"
initdone
east #
 sleep 1
east #
 # Expecting the IKE SA of west-east and the IPsec SA of westnet-eastnet
east #
 ipsec status |grep STATE
000 #1: "west-east":500 STATE_MAIN_R3 (sent MR3, ISAKMP SA established); EVENT_SA_REPLACE in  XXs; newest ISAKMP; lastdpd=-1s(seq in:0 out:0); idle;
000 #3: "westnet-eastnet":500 STATE_QUICK_R2 (IPsec SA established); EVENT_SA_REPLACE in  XXs; newest IPSEC; eroute owner; isakmp#1; idle;
east #
east #
 ../bin/check-for-core.sh
east #
 if [ -f /sbin/ausearch ]; then ausearch -r -m avc -ts recent ; fi

