/testing/guestbin/swan-prep
west #
 ipsec start
Redirecting to: [initsystem]
west #
 ../../guestbin/wait-until-pluto-started
west #
 ipsec add west-to-east
"west-to-east": added IKEv1 connection
west #
 ipsec whack --impair suppress_retransmits
west #
 ipsec whack --impair block_inbound:yes
IMPAIR: block all inbound messages: yes
west #
 echo "initdone"
initdone
west #
 ipsec up --asynchronous west-to-east
"west-to-east" #1: initiating IKEv1 Main Mode connection
"west-to-east" #1: sent Main Mode request
west #
 # step through the main mode exchange
west #
 ../../guestbin/wait-for-pluto.sh '#1: sent Main Mode request'
"west-to-east" #1: sent Main Mode request
west #
 ../../guestbin/drip-inbound.sh 1 '#1: sent Main Mode I2'
packet from 192.1.2.23:500: IMPAIR: blocking inbound message 1
IMPAIR: start processing inbound drip packet 1
IMPAIR: stop processing inbound drip packet 1
"west-to-east" #1: sent Main Mode I2
west #
 ../../guestbin/drip-inbound.sh 2 '#1: sent Main Mode I3'
packet from 192.1.2.23:500: IMPAIR: blocking inbound message 2
IMPAIR: start processing inbound drip packet 2
IMPAIR: stop processing inbound drip packet 2
"west-to-east" #1: sent Main Mode I3
west #
 ../../guestbin/drip-inbound.sh 3 '#1: ISAKMP SA established'
packet from 192.1.2.23:500: IMPAIR: blocking inbound message 3
IMPAIR: start processing inbound drip packet 3
IMPAIR: stop processing inbound drip packet 3
"west-to-east" #1: ISAKMP SA established {auth=PRESHARED_KEY cipher=AES_CBC_256 integ=HMAC_SHA1 group=MODP2048}
west #
 # wait for quick mode response
west #
 ../../guestbin/wait-for-pluto.sh '#2: sent Quick Mode request'
"west-to-east" #2: sent Quick Mode request
west #
 ../../guestbin/wait-for-inbound.sh 4
packet from 192.1.2.23:500: IMPAIR: blocking inbound message 4
west #
 # now restart
west #
 ipsec whack --shutdown
Pluto is shutting down --leave-state
west #
 ipsec start
Redirecting to: [initsystem]
west #
 ../../guestbin/wait-until-pluto-started
west #
 ipsec add west-to-east
"west-to-east": added IKEv1 connection
west #
 ipsec up west-to-east
"west-to-east" #1: initiating IKEv1 Main Mode connection
"west-to-east" #1: sent Main Mode request
"west-to-east" #1: sent Main Mode I2
"west-to-east" #1: sent Main Mode I3
"west-to-east" #1: Peer ID is ID_FQDN: '@east'
"west-to-east" #1: ISAKMP SA established {auth=PRESHARED_KEY cipher=AES_CBC_256 integ=HMAC_SHA1 group=MODP2048}
"west-to-east" #2: initiating Quick Mode IKEv1+PSK+ENCRYPT+TRANSPORT+PFS+UP+IKE_FRAG_ALLOW+ESN_NO+ESN_YES
"west-to-east" #2: sent Quick Mode request
"west-to-east" #2: IPsec SA established transport mode {ESP=>0xESPESP <0xESPESP xfrm=AES_CBC_128-HMAC_SHA1_96 DPD=passive}
west #
 
