/testing/guestbin/swan-prep --nokeys
Creating empty NSS database
east #
 cp policies/* /etc/ipsec.d/policies/
east #
 echo "192.1.3.0/24"  >> /etc/ipsec.d/policies/private-or-clear
east #
 ipsec start
Redirecting to: [initsystem]
east #
 ../../guestbin/wait-until-pluto-started
east #
 # give OE policies time to load
east #
 ../../guestbin/wait-for.sh --match 'loaded 10,' -- ipsec auto --status
Total IPsec connections: loaded 10, routed 5, active 0
east #
 echo "initdone"
initdone
east #
 # road should have one tunnel, east should have two (from both IPs road used)
east #
 ipsec whack --trafficstatus
#4: "private-or-clear#192.1.3.0/24"[2] ...192.1.3.209, type=ESP, add_time=1234567890, inBytes=84, outBytes=84, maxBytes=2^63B, id='ID_NULL'
#6: "private-or-clear#192.1.3.0/24"[3] ...192.1.3.210, type=ESP, add_time=1234567890, inBytes=168, outBytes=168, maxBytes=2^63B, id='ID_NULL'
east #
 # check for a counting bug where total SA's is wrong on east
east #
 ipsec status | grep 'authenticated'
IKE SAs: total(2), half-open(0), open(0), authenticated(0), anonymous(2)
IPsec SAs: total(2), authenticated(0), anonymous(2)
east #
 # verify no packets were dropped due to missing SPD policies
east #
 grep -v -P "\t0$" /proc/net/xfrm_stat
east #
