/testing/guestbin/swan-prep
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 auto --add road-east-ikev2
"road-east-ikev2": added IKEv2 connection
east #
 # give OE policies time to load
east #
 ../../guestbin/wait-for.sh --match 'loaded 11' -- ipsec auto --status
Total IPsec connections: loaded 11, active 0
east #
 echo "initdone"
initdone
east #
 hostname | grep nic > /dev/null || ipsec whack --trafficstatus
#2: "road-east-ikev2", type=ESP, add_time=1234567890, inBytes=84, outBytes=84, maxBytes=2^63B, id='@road'
east #
 # this should show IKE and IPsec state for "road-east-ikev2" and not an OE group
east #
 ipsec status | grep road-east | sed 's/"road-east-ikev2".*/"road-east-ikev2" --- cut ---/' | grep "#"
#1: "road-east-ikev2" --- cut ---
#2: "road-east-ikev2" --- cut ---
#2: "road-east-ikev2" --- cut ---
east #
 
