/testing/guestbin/swan-prep --hostkeys
Creating NSS database containing host keys
east #
 ipsec start
Redirecting to: [initsystem]
east #
 ../../guestbin/wait-until-pluto-started
east #
 ipsec auto --add westnet-eastnet-ikev2
"westnet-eastnet-ikev2": added unoriented IKEv2 connection (neither left=192.1.2.46 nor right=192.1.2.24 match an interface)
east #
 # should be unoriented
east #
 ipsec auto --status | grep westnet-eastnet-ikev2 | grep "[.][.][.]"
"westnet-eastnet-ikev2": 192.0.1.0/24===192.1.2.46...192.1.2.24[@east]===192.0.2.0/24; unoriented; my_ip=unset; their_ip=unset;
east #
 ../../guestbin/ip.sh address add 192.1.2.24/24 dev eth1
east #
 ipsec whack --listen
listening for IKE messages
adding interface eth1 192.1.2.24:UDP/500
adding interface eth1 192.1.2.24:UDP/4500 (NAT)
"westnet-eastnet-ikev2": oriented IKEv2 connection (local: right=192.1.2.24  remote: left=192.1.2.46)
forgetting secrets
loading secrets from "/etc/ipsec.secrets"
east #
 # should be oriented
east #
 ipsec auto --status | grep westnet-eastnet-ikev2 | grep "[.][.][.]"
"westnet-eastnet-ikev2": 192.0.2.0/24===192.1.2.24[@east]...192.1.2.46===192.0.1.0/24; unrouted; my_ip=unset; their_ip=unset;
east #
 echo "initdone"
initdone
east #
 ../../guestbin/ipsec-kernel-state.sh
src 192.1.2.24 dst 192.1.2.46
	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.46 dst 192.1.2.24
	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 
east #
 ../../guestbin/ipsec-kernel-policy.sh
src 192.0.1.0/24 dst 192.0.2.0/24
	dir fwd priority PRIORITY ptype main
	tmpl src 192.1.2.46 dst 192.1.2.24
		proto esp reqid REQID mode tunnel
src 192.0.1.0/24 dst 192.0.2.0/24
	dir in priority PRIORITY ptype main
	tmpl src 192.1.2.46 dst 192.1.2.24
		proto esp reqid REQID mode tunnel
src 192.0.2.0/24 dst 192.0.1.0/24
	dir out priority PRIORITY ptype main
	tmpl src 192.1.2.24 dst 192.1.2.46
		proto esp reqid REQID mode tunnel
east #
 
