/testing/guestbin/swan-prep --46 --nokey
Creating empty NSS database
road #
 ../../guestbin/ip.sh address show eth0 | grep global | sort
    inet 192.1.3.209/24 scope global eth0
    inet6 2001:db8:1:3::209/64 scope global
road #
 ipsec start
Redirecting to: [initsystem]
road #
 ../../guestbin/wait-until-pluto-started
road #
 ipsec auto --add road
"road": connection is using multiple subnets
"road": added IKEv2 connection
road #
 echo "initdone"
initdone
road #
 ipsec up road
"road" #1: initiating IKEv2 connection to 2001:db8:1:2::23 using UDP
"road" #1: sent IKE_SA_INIT request to [2001:db8:1:2::23]:UDP/500
"road" #1: processed IKE_SA_INIT response from [2001:db8:1:2::23]:UDP/500 {cipher=AES_GCM_16_256 integ=n/a prf=HMAC_SHA2_512 group=DH19}, initiating IKE_AUTH
"road" #1: sent IKE_AUTH request to [2001:db8:1:2::23]:UDP/500 with shared-key-mac and FQDN '@road'; Child SA #2 {ESP <0xESPESP}
"road" #1: initiator established IKE SA; authenticated peer using authby=secret and FQDN '@east'
"road" #2: accepted selectors [2001:db8:0:3::/64]->[2001:db8:0:2::/64 2001:db8:0:20::/64]
"road" #2: running updown prepare 2001:db8:0:3::/64===2001:db8:0:2::/64
"road" #2: running updown route 2001:db8:0:3::/64===2001:db8:0:2::/64
"road" #2: running updown up 2001:db8:0:3::/64===2001:db8:0:2::/64
"road" #2: running updown prepare 2001:db8:0:3::/64===2001:db8:0:20::/64
"road" #2: running updown route 2001:db8:0:3::/64===2001:db8:0:20::/64
"road" #2: running updown up 2001:db8:0:3::/64===2001:db8:0:20::/64
"road" #2: initiator established Child SA using #1; IPsec tunnel [2001:db8:0:3::/64===2001:db8:0:2::/64] [2001:db8:0:3::/64===2001:db8:0:20::/64] {ESP/ESN=>0xESPESP <0xESPESP xfrm=AES_GCM_16_256-NONE DPD=passive}
road #
 ipsec _kernel state
src 2001:db8:1:3::209 dst 2001:db8:1:2::23
	proto esp spi 0xSPISPI reqid REQID mode tunnel
	replay-window 0 flag af-unspec esn
	aead rfc4106(gcm(aes)) 0xENCAUTHKEY 128
	anti-replay esn context:
	 seq-hi 0x0, seq 0xXX, oseq-hi 0x0, oseq 0xXX
	 replay_window 0, bitmap-length 0
src 2001:db8:1:2::23 dst 2001:db8:1:3::209
	proto esp spi 0xSPISPI reqid REQID mode tunnel
	replay-window 0 flag af-unspec esn
	aead rfc4106(gcm(aes)) 0xENCAUTHKEY 128
	anti-replay esn context:
	 seq-hi 0x0, seq 0xXX, oseq-hi 0x0, oseq 0xXX
	 replay_window 128, bitmap-length 4
	 00000000 00000000 00000000 XXXXXXXX 
road #
 ipsec _kernel policy
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
src 2001:db8:0:2::/64 dst 2001:db8:0:3::/64
	dir fwd priority PRIORITY 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::/64
	dir in priority PRIORITY 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::/64 dst 2001:db8:0:2::/64
	dir out priority PRIORITY ptype main
	tmpl src 2001:db8:1:3::209 dst 2001:db8:1:2::23
		proto esp reqid REQID mode tunnel
src 2001:db8:0:3::/64 dst 2001:db8:0:20::/64
	dir out priority PRIORITY ptype main
	tmpl src 2001:db8:1:3::209 dst 2001:db8:1:2::23
		proto esp reqid REQID mode tunnel
src 2001:db8:0:20::/64 dst 2001:db8:0:3::/64
	dir fwd priority PRIORITY 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:20::/64 dst 2001:db8:0:3::/64
	dir in priority PRIORITY ptype main
	tmpl src 2001:db8:1:2::23 dst 2001:db8:1:3::209
		proto esp reqid REQID mode tunnel
road #
 ../../guestbin/ping-once.sh --up 2001:db8:0:2::254
up
road #
 ../../guestbin/ping-once.sh --up 2001:db8:0:20::254
up
road #
 ipsec trafficstatus
#2: "road", type=ESP, add_time=1234567890, inBytes=208, outBytes=208, maxBytes=2^63B, id='@east'
road #
 ipsec whack --rekey-ike --name road
"road" #3: initiating rekey to replace IKE SA #1 using IKE SA #1
"road" #3: sent CREATE_CHILD_SA request to rekey IKE SA #1 (using IKE SA #1)
"road" #3: initiator rekeyed IKE SA #1 {cipher=AES_GCM_16_256 integ=n/a prf=HMAC_SHA2_512 group=DH19}
"road" #1: deleting IKE SA (ESTABLISHED_IKE_SA) and sending notification
road #
 ../../guestbin/ping-once.sh --up 2001:db8:0:2::254
up
road #
 ../../guestbin/ping-once.sh --up 2001:db8:0:20::254
up
road #
 ipsec trafficstatus
#2: "road", type=ESP, add_time=1234567890, inBytes=416, outBytes=416, maxBytes=2^63B, id='@east'
road #
 ipsec whack --rekey-child --name road
"road" #4: initiating rekey to replace Child SA #2 using IKE SA #3
"road" #4: sent CREATE_CHILD_SA request to rekey Child SA #2 using IKE SA #3 {ESP <0xESPESP}
"road" #4: accepted selectors [2001:db8:0:3::/64]->[2001:db8:0:2::/64 2001:db8:0:20::/64]
"road" #4: initiator rekeyed Child SA #2 using #3; IPsec tunnel [2001:db8:0:3::/64===2001:db8:0:2::/64] [2001:db8:0:3::/64===2001:db8:0:20::/64] {ESP/ESN=>0xESPESP <0xESPESP xfrm=AES_GCM_16_256-NONE-DH19 DPD=passive}
"road" #2: sent INFORMATIONAL request to delete established Child SA using IKE SA #3
"road" #2: ESP traffic information: in=416B out=416B
road #
 ../../guestbin/ping-once.sh --up 2001:db8:0:2::254
up
road #
 ../../guestbin/ping-once.sh --up 2001:db8:0:20::254
up
road #
 ipsec trafficstatus
#4: "road", type=ESP, add_time=1234567890, inBytes=208, outBytes=208, maxBytes=2^63B, id='@east'
road #
