/testing/guestbin/swan-prep  --x509
Preparing X.509 files
east #
 ../../guestbin/ip.sh route del default
east #
 ip tuntap add mode tun tun0
east #
 ifconfig tun0 10.13.13.13/24
east #
 ../../guestbin/ip.sh route add default via 10.13.13.1
east #
 ../../guestbin/ip.sh route add 192.1.3.0/24 via 192.1.2.254
east #
 ipsec certutil -D -n road
east #
 ipsec certutil -D -n east
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: [initsystem]
east #
 ../../guestbin/wait-until-pluto-started
east #
 ipsec whack --impair suppress_retransmits
east #
 # give OE policies time to load
east #
 ../../guestbin/wait-for.sh --match 'loaded 10,' -- ipsec auto --status
Total IPsec connections: loaded 10, active 0
east #
 echo "initdone"
initdone
east #
 # confirm tunnel is up
east #
 ipsec whack --trafficstatus
#2: "private#192.1.3.209/32"[1] ...192.1.3.209, type=ESP, add_time=1234567890, inBytes=84, outBytes=84, maxBytes=2^63B, 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; give OE conns time to load
east #
 ipsec restart
Redirecting to: [initsystem]
east #
 ../../guestbin/wait-until-pluto-started
east #
 # should be empty
east #
 ipsec showstates
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
#2: "private#192.1.3.209/32"[1] ...192.1.3.209, type=ESP, add_time=1234567890, inBytes=168, outBytes=168, maxBytes=2^63B, id='C=CA, ST=Ontario, L=Toronto, O=Libreswan, OU=Test Department, CN=road.testing.libreswan.org, E=user-road@testing.libreswan.org'
east #
 
