/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/0x1": added IKEv2 connection
"road/0x2": added IKEv2 connection
road #
 echo "initdone"
initdone
road #
 ipsec up road
initiating all connections with alias "road"
"road/0x2" #1: initiating IKEv2 connection to 192.1.2.23 using UDP
"road/0x1": queue Child SA; waiting on IKE SA "road/0x2" #1 negotiating with 192.1.2.23
"road/0x2" #1: sent IKE_SA_INIT request to 192.1.2.23:UDP/500
"road/0x1" #2: Child SA initiating pending connection using IKE SA #1's IKE_AUTH exchange
"road/0x2" #1: processed IKE_SA_INIT response from 192.1.2.23:UDP/500 {cipher=AES_GCM_16_256 integ=n/a prf=HMAC_SHA2_512 group=DH19}, initiating IKE_AUTH
"road/0x2" #1: sent IKE_AUTH request to 192.1.2.23:UDP/500
"road/0x2" #1: initiator established IKE SA; authenticated peer using authby=secret and ID_FQDN '@east'
"road/0x1" #2: initiator established Child SA using #1; IPsec tunnel [2001:db8:0:3::/64===2001:db8:0:2::/64] {ESP/ESN=>0xESPESP <0xESPESP xfrm=AES_GCM_16_256-NONE DPD=passive}
"road/0x2" #3: initiating Child SA using IKE SA #1
"road/0x2" #3: sent CREATE_CHILD_SA request to create Child SA using IKE SA #1
"road/0x2" #3: initiator established Child SA using #1; IPsec tunnel [2001:db8:0:3::/64===2001:db8:0:20::/64] {ESP/ESN=>0xESPESP <0xESPESP xfrm=AES_GCM_16_256-NONE-DH19 DPD=passive}
road #
 ../../guestbin/ipsec-look.sh
road NOW
XFRM state:
src 192.1.2.23 dst 192.1.3.209
	proto esp spi 0xSPISPI reqid REQID mode tunnel
	replay-window 0 flag af-unspec esn
	aead rfc4106(gcm(aes)) 0xENCAUTHKEY 128
	lastused YYYY-MM-DD HH:MM:SS
	anti-replay esn context:
	 seq-hi 0x0, seq 0xXX, oseq-hi 0x0, oseq 0xXX
	 replay_window 128, bitmap-length 4
	 00000000 00000000 00000000 XXXXXXXX 
src 192.1.3.209 dst 192.1.2.23
	proto esp spi 0xSPISPI reqid REQID mode tunnel
	replay-window 0 flag af-unspec esn
	aead rfc4106(gcm(aes)) 0xENCAUTHKEY 128
	lastused YYYY-MM-DD HH:MM:SS
	anti-replay esn context:
	 seq-hi 0x0, seq 0xXX, oseq-hi 0x0, oseq 0xXX
	 replay_window 128, bitmap-length 4
	 00000000 00000000 00000000 XXXXXXXX 
src 192.1.2.23 dst 192.1.3.209
	proto esp spi 0xSPISPI reqid REQID mode tunnel
	replay-window 0 flag af-unspec esn
	aead rfc4106(gcm(aes)) 0xENCAUTHKEY 128
	lastused YYYY-MM-DD HH:MM:SS
	anti-replay esn context:
	 seq-hi 0x0, seq 0xXX, oseq-hi 0x0, oseq 0xXX
	 replay_window 128, bitmap-length 4
	 00000000 00000000 00000000 XXXXXXXX 
src 192.1.3.209 dst 192.1.2.23
	proto esp spi 0xSPISPI reqid REQID mode tunnel
	replay-window 0 flag af-unspec esn
	aead rfc4106(gcm(aes)) 0xENCAUTHKEY 128
	lastused YYYY-MM-DD HH:MM:SS
	anti-replay esn context:
	 seq-hi 0x0, seq 0xXX, oseq-hi 0x0, oseq 0xXX
	 replay_window 128, bitmap-length 4
	 00000000 00000000 00000000 XXXXXXXX 
XFRM policy:
src 2001:db8:0:20::/64 dst 2001:db8:0:3::/64
	dir fwd priority PRIORITY ptype main
	tmpl src 192.1.2.23 dst 192.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 192.1.2.23 dst 192.1.3.209
		proto esp reqid REQID mode tunnel
src 2001:db8:0:2::/64 dst 2001:db8:0:3::/64
	dir fwd priority PRIORITY ptype main
	tmpl src 192.1.2.23 dst 192.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 192.1.2.23 dst 192.1.3.209
		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 192.1.3.209 dst 192.1.2.23
		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 192.1.3.209 dst 192.1.2.23
		proto esp reqid REQID mode tunnel
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
XFRM done
IPSEC mangle TABLES
iptables filter TABLE
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         
Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         
Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         
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 dev eth0 src 2001:db8:0:3::254 metric 1024
2001:db8:0:3::254 dev lo proto kernel metric 256
2001:db8:0:20::/64 dev eth0 src 2001:db8:0:3::254 metric 1024
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 #
 ../../guestbin/ping-once.sh --up 2001:db8:0:2::254
up
road #
 ../../guestbin/ping-once.sh --up 2001:db8:0:20::254
up
road #
 # non-zero counts confirm encrypted traffic flowing
road #
 ipsec trafficstatus
#2: "road/0x1", type=ESP, add_time=1234567890, inBytes=104, outBytes=104, maxBytes=2^63B, id='@east'
#3: "road/0x2", type=ESP, add_time=1234567890, inBytes=104, outBytes=104, maxBytes=2^63B, id='@east'
road #
 
