/testing/guestbin/swan-prep --hostkeys
Creating NSS database containing host keys
west #
 ipsec start
Redirecting to: [initsystem]
west #
 ../../guestbin/wait-until-pluto-started
west #
 ipsec auto --add west-east
"west-east": added IKEv1 connection
west #
 ipsec auto --add float-east
"float-east": added unoriented IKEv1 connection (neither left=192.1.2.66 nor right=192.1.2.23 match an interface)
west #
 ipsec auto --add west-float
"west-float": added IKEv1 connection
west #
 echo "initdone"
initdone
west #
 ipsec auto --up west-east
"west-east" #1: initiating IKEv1 Main Mode connection
"west-east" #1: sent Main Mode request
"west-east" #1: sent Main Mode I2
"west-east" #1: sent Main Mode I3
"west-east" #1: Peer ID is ID_FQDN: '@east'
"west-east" #1: authenticated peer using preloaded certificate '@east' and 2nnn-bit RSA with SHA1 signature
"west-east" #1: ISAKMP SA established {auth=RSA_SIG cipher=AES_CBC_256 integ=HMAC_SHA2_256 group=MODP2048}
"west-east" #2: initiating Quick Mode IKEv1+RSASIG+ENCRYPT+TUNNEL+PFS+UP+IKE_FRAG_ALLOW+ESN_NO+ESN_YES
"west-east" #2: sent Quick Mode request
"west-east" #2: IPsec SA established tunnel mode {ESP=>0xESPESP <0xESPESP xfrm=AES_CBC_128-HMAC_SHA1_96 DPD=passive}
west #
 ../../guestbin/ip.sh address add 192.1.2.66/24 dev eth1
west #
 arping -c 1 -U -I eth1 192.1.2.66
ARPING 192.1.2.66 from 192.1.2.66 eth1
Sent 1 probes (1 broadcast(s))
Received 0 response(s)
west #
 ipsec auto --ready
listening for IKE messages
adding interface eth1 192.1.2.66:UDP/500
adding interface eth1 192.1.2.66:UDP/4500 (NAT)
"float-east": oriented IKEv1 connection (local: left=192.1.2.66  remote: right=192.1.2.23)
"west-float": connection matches both left eth1 192.1.2.45 and right eth1 192.1.2.66
forgetting secrets
loading secrets from "/etc/ipsec.secrets"
west #
 ipsec auto --up float-east #retransmits
"float-east" #3: initiating IKEv1 Main Mode connection
"float-east" #3: sent Main Mode request
"float-east" #3: sent Main Mode I2
"float-east" #3: sent Main Mode I3
"float-east" #3: Peer ID is ID_FQDN: '@east'
"float-east" #3: authenticated peer using preloaded certificate '@east' and 2nnn-bit RSA with SHA1 signature
"float-east" #3: ISAKMP SA established {auth=RSA_SIG cipher=AES_CBC_256 integ=HMAC_SHA2_256 group=MODP2048}
"float-east" #4: initiating Quick Mode IKEv1+RSASIG+ENCRYPT+TUNNEL+PFS+UP+IKE_FRAG_ALLOW+ESN_NO+ESN_YES
"float-east" #4: sent Quick Mode request
"float-east" #4: IPsec SA established tunnel mode {ESP=>0xESPESP <0xESPESP xfrm=AES_CBC_128-HMAC_SHA1_96 DPD=passive}
west #
 ../../guestbin/ip.sh address del 192.1.2.66/24 dev eth1
west #
 # filter the error, it sometimes changes which network error happens (22 vs 101)
west #
 ipsec auto --ready | sed "s/failed in delete notify.*$/failed in delete notify [...]/"
listening for IKE messages
shutting down interface eth1 192.1.2.66:4500
shutting down interface eth1 192.1.2.66:500
"float-east": terminating SAs using this connection
"float-east" #4: deleting IPsec SA (QUICK_I2) and sending notification using ISAKMP SA #3
ERROR: "float-east" #3: send on eth1 from 192.1.2.66:500 to 192.1.2.23:500 using UDP failed in delete notify [...]
"float-east" #4: unroute-host output: RTNETLINK answers: Network is unreachable
"float-east" #4: ESP traffic information: in=0B out=0B
"float-east" #3: deleting ISAKMP SA (MAIN_I4) and sending notification
ERROR: "float-east" #3: send on eth1 from 192.1.2.66:500 to 192.1.2.23:500 using UDP failed in delete notify [...]
"west-float": oriented IKEv1 connection (local: left=192.1.2.45  remote: right=192.1.2.66)
forgetting secrets
loading secrets from "/etc/ipsec.secrets"
west #
 ipsec auto --up west-float #retransmits
"west-float" #5: initiating IKEv1 Main Mode connection
"west-float" #5: sent Main Mode request
"west-float" #5: STATE_MAIN_I1: retransmission; will wait 0.5 seconds for response
"west-float" #5: STATE_MAIN_I1: retransmission; will wait 1 seconds for response
"west-float" #5: STATE_MAIN_I1: retransmission; will wait 2 seconds for response
"west-float" #5: STATE_MAIN_I1: retransmission; will wait 4 seconds for response
"west-float" #5: STATE_MAIN_I1: retransmission; will wait 8 seconds for response
"west-float" #5: STATE_MAIN_I1: retransmission; will wait 16 seconds for response
"west-float" #5: STATE_MAIN_I1: retransmission; will wait 32 seconds for response
"west-float" #5: STATE_MAIN_I1: 60 second timeout exceeded after 7 retransmits.  No response (or no acceptable response) to our first IKEv1 message
"west-float" #5: connection is supposed to remain up; revival attempt 1 scheduled in 0 seconds
"west-float" #5: deleting ISAKMP SA (MAIN_I1) and NOT sending notification
west #
 # wait for pending cleanups
west #
 sleep 30
west #
 sleep 30
west #
 echo done
done
west #
 ../../guestbin/ipsec-kernel-state.sh
src 192.1.2.45 dst 192.1.2.23
	proto esp spi 0xSPISPI reqid REQID mode tunnel
	replay-window 0 flag af-unspec
	auth-trunc hmac(sha1) 0xHASHKEY 96
	enc cbc(aes) 0xENCKEY
	anti-replay esn context:
	 seq-hi 0x0, seq 0xXX, oseq-hi 0x0, oseq 0xXX
	 replay_window 128, bitmap-length 4
	 00000000 00000000 00000000 XXXXXXXX 
src 192.1.2.23 dst 192.1.2.45
	proto esp spi 0xSPISPI reqid REQID mode tunnel
	replay-window 0 flag af-unspec
	auth-trunc hmac(sha1) 0xHASHKEY 96
	enc cbc(aes) 0xENCKEY
	anti-replay esn context:
	 seq-hi 0x0, seq 0xXX, oseq-hi 0x0, oseq 0xXX
	 replay_window 128, bitmap-length 4
	 00000000 00000000 00000000 XXXXXXXX 
west #
 ../../guestbin/ipsec-kernel-policy.sh
src 192.1.2.23/32 dst 192.1.2.45/32
	dir fwd priority PRIORITY ptype main
	tmpl src 192.1.2.23 dst 192.1.2.45
		proto esp reqid REQID mode tunnel
src 192.1.2.23/32 dst 192.1.2.45/32
	dir in priority PRIORITY ptype main
	tmpl src 192.1.2.23 dst 192.1.2.45
		proto esp reqid REQID mode tunnel
src 192.1.2.45/32 dst 192.1.2.23/32
	dir out priority PRIORITY ptype main
	tmpl src 192.1.2.45 dst 192.1.2.23
		proto esp reqid REQID mode tunnel
west #
 
