/testing/guestbin/swan-prep --hostkeys
Creating NSS database containing host keys
east #
 ipsec start
Redirecting to: [initsystem]
east #
 ipsec add west-east
"west-east": added IKEv1 connection
east #
 ../../guestbin/wait-until-pluto-started
east #
 echo "initdone"
initdone
east #
 ../../guestbin/wait-for-pluto.sh '"west-east" #1: ISAKMP SA established'
"west-east" #1: ISAKMP SA established {auth=RSA_SIG cipher=AES_CBC_256 integ=HMAC_SHA2_256 group=MODP2048}
east #
 ../../guestbin/wait-for-pluto.sh '"west-east" #2: IPsec SA established'
"west-east" #2: IPsec SA established tunnel mode {ESP=>0xESPESP <0xESPESP xfrm=AES_CBC_128-HMAC_SHA1_96 DPD=passive}
east #
 ipsec add west-east-b
"west-east-b": added IKEv1 connection
east #
 ipsec add west-east-c
"west-east-c": added IKEv1 connection
east #
 ../../guestbin/wait-for-pluto.sh '"west-east-b" #3: IPsec SA established'
"west-east-b" #3: IPsec SA established tunnel mode {ESP=>0xESPESP <0xESPESP xfrm=AES_CBC_128-HMAC_SHA1_96 DPD=passive}
east #
 ../../guestbin/wait-for-pluto.sh '"west-east-c" #4: IPsec SA established'
"west-east-c" #4: IPsec SA established tunnel mode {ESP=>0xESPESP <0xESPESP xfrm=AES_CBC_128-HMAC_SHA1_96 DPD=passive}
east #
 ipsec down west-east
"west-east": ISAKMP SA is shared - only terminating IPsec SA
"west-east" #2: deleting IPsec SA (QUICK_R2) and sending notification using ISAKMP SA #1
"west-east" #2: ESP traffic information: in=0B out=0B
east #
 ../../guestbin/wait-for-pluto.sh --wait '"west-east" #5: IPsec SA established'
"west-east" #5: IPsec SA established tunnel mode {ESP=>0xESPESP <0xESPESP xfrm=AES_CBC_128-HMAC_SHA1_96 DPD=passive}
east #
 # both east and west should still have one IKE SA #1
east #
 ipsec showstates
#1: "west-east":500 STATE_MAIN_R3 (ISAKMP SA established); REPLACE in XXs; newest; lastdpd=-1s(seq in:0 out:0); idle;
#5: "west-east":500 STATE_QUICK_R2 (IPsec SA established); REPLACE in XXs; newest; eroute owner; ISAKMP SA #1; idle;
#5: "west-east" 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 
#3: "west-east-b":500 STATE_QUICK_R2 (IPsec SA established); REPLACE in XXs; newest; eroute owner; ISAKMP SA #1; idle;
#3: "west-east-b" 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 
#4: "west-east-c":500 STATE_QUICK_R2 (IPsec SA established); REPLACE in XXs; newest; eroute owner; ISAKMP SA #1; idle;
#4: "west-east-c" 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 #
 
