PRE-TEST moon# echo 1 > /proc/sys/net/ipv4/ip_forward carol# ipsec start Starting strongSwan 4.2.10 IPsec [starter]... dave# ipsec start Starting strongSwan 4.2.10 IPsec [starter]... moon# ipsec start Starting strongSwan 4.2.10 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 ] 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) ] 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" ocsp response correctly signed by "C=CH, O=Linux strongSwan, OU=OCSP Signing Authority, CN=ocsp.strongswan.org" ocsp response is valid: until Dec 26 11:24:02 2008 certificate status is good authentication of 'moon.strongswan.org' with RSA signature successful scheduling reauthentication in 3347s maximum IKE_SA lifetime 3527s 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] 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 ] 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) ] 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" ocsp response correctly signed by "C=CH, O=Linux strongSwan, OU=OCSP Signing Authority, CN=ocsp.strongswan.org" ocsp response is valid: until Dec 26 11:24:03 2008 certificate status is good authentication of 'moon.strongswan.org' with RSA signature successful scheduling reauthentication in 3280s maximum IKE_SA lifetime 3460s 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] 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] Dec 26 11:19:02 moon charon: 10[CFG] certificate status is good Dec 26 11:19:03 moon charon: 10[CFG] certificate status is good Dec 26 11:19:04 moon charon: 09[CFG] certificate status is good Dec 26 11:19:04 moon charon: 09[CFG] certificate status is good carol# cat /var/log/daemon.log | grep 'certificate status is good' [YES] Dec 26 11:19:03 carol charon: 03[CFG] certificate status is good dave# cat /var/log/daemon.log | grep 'certificate status is good' [YES] Dec 26 11:19:04 dave charon: 08[CFG] certificate status is good moon# ipsec status | grep 'ESTABLISHED.*carol' [YES] alice[1]: ESTABLISHED 3 seconds, 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, 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, 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 4 seconds, 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/*