/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-ipv4-psk-ikev2
002 added connection description "westnet-eastnet-ipv4-psk-ikev2"
east #
 echo "initdone"
initdone
east #
 # should be empty if east triggered
east #
 hostname | grep west > /dev/null || ipsec whack --trafficstatus
east #
 grep "Message ID: [0-9][0-9]* " /tmp/pluto.log
|    Message ID: 0 (0x0)
|    Message ID: 0 (0x0)
|    Message ID: 1 (0x1)
|    Message ID: 1 (0x1)
|    Message ID: 0 (0x0)
|    Message ID: 0 (0x0)
|    Message ID: 1 (0x1)
|    Message ID: 1 (0x1)
|    Message ID: 2 (0x2)
|    Message ID: 2 (0x2)
|    Message ID: 3 (0x3)
|    Message ID: 3 (0x3)
|    Message ID: 4 (0x4)
|    Message ID: 4 (0x4)
|    Message ID: 5 (0x5)
|    Message ID: 5 (0x5)
|    Message ID: 6 (0x6)
|    Message ID: 6 (0x6)
|    Message ID: 7 (0x7)
|    Message ID: 7 (0x7)
|    Message ID: 8 (0x8)
|    Message ID: 8 (0x8)
|    Message ID: 9 (0x9)
|    Message ID: 10 (0xa)
|    Message ID: 11 (0xb)
|    Message ID: 12 (0xc)
|    Message ID: 13 (0xd)
|    Message ID: 14 (0xe)
|    Message ID: 15 (0xf)
east #
 # grep on east
east #
 hostname | grep west > /dev/null || grep -A 1 "has not responded in" /tmp/pluto.log
"westnet-eastnet-ipv4-psk-ikev2" #2: liveness_check - peer 192.1.2.45 has not responded in 30 seconds, with a timeout of 30, taking action:clear
"westnet-eastnet-ipv4-psk-ikev2" #2: IKEv2 liveness action - clearing connection kind CK_PERMANENT
east #
east #
 ../bin/check-for-core.sh
east #
 if [ -f /sbin/ausearch ]; then ausearch -r -m avc -ts recent ; fi

