/testing/guestbin/swan-prep  --x509
Preparing X.509 files
east #
 ip route del default
east #
 ip route add default via 192.9.2.254
east #
 ip route add 192.1.3.0/24 via 192.1.2.254
east #
 certutil -D -n road -d sql:/etc/ipsec.d
east #
 certutil -D -n east -d sql:/etc/ipsec.d
east #
 cp east-ikev2-oe.conf /etc/ipsec.d/ikev2-oe.conf
east #
 cp policies/* /etc/ipsec.d/policies/
east #
 echo "192.1.3.209/32"  >> /etc/ipsec.d/policies/private
east #
 restorecon -R /etc/ipsec.d
east #
 ipsec start
Redirecting to: systemctl start ipsec.service
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 #
 echo "initdone"
initdone
east #
 # confirm tunnel is up
east #
 ipsec whack --trafficstatus
006 #2: "private#192.1.3.209/32"[1] ...192.1.3.209, type=ESP, add_time=1234567890, inBytes=504, outBytes=504, id='C=CA, ST=Ontario, L=Toronto, O=Libreswan, OU=Test Department, CN=road.testing.libreswan.org, E=user-road@testing.libreswan.org'
east #
 # east sends a delete by restarting
east #
 ipsec restart
Redirecting to: systemctl restart ipsec.service
east #
 # give OE conns time to load
east #
 sleep 5
east #
 # should be empty
east #
 ipsec status |grep STATE_
east #
 echo waiting on road to re-initiate
waiting on road to re-initiate
east #
 # both ends should show a tunnel
east #
 ipsec whack --trafficstatus
006 #2: "private#192.1.3.209/32"[1] ...192.1.3.209, type=ESP, add_time=1234567890, inBytes=168, outBytes=168, id='C=CA, ST=Ontario, L=Toronto, O=Libreswan, OU=Test Department, CN=road.testing.libreswan.org, E=user-road@testing.libreswan.org'
east #
east #
 ../bin/check-for-core.sh
east #
 if [ -f /sbin/ausearch ]; then ausearch -r -m avc -ts recent ; fi

