/testing/guestbin/swan-prep
north #
 rm -fr /var/run/pluto/pluto.pid
north #
 PATH/sbin/ipsec _stackmanager start --netkey
north #
 PLUTO_CRYPTO_HELPER_DELAY=2 PATH/libexec/ipsec/pluto --config /etc/ipsec.conf
north #
 /testing/pluto/bin/wait-until-pluto-started
north #
 ipsec auto --add north-eastnets
002 added connection description "north-eastnets/0x1"
002 added connection description "north-eastnets/0x2"
north #
 echo "initdone"
initdone
north #
 sleep 17
north #
 ping -n -c 2 -I 192.0.3.254 192.0.2.254
PING 192.0.2.254 (192.0.2.254) from 192.0.3.254 : 56(84) bytes of data.
64 bytes from 192.0.2.254: icmp_seq=1 ttl=64 time=0.XXX ms
64 bytes from 192.0.2.254: icmp_seq=2 ttl=64 time=0.XXX ms
--- 192.0.2.254 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time XXXX
rtt min/avg/max/mdev = 0.XXX/0.XXX/0.XXX/0.XXX ms
north #
 # there should be only two Child SA
north #
 echo done
done
north #
 ipsec whack --trafficstatus
006 #2: "north-eastnets/0x1", type=ESP, add_time=1234567890, inBytes=168, outBytes=168, id='@east'
006 #3: "north-eastnets/0x2", type=ESP, add_time=1234567890, inBytes=0, outBytes=0, id='@east'
north #
north #
 ../bin/check-for-core.sh
north #
 if [ -f /sbin/ausearch ]; then ausearch -r -m avc -ts recent ; fi

