/testing/guestbin/swan-prep  --x509
Preparing X.509 files
east #
 certutil -D -n road -d sql:/etc/ipsec.d
east #
 cp east-ikev2-oe.conf /etc/ipsec.d/ikev2-oe.conf
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 #
 /testing/pluto/bin/wait-until-pluto-started
east #
 ipsec whack --impair suppress-retransmits
east #
 # give OE policies time to load
east #
 sleep 5
east #
 echo "initdone"
initdone
east #
 # checking the connections status - should be up despite road's "crash"
east #
 ipsec whack --trafficstatus
006 #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=336, outBytes=336, id='ID_NULL', lease=10.0.10.1/32
east #
 ipsec whack --shuntstatus
000 Bare Shunt list:
000  
east #
 # Two tunnels should have established with non-zero byte counters. East will have both of the road tunnels established
east #
 ipsec whack --trafficstatus
006 #4: "clear-or-private#192.1.2.254/32"[2] ...192.1.2.254===10.0.10.2/32, type=ESP, add_time=1234567890, inBytes=336, outBytes=336, id='ID_NULL', lease=10.0.10.2/32
east #
 grep "negotiated connection" /tmp/pluto.log
"clear-or-private#192.1.2.254/32"[1] ...192.1.2.254===10.0.10.1/32 #2: negotiated connection [192.1.2.23-192.1.2.23:0-65535 0] -> [10.0.10.1-10.0.10.1:0-65535 0]
"clear-or-private#192.1.2.254/32"[2] ...192.1.2.254===10.0.10.2/32 #4: negotiated connection [192.1.2.23-192.1.2.23:0-65535 0] -> [10.0.10.2-10.0.10.2:0-65535 0]
east #
 grep "auth method: IKEv2_AUTH_" /tmp/pluto.log
|    auth method: IKEv2_AUTH_NULL (0xd)
|    auth method: IKEv2_AUTH_DIGSIG (0xe)
|    auth method: IKEv2_AUTH_NULL (0xd)
|    auth method: IKEv2_AUTH_DIGSIG (0xe)
east #
 ../bin/check-for-core.sh
east #
 if [ -f /sbin/ausearch ]; then ausearch -r -m avc -ts recent ; fi

