| 1 |
/testing/guestbin/swan-prep --userland strongswan |
| 2 |
east # |
| 3 |
cp /testing/x509/real/mainca/root.cert /etc/strongswan/ipsec.d/cacerts/mainca.crt |
| 4 |
east # |
| 5 |
cp /testing/x509/real/mainca/`hostname`.end.key /etc/strongswan/ipsec.d/private/`hostname`.key |
| 6 |
east # |
| 7 |
cp /testing/x509/real/mainca/`hostname`.end.cert /etc/strongswan/ipsec.d/certs/`hostname`.crt |
| 8 |
east # |
| 9 |
# why? |
| 10 |
east # |
| 11 |
cp /testing/x509/real/mainca/west.end.cert /etc/strongswan/ipsec.d/certs/west.crt |
| 12 |
east # |
| 13 |
../../guestbin/strongswan-start.sh |
| 14 |
east # |
| 15 |
echo "initdone" |
| 16 |
initdone |
| 17 |
east # |
| 18 |
if [ -f /var/run/pluto/pluto.pid ]; then ../../guestbin/ipsec-kernel-state.sh ; fi |
| 19 |
east # |
| 20 |
if [ -f /var/run/pluto/pluto.pid ]; then ../../guestbin/ipsec-kernel-policy.sh ; fi |
| 21 |
east # |
| 22 |
if [ -f /var/run/charon.pid -o -f /var/run/strongswan/charon.pid ]; then strongswan status ; fi |
| 23 |
Shunted Connections: |
| 24 |
Bypass LAN 192.0.2.0/24: 192.0.2.0/24 === 192.0.2.0/24 PASS |
| 25 |
Bypass LAN 192.1.2.0/24: 192.1.2.0/24 === 192.1.2.0/24 PASS |
| 26 |
Security Associations (1 up, 0 connecting): |
| 27 |
westnet-eastnet-ikev2[1]: ESTABLISHED XXX second ago, 192.1.2.23[C=CA, ST=Ontario, L=Toronto, O=Libreswan, OU=Test Department, CN=east.testing.libreswan.org, [email protected]]...192.1.2.45[C=CA, ST=Ontario, L=Toronto, O=Libreswan, OU=Test Department, CN=west.testing.libreswan.org, [email protected]] |
| 28 |
westnet-eastnet-ikev2{1}: INSTALLED, TUNNEL, reqid 1, ESP SPIs: SPISPI_i SPISPI_o |
| 29 |
westnet-eastnet-ikev2{1}: 192.0.2.0/24 === 192.0.1.0/24 |
| 30 |
east # |
| 31 |
|