/testing/guestbin/swan-prep --46
road #
 ../../pluto/bin/wait-until-alive 2001:db8:0:2::254
destination 2001:db8:0:2::254 is alive
road #
 ip6tables -A INPUT -i eth0 -s 2001:db8:0:2::254 -p ipv6-icmp -j DROP
road #
 ip6tables -I INPUT -m policy --dir in --pol ipsec -j ACCEPT
road #
 ../../pluto/bin/ping-once.sh --down 2001:db8:0:2::254
down
road #
 ipsec start
Redirecting to: [initsystem]
road #
 /testing/pluto/bin/wait-until-pluto-started
road #
 ipsec whack --impair suppress-retransmits
road #
 ipsec auto --add road
002 added IKEv2 connection "road"
road #
 echo "initdone"
initdone
road #
 ipsec auto --up road
1v2 "road"[1] 2001:db8:1:2::23 #1: initiating IKEv2 connection
1v2 "road"[1] 2001:db8:1:2::23 #1: sent IKE_SA_INIT request
1v2 "road"[1] 2001:db8:1:2::23 #1: sent IKE_AUTH request {auth=IKEv2 cipher=AES_GCM_16_256 integ=n/a prf=HMAC_SHA2_512 group=MODP2048}
002 "road"[1] 2001:db8:1:2::23 #2: IKEv2 mode peer ID is ID_FQDN: '@east'
003 "road"[1] 2001:db8:1:2::23 #1: authenticated using authby=secret
002 "road"[1] 2001:db8:1:2::23 #2: received INTERNAL_IP6_ADDRESS 2001:db8:0:3:1::
002 "road"[1] 2001:db8:1:2::23 #2: negotiated connection [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]
004 "road"[1] 2001:db8:1:2::23 #2: IPsec SA established tunnel mode {ESP=>0xESPESP <0xESPESP xfrm=AES_GCM_16_256-NONE NATOA=none NATD=none DPD=passive}
road #
 ping6 -c 2 -w 5 -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
64 bytes from 2001:db8:0:2::254: icmp_seq=1 ttl=64 time=0.XXX ms
64 bytes from 2001:db8:0:2::254: icmp_seq=2 ttl=64 time=0.XXX ms
--- 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
road #
 echo done
done
road #
 if [ -f /var/run/pluto/pluto.pid ]; then ../../pluto/bin/ipsec-look.sh ; fi
road NOW
XFRM state:
src 2001:db8:1:2::23 dst 2001:db8:1:3::209
	proto esp spi 0xSPISPI reqid REQID mode tunnel
	replay-window 32 flag af-unspec
	aead rfc4106(gcm(aes)) 0xENCAUTHKEY 128
src 2001:db8:1:3::209 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:3::209
		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:3::209
		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:3::209 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.3.254 dev eth0
192.1.3.0/24 dev eth0 proto kernel scope link src 192.1.3.209
2001:db8:0:2::/64 via 2001:db8:1:3::254 dev eth0 src 2001:db8:0:3:1:: metric 1024
2001:db8:0:3:1:: dev lo proto kernel metric 256
2001:db8:1:3::/64 dev eth0 proto kernel metric 256
fe80::/64 dev eth0 proto kernel metric 256
default via 2001:db8:1:3::254 dev eth0
NSS_CERTIFICATES
Certificate Nickname                                         Trust Attributes
                                                             SSL,S/MIME,JAR/XPI
road #
 if [ -f /var/run/charon.pid -o -f /var/run/strongswan/charon.pid ]; then strongswan status ; fi
road #
 ../bin/check-for-core.sh
road #
 if [ -f /sbin/ausearch ]; then ausearch -r -m avc -ts recent ; fi
road #
 
