/testing/guestbin/swan-prep --nokeys
Creating empty NSS database
west #
 # confirm that the network is alive
west #
 ../../guestbin/wait-until-alive -I 192.0.1.254 192.0.2.254
destination -I 192.0.1.254 192.0.2.254 is alive
west #
 # ensure that clear text does not get through
west #
 iptables -A INPUT -i eth1 -s 192.0.2.0/24 -j DROP
west #
 iptables -I INPUT -m policy --dir in --pol ipsec -j ACCEPT
west #
 # confirm clear text does not get through
west #
 ../../guestbin/ping-once.sh --down -I 192.0.1.254 192.0.2.254
down
west #
 ipsec start
Redirecting to: [initsystem]
west #
 ../../guestbin/wait-until-pluto-started
west #
 ipsec add west
"west": added IKEv2 connection
west #
 echo "initdone"
initdone
west #
 ipsec whack --impair revival
west #
 ipsec up west
"west" #1: initiating IKEv2 connection to 192.1.2.23 using UDP
"west" #1: sent IKE_SA_INIT request to 192.1.2.23:UDP/500
"west" #1: IKE_SA_INIT_I: 10 second timeout exceeded after 5 retransmits.  No response (or no acceptable response) to our first IKEv2 message
"west" #1: connection is supposed to remain up; revival attempt 1 scheduled in 0 seconds
"west" #1: IMPAIR: revival: skip scheduling revival event
"west" #1: deleting IKE SA (sent IKE_SA_INIT request)
west #
 ipsec whack --impair trigger_revival:1
"west": IMPAIR: dispatch REVIVAL; attempt 1 next in 5s; timeout IKE SA
"west": reviving connection which timeout IKE SA but must remain up per local policy (serial $1)
"west" #2: initiating IKEv2 connection to 192.1.2.23 using UDP
"west" #2: sent IKE_SA_INIT request to 192.1.2.23:UDP/500
"west" #2: IKE_SA_INIT_I: retransmission; will wait 0.5 seconds for response
"west" #2: IKE_SA_INIT_I: retransmission; will wait 1 seconds for response
"west" #2: IKE_SA_INIT_I: retransmission; will wait 2 seconds for response
"west" #2: IKE_SA_INIT_I: retransmission; will wait 4 seconds for response
"west" #2: IKE_SA_INIT_I: retransmission; will wait 8 seconds for response
"west" #2: IKE_SA_INIT_I: 10 second timeout exceeded after 5 retransmits.  No response (or no acceptable response) to our first IKEv2 message
"west" #2: connection is supposed to remain up; revival attempt 2 scheduled in 5 seconds
"west" #2: IMPAIR: revival: skip scheduling revival event
"west" #2: deleting IKE SA (sent IKE_SA_INIT request)
west #
 ../../guestbin/ping-once.sh --up -I 192.0.1.254 192.0.2.254
down UNEXPECTED
# ping -n -c 1  -i 6 -w 5   -I 192.0.1.254 192.0.2.254
PING 192.0.2.254 (192.0.2.254) from 192.0.1.254 : 56(84) bytes of data. --- 192.0.2.254 ping statistics --- 1 packets transmitted, 0 received, 100% packet loss, time XXXX
west #
 ipsec whack --trafficstatus
west #
 # should show tcp being used
west #
 ../../guestbin/ipsec-kernel-state.sh
west #
 ../../guestbin/ipsec-kernel-policy.sh
west #
 
