/testing/guestbin/swan-prep --userland strongswan
east #
 ../../guestbin/strongswan-start.sh
east #
 echo "initdone"
initdone
east #
 ../../guestbin/ipsec-kernel-state.sh
src 192.1.2.23 dst 192.1.33.222
	proto esp spi 0xSPISPI reqid REQID 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
src 192.1.33.222 dst 192.1.2.23
	proto esp spi 0xSPISPI reqid REQID 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
east #
 ../../guestbin/ipsec-kernel-policy.sh
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 REQID 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 REQID 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 REQID 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 #
 
