/testing/guestbin/swan-prep
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
000 Total IPsec connections: loaded 10, 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
006 #4: "private-or-clear#192.1.3.0/24"[2] ...192.1.3.209, type=ESP, add_time=1234567890, inBytes=84, outBytes=84, id='ID_NULL'
006 #6: "private-or-clear#192.1.3.0/24"[3] ...192.1.3.210, type=ESP, add_time=1234567890, inBytes=168, outBytes=168, id='ID_NULL'
east #
 # check for a counting bug where total SA's is wrong on east
east #
 ipsec status | grep 'authenticated'
000 IKE SAs: total(2), half-open(0), open(0), authenticated(0), anonymous(2)
000 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 #
 
