/testing/guestbin/swan-prep --nokeys
Creating empty NSS database
east #
 ../../guestbin/ip.sh address show dev eth0 | grep 192.0.200.254 || ../../guestbin/ip.sh address add 192.0.200.254/24 dev eth0:1
east #
 ../../guestbin/ip.sh address show dev eth0 | grep 192.0.201.254 || ../../guestbin/ip.sh address add 192.0.201.254/24 dev eth0:1
east #
 ../../guestbin/ip.sh route show scope global | grep 192.0.100.0 || ip route add 192.0.100.0/24 via 192.1.2.45  dev eth1
east #
 ../../guestbin/ip.sh route show scope global | grep 192.0.101.0 || ip route add 192.0.101.0/24 via 192.1.2.45  dev eth1
east #
 ipsec start
Redirecting to: [initsystem]
east #
 ../../guestbin/wait-until-pluto-started
east #
 ../../guestbin/ipsec-add.sh westnet-eastnet-ikev2c westnet-eastnet-ikev2b westnet-eastnet-ikev2a
"westnet-eastnet-ikev2c": added IKEv2 connection
"westnet-eastnet-ikev2b": added IKEv2 connection
"westnet-eastnet-ikev2a": added IKEv2 connection
east #
 echo "initdone"
initdone
east #
 ipsec showstates
#12: "westnet-eastnet-ikev2a":500 ESTABLISHED_CHILD_SA (established Child SA); REKEY in XXs; REPLACE in XXs; newest; eroute owner; IKE SA #8; idle;
#12: "westnet-eastnet-ikev2a" esp.ESPSPIi@192.1.2.45 esp.ESPSPIi@192.1.2.23 tun.0@192.1.2.45 tun.0@192.1.2.23 Traffic: ESPin=0B ESPout=0B ESPmax=2^63B 
#13: "westnet-eastnet-ikev2b":500 ESTABLISHED_CHILD_SA (established Child SA); REKEY in XXs; REPLACE in XXs; newest; eroute owner; IKE SA #8; idle;
#13: "westnet-eastnet-ikev2b" esp.ESPSPIi@192.1.2.45 esp.ESPSPIi@192.1.2.23 tun.0@192.1.2.45 tun.0@192.1.2.23 Traffic: ESPin=0B ESPout=0B ESPmax=2^63B 
#8: "westnet-eastnet-ikev2c":500 ESTABLISHED_IKE_SA (established IKE SA); REKEY in XXs; REPLACE in XXs; newest; idle;
#14: "westnet-eastnet-ikev2c":500 ESTABLISHED_CHILD_SA (established Child SA); REKEY in XXs; REPLACE in XXs; newest; eroute owner; IKE SA #8; idle;
#14: "westnet-eastnet-ikev2c" esp.ESPSPIi@192.1.2.45 esp.ESPSPIi@192.1.2.23 tun.0@192.1.2.45 tun.0@192.1.2.23 Traffic: ESPin=0B ESPout=0B ESPmax=2^63B 
east #
 # there should be only one IKE_INIT exchange
east #
 grep "sent IKE_SA_INIT" /tmp/pluto.log
"westnet-eastnet-ikev2c" #1: sent IKE_SA_INIT response to 192.1.2.45:UDP/500 {cipher=AES_GCM_16_256 integ=n/a prf=HMAC_SHA2_512 group=DH19}
east #
 
