/testing/guestbin/swan-prep --userland strongswan
east #
 cp /testing/x509/pki/real/mainca/root.cert /etc/strongswan/ipsec.d/cacerts/mainca.crt
east #
 cp /testing/x509/pki/real/mainca/`hostname`.key /etc/strongswan/swanctl/rsa/`hostname`.key
east #
 cp /testing/x509/pki/real/mainca/`hostname`.end.cert /etc/strongswan/swanctl/x509/`hostname`.crt
east #
 ../../guestbin/strongswan-start.sh
loaded certificate from '/etc/strongswan/swanctl/x509/east.crt'
loaded rsa key from '/etc/strongswan/swanctl/rsa/east.key'
no authorities found, 0 unloaded
loaded pool 'pool-subnet-100-64-10-0/24'
successfully loaded 1 pools, 0 unloaded
loaded connection 'rw-eap'
successfully loaded 1 connections, 0 unloaded
east #
 echo "initdone"
initdone
east #
 if [ -f /var/run/pluto/pluto.pid ]; then ipsec _kernel state ; fi
east #
 if [ -f /var/run/pluto/pluto.pid ]; then ipsec _kernel policy ; 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):
      rw-eap[2]: ESTABLISHED XXX second ago, 192.1.2.23[east.testing.libreswan.org]...192.1.3.209[C=CA, ST=Ontario, L=Toronto, O=Libreswan, OU=Test Department, CN=road.testing.libreswan.org, E=user-road@testing.libreswan.org]
      rw-eap{1}:  INSTALLED, TUNNEL, reqid 1, ESP SPIs: SPISPI_i SPISPI_o
      rw-eap{1}:   192.0.2.0/24 === 100.64.10.1/32
east #
