TCPDUMP sun# tcpdump -i eth0 not port ssh and not port domain and not arp > /tmp/tcpdump.log 2>&1 & PRE-TEST moon# echo 1 > /proc/sys/net/ipv4/ip_forward sun# echo 1 > /proc/sys/net/ipv4/ip_forward moon# ipsec start Starting strongSwan 4.2.17 IPsec [starter]... sun# ipsec start Starting strongSwan 4.2.17 IPsec [starter]... moon# sleep 2 moon# ipsec up net-net initiating IKE_SA net-net[1] to fec0::2 generating IKE_SA_INIT request 0 [ SA KE No N(NATD_S_IP) N(NATD_D_IP) ] sending packet: from fec0::1[500] to fec0::2[500] received packet: from fec0::2[500] to fec0::1[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 'moon.strongswan.org' (myself) with RSA signature successful sending end entity cert "C=CH, O=Linux strongSwan, CN=moon.strongswan.org" establishing CHILD_SA net-net generating IKE_AUTH request 1 [ IDi CERT CERTREQ IDr AUTH SA TSi TSr ] sending packet: from fec0::1[500] to fec0::2[500] received packet: from fec0::2[500] to fec0::1[500] parsed IKE_AUTH response 1 [ IDr CERT AUTH SA TSi TSr N(AUTH_LFT) ] received end entity cert "C=CH, O=Linux strongSwan, CN=sun.strongswan.org" using certificate "C=CH, O=Linux strongSwan, CN=sun.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=sun.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 Aug 19 13:47:17 2009 certificate status is good authentication of 'sun.strongswan.org' with RSA signature successful scheduling reauthentication in 3374s maximum IKE_SA lifetime 3554s IKE_SA net-net[1] established between fec0::1[moon.strongswan.org]...fec0::2[sun.strongswan.org] TEST moon# ipsec status | grep 'net-net.*INSTALLED' [YES] net-net{1}: INSTALLED, TUNNEL, ESP SPIs: c3edce70_i c17c26ee_o sun# ipsec status | grep 'net.net.*INSTALLED' [YES] net-net{1}: INSTALLED, TUNNEL, ESP SPIs: c17c26ee_i c3edce70_o alice# ping -c 1 10.2.0.10 | grep '64 bytes from 10.2.0.10: icmp_seq=1' [YES] 64 bytes from 10.2.0.10: icmp_seq=1 ttl=62 time=30.1 ms sun# killall tcpdump sun# cat /tmp/tcpdump.log | grep 'IP6 ip6-moon.strongswan.org > ip6-sun.strongswan.org: ESP' [YES] 16:51:34.329399 IP6 ip6-moon.strongswan.org > ip6-sun.strongswan.org: ESP(spi=0xc17c26ee,seq=0x1), length 132 sun# cat /tmp/tcpdump.log | grep 'IP6 ip6-sun.strongswan.org > ip6-moon.strongswan.org: ESP' [YES] 16:51:34.348430 IP6 ip6-sun.strongswan.org > ip6-moon.strongswan.org: ESP(spi=0xc3edce70,seq=0x1), length 132 POST-TEST moon# ipsec stop Stopping strongSwan IPsec... sun# ipsec stop Stopping strongSwan IPsec...