/testing/guestbin/swan-prep  --x509
Preparing X.509 files
east #
 ipsec certutil -D -n road
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 #
 ../../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 3' -- ipsec auto --status
Total IPsec connections: loaded 3, active 0
east #
 echo "initdone"
initdone
east #
 # confirm tunnel is up
east #
 ipsec whack --trafficstatus
#2: "clear-or-private#192.1.2.254/32"[1] ...192.1.2.254===10.0.10.1/32, type=ESP, add_time=1234567890, inBytes=84, outBytes=84, maxBytes=2^63B, id='ID_NULL', lease=10.0.10.1/32
east #
 # killing service ipsec
east #
 ipsec whack --impair send_no_delete
east #
 ipsec stop
Redirecting to: [initsystem]
east #
 # service killed
east #
 # restart ipsec service
east #
 ipsec start
Redirecting to: [initsystem]
east #
 # give OE conns time to load
east #
 ../../guestbin/wait-until-pluto-started
east #
 
