/testing/guestbin/swan-prep --46 --hostkeys
Creating NSS database containing host keys
west #
 # confirm that the network is alive
west #
 ../../guestbin/ping-once.sh --up -I 2001:db8:1:2::45 2001:db8:1:2::23
up
west #
 ipsec start
Redirecting to: [initsystem]
west #
 ../../guestbin/wait-until-pluto-started
west #
 ipsec auto --add v6-transport
"v6-transport": added IKEv1 connection
west #
 ipsec whack --impair suppress_retransmits
west #
 echo "initdone"
initdone
west #
 ipsec auto --up v6-transport
"v6-transport" #1: initiating IKEv1 Main Mode connection
"v6-transport" #1: sent Main Mode request
"v6-transport" #1: sent Main Mode I2
"v6-transport" #1: sent Main Mode I3
"v6-transport" #1: Peer ID is FQDN: '@east'
"v6-transport" #1: authenticated peer using preloaded certificate '@east' and 2nnn-bit RSA with SHA1 signature
"v6-transport" #1: ISAKMP SA established {auth=RSA_SIG cipher=AES_CBC_256 integ=HMAC_SHA2_256 group=MODP2048}
"v6-transport" #2: initiating Quick Mode IKEv1+RSASIG+ENCRYPT+TRANSPORT+PFS+UP+IKE_FRAG_ALLOW+ESN_NO+ESN_YES {using isakmp#1 msgid:MSGID proposal=AES_CBC-HMAC_SHA1_96, AES_CBC-HMAC_SHA2_512_256, AES_CBC-HMAC_SHA2_256_128, AES_GCM_16_128-NONE, AES_GCM_16_256-NONE, 3DES_CBC-HMAC_SHA1_96, 3DES_CBC-HMAC_SHA2_512_256, 3DES_CBC-HMAC_SHA2_256_128 pfsgroup=MODP2048 2001:db8:1:2::45/128/UDP/1701===2001:db8:1:2::23/128/UDP/1701}
"v6-transport" #2: sent Quick Mode request
"v6-transport" #2: IPsec SA established transport mode {ESP=>0xESPESP <0xESPESP xfrm=AES_CBC_128-HMAC_SHA1_96 DPD=passive}
west #
 echo "transmitted test" | nc -p 1701 -s 2001:db8:1:2::45 2001:db8:1:2::23 1701
transmitted test
west #
 echo done
done
west #
 ipsec _kernel state
src 2001:db8:1:2::45 dst 2001:db8:1:2::23
	proto esp spi 0xSPISPI reqid REQID mode transport
	replay-window 0 
	auth-trunc hmac(sha1) 0xHASHKEY 96
	enc cbc(aes) 0xENCKEY
	sel src 2001:db8:1:2::45/128 dst 2001:db8:1:2::23/128 proto udp sport 1701 dport 1701 
src 2001:db8:1:2::23 dst 2001:db8:1:2::45
	proto esp spi 0xSPISPI reqid REQID mode transport
	replay-window 0 
	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 
	sel src 2001:db8:1:2::23/128 dst 2001:db8:1:2::45/128 proto udp sport 1701 dport 1701 
west #
 ipsec _kernel policy
src ::/0 dst ::/0 proto ipv6-icmp type 135
	dir fwd priority PRIORITY ptype main
src ::/0 dst ::/0 proto ipv6-icmp type 135
	dir in priority PRIORITY ptype main
src ::/0 dst ::/0 proto ipv6-icmp type 135
	dir out priority PRIORITY ptype main
src ::/0 dst ::/0 proto ipv6-icmp type 136
	dir fwd priority PRIORITY ptype main
src ::/0 dst ::/0 proto ipv6-icmp type 136
	dir in priority PRIORITY ptype main
src ::/0 dst ::/0 proto ipv6-icmp type 136
	dir out priority PRIORITY ptype main
src 2001:db8:1:2::23/128 dst 2001:db8:1:2::45/128 proto udp sport 1701 dport 1701
	dir in priority PRIORITY ptype main
	tmpl src :: dst ::
		proto esp reqid REQID mode transport
src 2001:db8:1:2::45/128 dst 2001:db8:1:2::23/128 proto udp sport 1701 dport 1701
	dir out priority PRIORITY ptype main
	tmpl src :: dst ::
		proto esp reqid REQID mode transport
west #
