/testing/guestbin/swan-prep --46
west #
 ../../guestbin/wait-until-alive 2001:db8:0:2::254
destination 2001:db8:0:2::254 is alive
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 #
 ipsec auto --add west
002 "west": added IKEv2 connection
west #
 echo "initdone"
initdone
west #
 ipsec auto --up west
1v2 "west"[1] 2001:db8:1:2::23 #1: initiating IKEv2 connection
1v2 "west"[1] 2001:db8:1:2::23 #1: sent IKE_SA_INIT request
1v2 "west"[1] 2001:db8:1:2::23 #1: sent IKE_AUTH request {cipher=AES_GCM_16_256 integ=n/a prf=HMAC_SHA2_512 group=MODP2048}
003 "west"[1] 2001:db8:1:2::23 #1: established IKE SA; authenticated using authby=secret and peer ID_FQDN '@east'
002 "west"[1] 2001:db8:1:2::23 #2: received INTERNAL_IP6_ADDRESS 2001:db8:0:3:1::
004 "west"[1] 2001:db8:1:2::23 #2: established Child SA; IPsec tunnel [2001:db8:0:3:1::-2001:db8:0:3:1:::0-65535 0] -> [2001:db8:0:2::-2001:db8:0:2:ffff:ffff:ffff:ffff:0-65535 0] {ESP=>0xESPESP <0xESPESP xfrm=AES_GCM_16_256-NONE NATOA=none NATD=none DPD=passive}
west #
 ping6 -n -q -w 5 -c 2 -I 2001:db8:0:3:1::0 2001:db8:0:2::254
PING 2001:db8:0:2::254(2001:db8:0:2::254) from 2001:db8:0:3:1:: : 56 data bytes
--- 2001:db8:0:2::254 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time XXXX
rtt min/avg/max/mdev = 0.XXX/0.XXX/0.XXX/0.XXX ms
west #
 echo done
done
west #
 if [ -f /var/run/pluto/pluto.pid ]; then ../../guestbin/ipsec-look.sh ; fi
west NOW
XFRM state:
src 2001:db8:1:2::23 dst 2001:db8:1:2::45
	proto esp spi 0xSPISPI reqid REQID mode tunnel
	replay-window 32 flag af-unspec
	aead rfc4106(gcm(aes)) 0xENCAUTHKEY 128
src 2001:db8:1:2::45 dst 2001:db8:1:2::23
	proto esp spi 0xSPISPI reqid REQID mode tunnel
	replay-window 32 flag af-unspec
	aead rfc4106(gcm(aes)) 0xENCAUTHKEY 128
XFRM policy:
src 2001:db8:0:2::/64 dst 2001:db8:0:3:1::/128
	dir fwd priority 2031487 ptype main
	tmpl src 2001:db8:1:2::23 dst 2001:db8:1:2::45
		proto esp reqid REQID mode tunnel
src 2001:db8:0:2::/64 dst 2001:db8:0:3:1::/128
	dir in priority 2031487 ptype main
	tmpl src 2001:db8:1:2::23 dst 2001:db8:1:2::45
		proto esp reqid REQID mode tunnel
src 2001:db8:0:3:1::/128 dst 2001:db8:0:2::/64
	dir out priority 2031487 ptype main
	tmpl src 2001:db8:1:2::45 dst 2001:db8:1:2::23
		proto esp reqid REQID mode tunnel
src ::/0 dst ::/0 proto ipv6-icmp type 135
	dir fwd priority 1 ptype main
src ::/0 dst ::/0 proto ipv6-icmp type 135
	dir in priority 1 ptype main
src ::/0 dst ::/0 proto ipv6-icmp type 135
	dir out priority 1 ptype main
src ::/0 dst ::/0 proto ipv6-icmp type 136
	dir fwd priority 1 ptype main
src ::/0 dst ::/0 proto ipv6-icmp type 136
	dir in priority 1 ptype main
src ::/0 dst ::/0 proto ipv6-icmp type 136
	dir out priority 1 ptype main
XFRM done
IPSEC mangle TABLES
NEW_IPSEC_CONN mangle TABLES
ROUTING TABLES
default via 192.1.2.254 dev eth1
192.0.1.0/24 dev eth0 proto kernel scope link src 192.0.1.254
192.0.2.0/24 via 192.1.2.23 dev eth1
192.1.2.0/24 dev eth1 proto kernel scope link src 192.1.2.45
2001:db8:0:1::/64 dev eth0 proto kernel metric 256
2001:db8:0:2::/64 dev eth1 src 2001:db8:0:3:1:: metric 1024
2001:db8:0:3:1:: dev lo proto kernel metric 256
2001:db8:1:2::/64 dev eth1 proto kernel metric 256
fe80::/64 dev eth1 proto kernel metric 256
fe80::/64 dev eth0 proto kernel metric 256
default via 2001:db8:1:2::254 dev eth1
NSS_CERTIFICATES
Certificate Nickname                                         Trust Attributes
                                                             SSL,S/MIME,JAR/XPI
west #
 if [ -f /var/run/charon.pid -o -f /var/run/strongswan/charon.pid ]; then strongswan status ; fi
west #
 
