/testing/guestbin/swan-prep
east #
 ipsec start
Redirecting to: systemctl start ipsec.service
east #
 /testing/pluto/bin/wait-until-pluto-started
east #
 # connections are loaded and initiated via auto=start
east #
 echo "initdone"
initdone
east #
 # one IPsec SA should be up and one ISAKMP SA should be there
east #
 # on west no other states should be there, but on east there
east #
 # should be an attempt for the deleted IPsec SA to be restarted
east #
 ipsec whack --trafficstatus
006 #2: "west-east-auto2", type=ESP, add_time=1234567890, inBytes=0, outBytes=0, id='@west'
east #
 ipsec status |grep west-east |grep STATE_
000 #1: "west-east-auto":500 STATE_MAIN_I4 (ISAKMP SA established); EVENT_SA_REPLACE in XXs; newest ISAKMP; lastdpd=-1s(seq in:0 out:0); idle;
000 #4: "west-east-auto":500 STATE_QUICK_I1 (sent QI1, expecting QR1); EVENT_RETRANSMIT in XXs; lastdpd=-1s(seq in:0 out:0); idle;
000 #2: "west-east-auto2":500 STATE_QUICK_I2 (sent QI2, 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

