/testing/guestbin/swan-prep
east #
 cp east-ikev2-oe.conf /etc/ipsec.d/ikev2-oe.conf
east #
 cp policies/* /etc/ipsec.d/policies/
east #
 echo "192.1.3.0/24"  >> /etc/ipsec.d/policies/clear-or-private
east #
 ipsec start
Redirecting to: [initsystem]
east #
 /testing/pluto/bin/wait-until-pluto-started
east #
 ipsec whack --impair suppress-retransmits
east #
 # give OE policies time to load
east #
 sleep 5
east #
 ipsec status | grep "our auth" | grep private
000 "clear-or-private":   our auth:null, their auth:null
000 "clear-or-private#192.1.3.0/24":   our auth:null, their auth:null
000 "private":   our auth:null, their auth:null
000 "private-or-clear":   our auth:null, their auth:null
000 "private-or-clear-all":   our auth:null, their auth:null
east #
 echo "initdone"
initdone
east #
 # Authentication should be AUTHNULL
east #
 hostname | grep nic > /dev/null || grep authenticated /tmp/pluto.log
"clear-or-private#192.1.3.0/24"[1] ...192.1.3.209 #1: authenticated using authby=null
east #
 ../bin/check-for-core.sh
east #
 if [ -f /sbin/ausearch ]; then ausearch -r -m avc -ts recent ; fi
east #
 
