TCPDUMP sun# tcpdump -i eth0 not port ssh and not port domain > /tmp/tcpdump.log 2>&1 & PRE-TEST moon# /etc/init.d/iptables start 2> /dev/null * Caching service dependencies ... [ ok ] * Starting firewall ... [ ok ] sun# /etc/init.d/iptables start 2> /dev/null * Caching service dependencies ... [ ok ] * Starting firewall ... [ ok ] alice# ip route add fec2::/16 via fec1::1 moon# ip route add fec2::/16 via fec0::2 sun# ip route add fec1::/16 via fec0::1 bob# ip route add fec1::/16 via fec2::1 moon# ipsec start Starting strongSwan 4.6.1 IPsec [starter]... No leaks detected, 5 suppressed by whitelist sun# ipsec start Starting strongSwan 4.6.1 IPsec [starter]... No leaks detected, 5 suppressed by whitelist 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) N(HTTP_CERT_LOOK) CERTREQ N(MULT_AUTH) ] 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 hash-and-url "http://ip6-winnetou.strongswan.org/certs/160769ece9ead9c1c4d89c34aa004c3b66402081" 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 N(INIT_CONTACT) N(HTTP_CERT_LOOK) CERTREQ IDr AUTH SA TSi TSr N(MULT_AUTH) N(EAP_ONLY) ] 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 hash-and-url for end entity cert "http://ip6-winnetou.strongswan.org/certs/442b7162c7a4c27bd0f1076e345c5664bed53c7c" fetching certificate from 'http://ip6-winnetou.strongswan.org/certs/442b7162c7a4c27bd0f1076e345c5664bed53c7c' ... fetched certificate "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://ip6-winnetou.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 Dec 08 21:35:07 2011 certificate status is good reached self-signed root ca with a path length of 0 authentication of 'sun.strongswan.org' with RSA signature successful IKE_SA net-net[1] established between fec0::1[moon.strongswan.org]...fec0::2[sun.strongswan.org] scheduling reauthentication in 3300s maximum IKE_SA lifetime 3480s No leaks detected, 1 suppressed by whitelist moon# sleep 1 TEST moon# ipsec status | grep 'net-net.*INSTALLED' [YES] No leaks detected, 1 suppressed by whitelist net-net{1}: INSTALLED, TUNNEL, ESP SPIs: cc66a83c_i ce1dd8bf_o sun# ipsec status | grep 'net.net.*INSTALLED' [YES] No leaks detected, 1 suppressed by whitelist net-net{1}: INSTALLED, TUNNEL, ESP SPIs: ce1dd8bf_i cc66a83c_o alice# ping6 -c 1 -p deadbeef ip6-bob.strongswan.org | grep '64 bytes from ip6-bob.strongswan.org: icmp_seq=1' [YES] 64 bytes from ip6-bob.strongswan.org: icmp_seq=1 ttl=62 time=1.34 ms sun# killall tcpdump sun# cat /tmp/tcpdump.log | grep 'IP6 ip6-moon.strongswan.org > ip6-sun.strongswan.org: ESP' [YES] 03:00:25.832741 IP6 ip6-moon.strongswan.org > ip6-sun.strongswan.org: ESP(spi=0xce1dd8bf,seq=0x1), length 148 sun# cat /tmp/tcpdump.log | grep 'IP6 ip6-sun.strongswan.org > ip6-moon.strongswan.org: ESP' [YES] 03:00:25.833207 IP6 ip6-sun.strongswan.org > ip6-moon.strongswan.org: ESP(spi=0xcc66a83c,seq=0x1), length 148 POST-TEST moon# ipsec stop Stopping strongSwan IPsec... sun# ipsec stop Stopping strongSwan IPsec... alice# ip route del fec2::/16 via fec1::1 moon# ip route del fec2::/16 via fec0::2 sun# ip route del fec1::/16 via fec0::1 bob# ip route del fec1::/16 via fec2::1 moon# /etc/init.d/iptables stop 2> /dev/null * Stopping firewall ... [ ok ] sun# /etc/init.d/iptables stop 2> /dev/null * Stopping firewall ... [ ok ]