PRE-TEST moon# ipsec start Starting strongSwan 4.2.10 IPsec [starter]... carol# ipsec start Starting strongSwan 4.2.10 IPsec [starter]... carol# sleep 2 carol# ipsec up home initiating IKE_SA home[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 "C=CH, O=Linux strongSwan, CN=strongSwan Root CA" sending cert request for "C=CH, O=Linux strongSwan, CN=strongSwan Root CA" authentication of '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 home 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" fetching crl from 'http://crl.strongswan.org/strongswan.crl' ... using trusted certificate "C=CH, O=Linux strongSwan, CN=strongSwan Root CA" crl correctly signed by "C=CH, O=Linux strongSwan, CN=strongSwan Root CA" crl is valid: until Jan 25 08:45:40 2009 certificate status is good authentication of 'moon.strongswan.org' with RSA signature successful scheduling reauthentication in 3243s maximum IKE_SA lifetime 3423s IKE_SA home[1] established between 192.168.0.100[carol@strongswan.org]...192.168.0.1[moon.strongswan.org] TEST carol# ipsec statusall | grep 'home.*INSTALLED' [YES] home{1}: INSTALLED, TUNNEL, ESP SPIs: cb05fc42_i cb1d5bd7_o moon# ipsec statusall | grep 'rw.*INSTALLED' [YES] rw{1}: INSTALLED, TUNNEL, ESP SPIs: cb1d5bd7_i cb05fc42_o moon# iptables -A INPUT -i eth0 -s 192.168.0.100 -j DROP | grep 'no output expected' [NO] carol# iptables -A INPUT -i eth0 -s 192.168.0.1 -j DROP | grep 'no output expected' [NO] carol# sleep 180 | grep 'no output expected' [NO] carol# cat /var/log/daemon.log | grep 'sending DPD request' [YES] Dec 26 10:46:31 carol charon: 03[IKE] sending DPD request carol# cat /var/log/daemon.log | grep 'retransmit.*of request' [YES] Dec 26 10:46:36 carol charon: 09[IKE] retransmit 1 of request with message ID 2 Dec 26 10:46:43 carol charon: 13[IKE] retransmit 2 of request with message ID 2 Dec 26 10:46:56 carol charon: 14[IKE] retransmit 3 of request with message ID 2 Dec 26 10:47:19 carol charon: 17[IKE] retransmit 4 of request with message ID 2 Dec 26 10:48:01 carol charon: 13[IKE] retransmit 5 of request with message ID 2 carol# cat /var/log/daemon.log | grep 'giving up after 5 retransmits' [YES] Dec 26 10:49:17 carol charon: 12[IKE] giving up after 5 retransmits carol# iptables -D INPUT -i eth0 -s 192.168.0.1 -j DROP | grep 'no output expected' [NO] moon# iptables -D INPUT -i eth0 -s 192.168.0.100 -j DROP | grep 'no output expected' [NO] carol# ping -c 1 10.1.0.10 | grep 'trigger route' [NO] carol# sleep 2 | grep 'no output expected' [NO] carol# ipsec statusall | grep 'home.*INSTALLED' [YES] home{2}: INSTALLED, TUNNEL, ESP SPIs: c7de884a_i cd36d9fb_o home{2}: INSTALLED, TUNNEL, ESP SPIs: c876d93c_i ccb3f560_o moon# ipsec statusall | grep 'rw.*INSTALLED' [YES] rw{2}: INSTALLED, TUNNEL, ESP SPIs: cd36d9fb_i c7de884a_o rw{3}: INSTALLED, TUNNEL, ESP SPIs: ccb3f560_i c876d93c_o POST-TEST moon# ipsec stop Stopping strongSwan IPsec... carol# ipsec stop Stopping strongSwan IPsec...