/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 IKEv1 connection
west #
 ipsec whack --impair suppress_retransmits
west #
 echo "initdone"
initdone
west #
 ipsec auto --up westnet-eastnet-6in6
"westnet-eastnet-6in6" #1: initiating IKEv1 Main Mode connection
"westnet-eastnet-6in6" #1: sent Main Mode request
"westnet-eastnet-6in6" #1: sent Main Mode I2
"westnet-eastnet-6in6" #1: sent Main Mode I3
"westnet-eastnet-6in6" #1: Peer ID is FQDN: '@east'
"westnet-eastnet-6in6" #1: ISAKMP SA established {auth=PRESHARED_KEY cipher=AES_CBC_256 integ=HMAC_SHA2_256 group=MODP2048}
"westnet-eastnet-6in6" #2: initiating Quick Mode IKEv1+PSK+ENCRYPT+TUNNEL+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:0:1::/64===2001:db8:0:2::/64}
"westnet-eastnet-6in6" #2: sent Quick Mode request
"westnet-eastnet-6in6" #2: IPsec SA established tunnel mode {ESP=>0xESPESP <0xESPESP xfrm=AES_CBC_128-HMAC_SHA1_96 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 #
