/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 6in6
002 "6in6": added IKEv2 connection
west #
 ipsec whack --impair suppress-retransmits
west #
 ipsec auto --up 6in6
1v2 "6in6" #1: initiating IKEv2 connection
1v2 "6in6" #1: sent IKE_SA_INIT request to [2001:db8:1:2::23]:4500
1v2 "6in6" #1: sent IKE_AUTH request {cipher=AES_GCM_16_256 integ=n/a prf=HMAC_SHA2_512 group=MODP2048}
003 "6in6" #1: initiator established IKE SA; authenticated peer using authby=secret and ID_FQDN '@west'
004 "6in6" #2: initiator established Child SA using #1; IPsec tunnel [2001:db8:0:1::-2001:db8:0:1:ffff:ffff:ffff:ffff:0-65535 0] -> [2001:db8:0:2::-2001:db8:0:2:ffff:ffff:ffff:ffff:0-65535 0] {ESPinTCP/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 #
 ipsec whack --trafficstatus
006 #2: "6in6", type=ESP, add_time=1234567890, inBytes=104, outBytes=104, maxBytes=2^63B, id='@west'
west #
 
