/testing/guestbin/swan-prep --userland strongswan
east #
 ../../guestbin/strongswan-start.sh
loaded ike secret 'ike-@east@road'
no authorities found, 0 unloaded
loaded pool 'pool-subnet-192-0-3-0/24'
successfully loaded 1 pools, 0 unloaded
loaded connection 'roadnet-eastnet-ikev2'
successfully loaded 1 connections, 0 unloaded
east #
 echo "initdone"
initdone
east #
 ipsec _kernel state
src 192.1.2.23 dst 192.1.33.222
	proto esp spi 0xSPISPI reqid 1 mode tunnel
	replay-window 0 flag af-unspec
	auth-trunc hmac(sha256) 0xHASHKEY 128
	enc cbc(aes) 0xENCKEY
	lastused YYYY-MM-DD HH:MM:SS
	dir out
src 192.1.33.222 dst 192.1.2.23
	proto esp spi 0xSPISPI reqid 1 mode tunnel
	replay-window 32 flag af-unspec
	auth-trunc hmac(sha256) 0xHASHKEY 128
	enc cbc(aes) 0xENCKEY
	lastused YYYY-MM-DD HH:MM:SS
	dir in
east #
 ipsec _kernel policy
src 192.0.2.0/24 dst 192.0.2.0/24
	dir fwd priority PRIORITY ptype main
src 192.0.2.0/24 dst 192.0.2.0/24
	dir in priority PRIORITY ptype main
src 192.0.2.0/24 dst 192.0.2.0/24
	dir out priority PRIORITY ptype main
src 192.1.2.0/24 dst 192.1.2.0/24
	dir fwd priority PRIORITY ptype main
src 192.1.2.0/24 dst 192.1.2.0/24
	dir in priority PRIORITY ptype main
src 192.1.2.0/24 dst 192.1.2.0/24
	dir out priority PRIORITY ptype main
src 192.0.2.0/24 dst 192.0.3.1/32
	dir out priority PRIORITY ptype main
	tmpl src 192.1.2.23 dst 192.1.33.222
		proto esp spi 0xSPISPI reqid 1 mode tunnel
src 192.0.3.1/32 dst 192.0.2.0/24
	dir fwd priority PRIORITY ptype main
	tmpl src 192.1.33.222 dst 192.1.2.23
		proto esp reqid 1 mode tunnel
src 192.0.3.1/32 dst 192.0.2.0/24
	dir in priority PRIORITY ptype main
	tmpl src 192.1.33.222 dst 192.1.2.23
		proto esp reqid 1 mode tunnel
east #
 if [ -f /var/run/pluto/pluto.pid ]; then ipsec whack --trafficstatus ; fi
east #
 if [ -f /var/run/charon.pid -o -f /var/run/strongswan/charon.pid ]; then strongswan status ; fi
Shunted Connections:
Bypass LAN 192.0.2.0/24:  192.0.2.0/24 === 192.0.2.0/24 PASS
Bypass LAN 192.1.2.0/24:  192.1.2.0/24 === 192.1.2.0/24 PASS
Security Associations (1 up, 0 connecting):
roadnet-eastnet-ikev2[1]: ESTABLISHED XXX second ago, 192.1.2.23[east]...192.1.33.222[road]
roadnet-eastnet-ikev2{1}:  INSTALLED, TUNNEL, reqid 1, ESP SPIs: SPISPI_i SPISPI_o
roadnet-eastnet-ikev2{1}:   192.0.2.0/24 === 192.0.3.1/32
east #
 sleep 7
east #
