| 1 |
/testing/guestbin/swan-prep --userland strongswan |
| 2 |
west # |
| 3 |
cp /testing/x509/real/mainec/root.cert /etc/strongswan/ipsec.d/cacerts/mainec.crt |
| 4 |
west # |
| 5 |
cp /testing/x509/real/mainec/`hostname`.end.cert /etc/strongswan/ipsec.d/certs/`hostname`.crt |
| 6 |
west # |
| 7 |
cp /testing/x509/real/mainec/`hostname`.end.key /etc/strongswan/ipsec.d/private/`hostname`.key |
| 8 |
west # |
| 9 |
chmod 600 /etc/strongswan/ipsec.d/*/* |
| 10 |
west # |
| 11 |
../../guestbin/strongswan-start.sh |
| 12 |
west # |
| 13 |
echo "initdone" |
| 14 |
initdone |
| 15 |
west # |
| 16 |
strongswan up westnet-eastnet-ikev2 |
| 17 |
initiating IKE_SA westnet-eastnet-ikev2[1] to 192.1.2.23 |
| 18 |
generating IKE_SA_INIT request 0 [ SA KE No N(NATD_S_IP) N(NATD_D_IP) N(FRAG_SUP) N(HASH_ALG) N(REDIR_SUP) ] |
| 19 |
sending packet: from 192.1.2.45[500] to 192.1.2.23[500] (XXX bytes) |
| 20 |
received packet: from 192.1.2.23[500] to 192.1.2.45[500] (XXX bytes) |
| 21 |
parsed IKE_SA_INIT response 0 [ N(INVAL_KE) ] |
| 22 |
peer didn't accept DH group MODP_2048, it requested ECP_256 |
| 23 |
initiating IKE_SA westnet-eastnet-ikev2[1] to 192.1.2.23 |
| 24 |
generating IKE_SA_INIT request 0 [ SA KE No N(NATD_S_IP) N(NATD_D_IP) N(FRAG_SUP) N(HASH_ALG) N(REDIR_SUP) ] |
| 25 |
sending packet: from 192.1.2.45[500] to 192.1.2.23[500] (XXX bytes) |
| 26 |
received packet: from 192.1.2.23[500] to 192.1.2.45[500] (XXX bytes) |
| 27 |
parsed IKE_SA_INIT response 0 [ SA KE No N(FRAG_SUP) N(HASH_ALG) N(NATD_S_IP) N(NATD_D_IP) N(CHDLESS_SUP) CERTREQ ] |
| 28 |
selected proposal: IKE:AES_GCM_16_256/PRF_HMAC_SHA2_512/ECP_256 |
| 29 |
sending cert request for "C=CA, ST=Ontario, L=Toronto, O=Libreswan, OU=Test Department, CN=Libreswan test CA for mainec, [email protected]" |
| 30 |
authentication of 'C=CA, ST=Ontario, L=Toronto, O=Libreswan, OU=Test Department, CN=west.testing.libreswan.org, [email protected]' (myself) with ECDSA_WITH_SHA384_DER successful |
| 31 |
sending end entity cert "C=CA, ST=Ontario, L=Toronto, O=Libreswan, OU=Test Department, CN=west.testing.libreswan.org, [email protected]" |
| 32 |
establishing CHILD_SA westnet-eastnet-ikev2{1} |
| 33 |
generating IKE_AUTH request 1 [ IDi CERT N(INIT_CONTACT) CERTREQ IDr AUTH SA TSi TSr N(MOBIKE_SUP) N(ADD_4_ADDR) N(EAP_ONLY) N(MSG_ID_SYN_SUP) ] |
| 34 |
splitting IKE message (XXX bytes) into 2 fragments |
| 35 |
generating IKE_AUTH request 1 [ EF(1/2) ] |
| 36 |
generating IKE_AUTH request 1 [ EF(2/2) ] |
| 37 |
sending packet: from 192.1.2.45[4500] to 192.1.2.23[4500] (XXX bytes) |
| 38 |
sending packet: from 192.1.2.45[4500] to 192.1.2.23[4500] (XXX bytes) |
| 39 |
received packet: from 192.1.2.23[4500] to 192.1.2.45[4500] (XXX bytes) |
| 40 |
parsed IKE_AUTH response 1 [ EF(1/3) ] |
| 41 |
received fragment #1 of 3, waiting for complete IKE message |
| 42 |
received packet: from 192.1.2.23[4500] to 192.1.2.45[4500] (XXX bytes) |
| 43 |
parsed IKE_AUTH response 1 [ EF(2/3) ] |
| 44 |
received fragment #2 of 3, waiting for complete IKE message |
| 45 |
received packet: from 192.1.2.23[4500] to 192.1.2.45[4500] (XXX bytes) |
| 46 |
parsed IKE_AUTH response 1 [ EF(3/3) ] |
| 47 |
received fragment #3 of 3, reassembled fragmented IKE message (XXX bytes) |
| 48 |
parsed IKE_AUTH response 1 [ IDr CERT AUTH SA TSi TSr ] |
| 49 |
received end entity cert "C=CA, ST=Ontario, L=Toronto, O=Libreswan, OU=Test Department, CN=east.testing.libreswan.org, [email protected]" |
| 50 |
using certificate "C=CA, ST=Ontario, L=Toronto, O=Libreswan, OU=Test Department, CN=east.testing.libreswan.org, [email protected]" |
| 51 |
using trusted ca certificate "C=CA, ST=Ontario, L=Toronto, O=Libreswan, OU=Test Department, CN=Libreswan test CA for mainec, [email protected]" |
| 52 |
reached self-signed root ca with a path length of 0 |
| 53 |
checking certificate status of "C=CA, ST=Ontario, L=Toronto, O=Libreswan, OU=Test Department, CN=east.testing.libreswan.org, [email protected]" |
| 54 |
requesting ocsp status from 'http://nic.testing.libreswan.org:2560' ... |
| 55 |
libcurl request failed [7]: Failed to connect to nic.testing.libreswan.org XXX |
| 56 |
ocsp request to http://nic.testing.libreswan.org:2560 failed |
| 57 |
ocsp check failed, fallback to crl |
| 58 |
fetching crl from 'http://nic.testing.libreswan.org/revoked.crl' ... |
| 59 |
libcurl request failed [7]: Failed to connect to nic.testing.libreswan.org XXX |
| 60 |
crl fetching failed |
| 61 |
certificate status is not available |
| 62 |
authentication of 'C=CA, ST=Ontario, L=Toronto, O=Libreswan, OU=Test Department, CN=east.testing.libreswan.org, [email protected]' with ECDSA_WITH_SHA384_DER successful |
| 63 |
IKE_SA westnet-eastnet-ikev2[1] established between 192.1.2.45[C=CA, ST=Ontario, L=Toronto, O=Libreswan, OU=Test Department, CN=west.testing.libreswan.org, [email protected]]...192.1.2.23[C=CA, ST=Ontario, L=Toronto, O=Libreswan, OU=Test Department, CN=east.testing.libreswan.org, [email protected]] |
| 64 |
scheduling reauthentication in XXXs |
| 65 |
maximum IKE_SA lifetime XXXs |
| 66 |
selected proposal: ESP:AES_GCM_16_256/NO_EXT_SEQ |
| 67 |
CHILD_SA westnet-eastnet-ikev2{1} established with SPIs SPISPI_i SPISPI_o and TS 192.0.1.0/24 === 192.0.2.0/24 |
| 68 |
connection 'westnet-eastnet-ikev2' established successfully |
| 69 |
west # |
| 70 |
../../guestbin/ping-once.sh --up -I 192.0.1.254 192.0.2.254 |
| 71 |
up |
| 72 |
west # |
| 73 |
ipsec whack --trafficstatus |
| 74 |
ERROR: ipsec whack: Pluto is not running (no "/run/pluto/pluto.ctl"): No such file or directory (errno 2) |
| 75 |
west # |
| 76 |
echo done |
| 77 |
done |
| 78 |
west # |
| 79 |
if [ -f /var/run/pluto/pluto.pid ]; then ../../guestbin/ipsec-kernel-state.sh ; fi |
| 80 |
west # |
| 81 |
if [ -f /var/run/pluto/pluto.pid ]; then ../../guestbin/ipsec-kernel-policy.sh ; fi |
| 82 |
west # |
| 83 |
if [ -f /var/run/charon.pid -o -f /var/run/strongswan/charon.pid ]; then strongswan status ; fi |
| 84 |
Shunted Connections: |
| 85 |
Bypass LAN 192.0.1.0/24: 192.0.1.0/24 === 192.0.1.0/24 PASS |
| 86 |
Bypass LAN 192.1.2.0/24: 192.1.2.0/24 === 192.1.2.0/24 PASS |
| 87 |
Security Associations (1 up, 0 connecting): |
| 88 |
westnet-eastnet-ikev2[1]: ESTABLISHED XXX second ago, 192.1.2.45[C=CA, ST=Ontario, L=Toronto, O=Libreswan, OU=Test Department, CN=west.testing.libreswan.org, [email protected]]...192.1.2.23[C=CA, ST=Ontario, L=Toronto, O=Libreswan, OU=Test Department, CN=east.testing.libreswan.org, [email protected]] |
| 89 |
westnet-eastnet-ikev2{1}: INSTALLED, TUNNEL, reqid 1, ESP SPIs: SPISPI_i SPISPI_o |
| 90 |
westnet-eastnet-ikev2{1}: 192.0.1.0/24 === 192.0.2.0/24 |
| 91 |
west # |
| 92 |
|