PRE-TEST moon# echo 1 > /proc/sys/net/ipv4/ip_forward carol# ipsec start Starting strongSwan 4.3.6 IPsec [starter]... dave# ipsec start Starting strongSwan 4.3.6 IPsec [starter]... moon# ipsec start Starting strongSwan 4.3.6 IPsec [starter]... carol# sleep 2 carol# ipsec up alice initiating IKE_SA alice[1] to 192.168.0.1 generating IKE_SA_INIT request 0 [ SA KE No N(NATD_S_IP) N(NATD_D_IP) ] sending packet: from 192.168.0.100[500] to 192.168.0.1[500] received packet: from 192.168.0.1[500] to 192.168.0.100[500] parsed IKE_SA_INIT response 0 [ SA KE No N(NATD_S_IP) N(NATD_D_IP) CERTREQ N(MULT_AUTH) ] received cert request for unknown ca with keyid c7:14:49:85:15:17:71:89:14:a4:96:53:2a:1e:e8:01:b2:1c:6a:a5 received cert request for "C=CH, O=Linux strongSwan, CN=strongSwan Root CA" received cert request for unknown ca with keyid c9:ca:6b:98:0b:e9:6d:5f:21:0d:7f:ed:15:29:eb:6c:56:7e:c2:6c sending cert request for "C=CH, O=Linux strongSwan, CN=strongSwan Root CA" authentication of 'C=CH, O=Linux strongSwan, OU=Research, CN=carol@strongswan.org' (myself) with RSA signature successful sending end entity cert "C=CH, O=Linux strongSwan, OU=Research, CN=carol@strongswan.org" establishing CHILD_SA alice generating IKE_AUTH request 1 [ IDi CERT CERTREQ IDr AUTH SA TSi TSr N(MOBIKE_SUP) N(ADD_6_ADDR) N(MULT_AUTH) N(EAP_ONLY) ] sending packet: from 192.168.0.100[4500] to 192.168.0.1[4500] received packet: from 192.168.0.1[4500] to 192.168.0.100[4500] parsed IKE_AUTH response 1 [ IDr CERT AUTH SA TSi TSr N(AUTH_LFT) N(MOBIKE_SUP) N(ADD_4_ADDR) N(ADD_6_ADDR) N(ADD_6_ADDR) ] received end entity cert "C=CH, O=Linux strongSwan, CN=moon.strongswan.org" using certificate "C=CH, O=Linux strongSwan, CN=moon.strongswan.org" using trusted ca certificate "C=CH, O=Linux strongSwan, CN=strongSwan Root CA" checking certificate status of "C=CH, O=Linux strongSwan, CN=moon.strongswan.org" requesting ocsp status from 'http://ocsp.strongswan.org:8880' ... using certificate "C=CH, O=Linux strongSwan, OU=OCSP Signing Authority, CN=ocsp.strongswan.org" using trusted ca certificate "C=CH, O=Linux strongSwan, CN=strongSwan Root CA" reached self-signed root ca with a path length of 0 ocsp response correctly signed by "C=CH, O=Linux strongSwan, OU=OCSP Signing Authority, CN=ocsp.strongswan.org" ocsp response is valid: until Feb 28 00:41:19 2010 certificate status is good reached self-signed root ca with a path length of 0 authentication of 'moon.strongswan.org' with RSA signature successful IKE_SA alice[1] established between 192.168.0.100[C=CH, O=Linux strongSwan, OU=Research, CN=carol@strongswan.org]...192.168.0.1[moon.strongswan.org] scheduling reauthentication in 3334s maximum IKE_SA lifetime 3514s dave# ipsec up venus initiating IKE_SA alice[1] to 192.168.0.1 generating IKE_SA_INIT request 0 [ SA KE No N(NATD_S_IP) N(NATD_D_IP) ] sending packet: from 192.168.0.200[500] to 192.168.0.1[500] received packet: from 192.168.0.1[500] to 192.168.0.200[500] parsed IKE_SA_INIT response 0 [ SA KE No N(NATD_S_IP) N(NATD_D_IP) CERTREQ N(MULT_AUTH) ] received cert request for unknown ca with keyid c7:14:49:85:15:17:71:89:14:a4:96:53:2a:1e:e8:01:b2:1c:6a:a5 received cert request for "C=CH, O=Linux strongSwan, CN=strongSwan Root CA" received cert request for unknown ca with keyid c9:ca:6b:98:0b:e9:6d:5f:21:0d:7f:ed:15:29:eb:6c:56:7e:c2:6c sending cert request for "C=CH, O=Linux strongSwan, CN=strongSwan Root CA" authentication of 'C=CH, O=Linux strongSwan, OU=Sales, CN=dave@strongswan.org' (myself) with RSA signature successful sending end entity cert "C=CH, O=Linux strongSwan, OU=Sales, CN=dave@strongswan.org" establishing CHILD_SA venus generating IKE_AUTH request 1 [ IDi CERT CERTREQ IDr AUTH SA TSi TSr N(MOBIKE_SUP) N(ADD_6_ADDR) N(MULT_AUTH) N(EAP_ONLY) ] sending packet: from 192.168.0.200[4500] to 192.168.0.1[4500] received packet: from 192.168.0.1[4500] to 192.168.0.200[4500] parsed IKE_AUTH response 1 [ IDr CERT AUTH SA TSi TSr N(AUTH_LFT) N(MOBIKE_SUP) N(ADD_4_ADDR) N(ADD_6_ADDR) N(ADD_6_ADDR) ] received end entity cert "C=CH, O=Linux strongSwan, CN=moon.strongswan.org" using certificate "C=CH, O=Linux strongSwan, CN=moon.strongswan.org" using trusted ca certificate "C=CH, O=Linux strongSwan, CN=strongSwan Root CA" checking certificate status of "C=CH, O=Linux strongSwan, CN=moon.strongswan.org" requesting ocsp status from 'http://ocsp.strongswan.org:8880' ... using certificate "C=CH, O=Linux strongSwan, OU=OCSP Signing Authority, CN=ocsp.strongswan.org" using trusted ca certificate "C=CH, O=Linux strongSwan, CN=strongSwan Root CA" reached self-signed root ca with a path length of 0 ocsp response correctly signed by "C=CH, O=Linux strongSwan, OU=OCSP Signing Authority, CN=ocsp.strongswan.org" ocsp response is valid: until Feb 28 00:41:20 2010 certificate status is good reached self-signed root ca with a path length of 0 authentication of 'moon.strongswan.org' with RSA signature successful IKE_SA alice[1] established between 192.168.0.200[C=CH, O=Linux strongSwan, OU=Sales, CN=dave@strongswan.org]...192.168.0.1[moon.strongswan.org] scheduling reauthentication in 3280s maximum IKE_SA lifetime 3460s dave# sleep 1 TEST moon# ipsec listocspcerts | grep 'altNames.*ocsp.*strongswan.org' [YES] altNames: ocsp.research.strongswan.org altNames: ocsp.strongswan.org altNames: ocsp.sales.strongswan.org carol# ipsec listocspcerts | grep 'altNames.*ocsp.strongswan.org' [YES] altNames: ocsp.strongswan.org dave# ipsec listocspcerts | grep 'altNames.*ocsp.strongswan.org' [YES] altNames: ocsp.strongswan.org moon# cat /var/log/daemon.log | grep 'certificate status is good' [YES] Feb 28 00:36:18 moon charon: 12[CFG] certificate status is good Feb 28 00:36:18 moon charon: 12[CFG] certificate status is good Feb 28 00:36:19 moon charon: 14[CFG] certificate status is good Feb 28 00:36:19 moon charon: 14[CFG] certificate status is good carol# cat /var/log/daemon.log | grep 'certificate status is good' [YES] Feb 28 00:36:19 carol charon: 13[CFG] certificate status is good dave# cat /var/log/daemon.log | grep 'certificate status is good' [YES] Feb 28 00:36:20 dave charon: 14[CFG] certificate status is good moon# ipsec status | grep 'ESTABLISHED.*carol' [YES] alice[1]: ESTABLISHED 4 seconds ago, 192.168.0.1[moon.strongswan.org]...192.168.0.100[C=CH, O=Linux strongSwan, OU=Research, CN=carol@strongswan.org] moon# ipsec status | grep 'ESTABLISHED.*dave' [YES] venus[2]: ESTABLISHED 3 seconds ago, 192.168.0.1[moon.strongswan.org]...192.168.0.200[C=CH, O=Linux strongSwan, OU=Sales, CN=dave@strongswan.org] carol# ipsec status | grep 'ESTABLISHED' [YES] alice[1]: ESTABLISHED 4 seconds ago, 192.168.0.100[C=CH, O=Linux strongSwan, OU=Research, CN=carol@strongswan.org]...192.168.0.1[moon.strongswan.org] dave# ipsec status | grep 'ESTABLISHED' [YES] alice[1]: ESTABLISHED 3 seconds ago, 192.168.0.200[C=CH, O=Linux strongSwan, OU=Sales, CN=dave@strongswan.org]...192.168.0.1[moon.strongswan.org] POST-TEST moon# ipsec stop Stopping strongSwan IPsec... carol# ipsec stop Stopping strongSwan IPsec... dave# ipsec stop Stopping strongSwan IPsec... moon# rm /etc/ipsec.d/cacerts/*