/testing/guestbin/swan-prep --46 --hostkeys
Creating NSS database containing host keys
west #
 # confirm that the network is alive
west #
 ping6 -n -q -c 4 -I 2001:db8:1:2::45 2001:db8:1:2::23
PING 2001:db8:1:2::23 (2001:db8:1:2::23) from 2001:db8:1:2::45 : 56 data bytes
--- 2001:db8:1:2::23 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time XXXX
rtt min/avg/max/mdev = 0.XXX/0.XXX/0.XXX/0.XXX ms
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 ID_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
"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 #
 ../../guestbin/ipsec-kernel-state.sh
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
	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::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 #
 ../../guestbin/ipsec-kernel-policy.sh
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 #
 
