/testing/guestbin/swan-prep --46
west #
 # confirm that the network is alive
west #
 ../../guestbin/ping-once.sh --up -I 2001:db8:0:1::254 2001:db8:0:2::254
up
west #
 # ensure that clear text does not get through
west #
 ip6tables -A INPUT -i eth1 -s 2001:db8:0:2::254 -p ipv6-icmp --icmpv6-type echo-reply  -j DROP
west #
 ip6tables -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 2001:db8:0:1::254 2001:db8:0:2::254
down
west #
 ipsec start
Redirecting to: [initsystem]
west #
 ../../guestbin/wait-until-pluto-started
west #
 ipsec auto --add westnet-eastnet-6in6
"westnet-eastnet-6in6": added IKEv2 connection
west #
 ipsec whack --impair suppress_retransmits
west #
 echo "initdone"
initdone
west #
 ipsec auto --up westnet-eastnet-6in6
"westnet-eastnet-6in6" #1: initiating IKEv2 connection to 2001:db8:1:2::23 using UDP
"westnet-eastnet-6in6" #1: sent IKE_SA_INIT request to [2001:db8:1:2::23]:UDP/500
"westnet-eastnet-6in6" #1: processed IKE_SA_INIT response from [2001:db8:1:2::23]:UDP/500 {cipher=AES_GCM_16_256 integ=n/a prf=HMAC_SHA2_512 group=DH19}, initiating IKE_AUTH
"westnet-eastnet-6in6" #1: sent IKE_AUTH request to [2001:db8:1:2::23]:UDP/500 with shared-key-mac and FQDN '@west'; Child SA #2 {ESP <0xESPESP}
"westnet-eastnet-6in6" #1: initiator established IKE SA; authenticated peer using authby=secret and FQDN '@east'
"westnet-eastnet-6in6" #2: initiator established Child SA using #1; IPsec tunnel [2001:db8:0:1::/64===2001:db8:0:2::/64] {ESP/ESN=>0xESPESP <0xESPESP xfrm=AES_GCM_16_256-NONE DPD=passive}
west #
 ../../guestbin/ping-once.sh --up -I 2001:db8:0:1::254 2001:db8:0:2::254
up
west #
 echo done
done
west #
 ipsec whack --trafficstatus
#2: "westnet-eastnet-6in6", type=ESP, add_time=1234567890, inBytes=104, outBytes=104, maxBytes=2^63B, id='@east'
west #
