/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 #
 ../../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
000 Total IPsec connections: loaded 3, active 0
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=84, outBytes=84, maxBytes=2^63B, 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.1/32, type=ESP, add_time=1234567890, inBytes=84, outBytes=84, maxBytes=2^63B, id='ID_NULL', lease=10.0.10.1/32
east #
 grep "^[^|].* established Child SA" /tmp/pluto.log
"clear-or-private#192.1.2.254/32"[1] ...192.1.2.254===10.0.10.1/32 #2: responder established Child SA using #1; IPsec tunnel [192.1.2.23-192.1.2.23:0-65535 0] -> [10.0.10.1-10.0.10.1:0-65535 0] {ESPinUDP/ESN=>0xESPESP <0xESPESP xfrm=AES_GCM_16_256-NONE NATD=192.1.2.254:EPHEM DPD=passive}
"clear-or-private#192.1.2.254/32"[2] ...192.1.2.254===10.0.10.1/32 #4: responder established Child SA using #3; IPsec tunnel [192.1.2.23-192.1.2.23:0-65535 0] -> [10.0.10.1-10.0.10.1:0-65535 0] {ESPinUDP/ESN=>0xESPESP <0xESPESP xfrm=AES_GCM_16_256-NONE NATD=192.1.2.254:EPHEM DPD=passive}
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 #

