/testing/guestbin/swan-prep
west #
 ipsec start
Redirecting to: [initsystem]
west #
 ../../guestbin/wait-until-pluto-started
west #
 ipsec auto --add westnet-eastnet-ikev2a
002 "westnet-eastnet-ikev2a": added IKEv2 connection
west #
 ipsec auto --add westnet-eastnet-ikev2b
002 "westnet-eastnet-ikev2b": added IKEv2 connection
west #
 echo "initdone"
initdone
west #
 # initial exchange
west #
 ipsec auto --up westnet-eastnet-ikev2a
1v2 "westnet-eastnet-ikev2a" #1: initiating IKEv2 connection
1v2 "westnet-eastnet-ikev2a" #1: sent IKE_SA_INIT request
1v2 "westnet-eastnet-ikev2a" #1: sent IKE_AUTH request {cipher=AES_GCM_16_256 integ=n/a prf=HMAC_SHA2_512 group=MODP2048}
003 "westnet-eastnet-ikev2a" #1: established IKE SA; authenticated using authby=secret and peer ID_FQDN '@east'
004 "westnet-eastnet-ikev2a" #2: established Child SA; IPsec tunnel [192.0.1.0-192.0.1.255:0-65535 0] -> [192.0.2.0-192.0.2.255:0-65535 0] {ESP=>0xESPESP <0xESPESP xfrm=AES_GCM_16_256-NONE NATOA=none NATD=none DPD=passive}
west #
 # creat-child-sa request. Expected to fail due to firewall
west #
 # we expect east to re-answer our retransmits
west #
 # drop silently to avoid race conditions of kernel log
west #
 iptables -I INPUT -p udp --dport 500 -j DROP
west #
 ipsec auto --up westnet-eastnet-ikev2b #retransmits
002 "westnet-eastnet-ikev2b" #3: initiating Child SA using IKE SA #1
1v2 "westnet-eastnet-ikev2b" #3: sent CREATE_CHILD_SA request for new IPsec SA
010 "westnet-eastnet-ikev2a" #1: STATE_V2_ESTABLISHED_IKE_SA: retransmission; will wait 0.5 seconds for response
010 "westnet-eastnet-ikev2a" #1: STATE_V2_ESTABLISHED_IKE_SA: retransmission; will wait 1 seconds for response
010 "westnet-eastnet-ikev2a" #1: STATE_V2_ESTABLISHED_IKE_SA: retransmission; will wait 2 seconds for response
010 "westnet-eastnet-ikev2a" #1: STATE_V2_ESTABLISHED_IKE_SA: retransmission; will wait 4 seconds for response
010 "westnet-eastnet-ikev2a" #1: STATE_V2_ESTABLISHED_IKE_SA: retransmission; will wait 8 seconds for response
031 "westnet-eastnet-ikev2a" #1: STATE_V2_ESTABLISHED_IKE_SA: 10 second timeout exceeded after 5 retransmits.  No response (or no acceptable response) to our IKEv2 message
002 "westnet-eastnet-ikev2a" #1: liveness action - putting connection into hold
002 "westnet-eastnet-ikev2a" #1: deleting state (STATE_V2_ESTABLISHED_IKE_SA) and sending notification
002 "westnet-eastnet-ikev2a" #1: deleting IKE SA but connection is supposed to remain up; schedule EVENT_REVIVE_CONNS
west #
 echo done
done
west #
 # should show retransmits on west and replies on east
west #
 grep sending /tmp/pluto.log |grep through
| sending 828 bytes for STATE_V2_PARENT_I0 through eth1 from 192.1.2.45:500 to 192.1.2.23:500 using UDP (for #1)
| sending 365 bytes for STATE_V2_PARENT_I1 through eth1 from 192.1.2.45:500 to 192.1.2.23:500 using UDP (for #1)
| sending 305 bytes for STATE_V2_NEW_CHILD_I0 through eth1 from 192.1.2.45:500 to 192.1.2.23:500 using UDP (for #1)
| sending 305 bytes for EVENT_RETRANSMIT through eth1 from 192.1.2.45:500 to 192.1.2.23:500 using UDP (for #1)
| sending 305 bytes for EVENT_RETRANSMIT through eth1 from 192.1.2.45:500 to 192.1.2.23:500 using UDP (for #1)
| sending 305 bytes for EVENT_RETRANSMIT through eth1 from 192.1.2.45:500 to 192.1.2.23:500 using UDP (for #1)
| sending 305 bytes for EVENT_RETRANSMIT through eth1 from 192.1.2.45:500 to 192.1.2.23:500 using UDP (for #1)
| sending 305 bytes for EVENT_RETRANSMIT through eth1 from 192.1.2.45:500 to 192.1.2.23:500 using UDP (for #1)
| sending 69 bytes for delete notification through eth1 from 192.1.2.45:500 to 192.1.2.23:500 using UDP (for #1)
| sending 65 bytes for delete notification through eth1 from 192.1.2.45:500 to 192.1.2.23:500 using UDP (for #1)
| sending 828 bytes for STATE_V2_PARENT_I0 through eth1 from 192.1.2.45:500 to 192.1.2.23:500 using UDP (for #4)
west #
 
