/testing/guestbin/swan-prep --46
west #
 ../../guestbin/wait-until-alive 2001:db8:0:2::254
destination 2001:db8:0:2::254 is alive
west #
 # add two extra IPv6 addresses
west #
 ../../guestbin/ip.sh address show dev eth1 | grep 2001:db8:1:2::46  || ../../guestbin/ip.sh address add 2001:db8:1:2::46/64 dev eth1
west #
 ../../guestbin/ip.sh address show dev eth1 | grep 2001:db8:1:2::47  || ../../guestbin/ip.sh address add 2001:db8:1:2::47/64 dev eth1
west #
 ip6tables -A INPUT -i eth1 -s 2001:db8:0:2::254 -p ipv6-icmp -j DROP
west #
 ip6tables -I INPUT -m policy --dir in --pol ipsec -j ACCEPT
west #
 ../../guestbin/ping-once.sh --down 2001:db8:0:2::254
down
west #
 ipsec start
Redirecting to: [initsystem]
west #
 ../../guestbin/wait-until-pluto-started
west #
 echo "initdone"
initdone
west #
 ipsec auto --up west1
no connection or alias named "west1"'
west #
 ipsec auto --up west2
no connection or alias named "west2"'
west #
 ipsec auto --up west3
no connection or alias named "west3"'
west #
 # ping will fail until we fix  up-client-v6 and add source address.
west #
 ping6 -n -q -w 5 -c 2 -I 2001:db8:0:3:1::0 2001:db8:0:2::254
ping6: bind icmp socket: Cannot assign requested address
west #
 echo done
done
west #
 if [ -f /var/run/pluto/pluto.pid ]; then ../../guestbin/ipsec-kernel-state.sh ; fi
west #
 if [ -f /var/run/pluto/pluto.pid ]; then ../../guestbin/ipsec-kernel-policy.sh ; fi
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
west #
 if [ -f /var/run/charon.pid -o -f /var/run/strongswan/charon.pid ]; then strongswan status ; fi
west #
 
