/testing/guestbin/swan-prep --x509
Preparing X.509 files
east #
 ip route del 192.0.1.0/24
east #
 ipsec start
Redirecting to: [initsystem]
east #
 /testing/pluto/bin/wait-until-pluto-started
east #
 ipsec auto --add east-any
002 "east-any": added IKEv2 connection
east #
 echo initdone
initdone
east #
 sleep 2
east #
 # both clients should be connected now
east #
 ipsec whack --trafficstatus | sed -e "s/#./#X/" -e "s/\[[0-9]\]/[X]/" -e "s/192.0.2.10./192.0.2.10X/" -e "s/192.1.3.[0-9]*/192.1.3.XX/" | sort
006 #X: "east-any"[X] 192.1.3.XX, type=ESP, add_time=1234567890, inBytes=336, outBytes=336, id='C=CA, ST=Ontario, L=Toronto, O=Libreswan, OU=Test Department, CN=road.testing.libreswan.org, E=user-road@testing.libreswan.org', lease=192.0.2.10X/32
006 #X: "east-any"[X] 192.1.3.XX, type=ESP, add_time=1234567890, inBytes=0, outBytes=0, id='C=CA, ST=Ontario, L=Toronto, O=Libreswan, OU=Test Department, CN=north.testing.libreswan.org, E=user-north@testing.libreswan.org', lease=192.0.2.10X/32
east #
 # send REDIRECT in informational to all tunnels from connection east-any (north and road)
east #
 ipsec whack --name east-any --redirect-to 192.1.2.45
005 redirections sent for 2 tunnels of connection "east-any"
east #
 # give them time to be redirected
east #
 sleep 2
east #
 # both should be gone now
east #
 ipsec whack --trafficstatus | sed -e "s/#./#X/" -e "s/\[[0-9]\]/[X]/" -e "s/192.0.2.10./192.0.2.10X/" | sort
east #
 ../bin/check-for-core.sh
east #
 if [ -f /sbin/ausearch ]; then ausearch -r -m avc -ts recent ; fi

