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 002 "net-net" #1: initiating Main Mode 102 "net-net" #1: STATE_MAIN_I1: initiate 003 "net-net" #1: received Vendor ID payload [strongSwan] 003 "net-net" #1: received Vendor ID payload [XAUTH] 003 "net-net" #1: received Vendor ID payload [Dead Peer Detection] 104 "net-net" #1: STATE_MAIN_I2: sent MI2, expecting MR2 002 "net-net" #1: we have a cert and are sending it upon request 106 "net-net" #1: STATE_MAIN_I3: sent MI3, expecting MR3 002 "net-net" #1: Peer ID is ID_FQDN: 'sun.strongswan.org' 002 "net-net" #1: crl not found 002 "net-net" #1: certificate status unknown 002 "net-net" #1: ISAKMP SA established 004 "net-net" #1: STATE_MAIN_I4: ISAKMP SA established 002 "net-net" #2: initiating Quick Mode PUBKEY+ENCRYPT+TUNNEL+PFS+UP {using isakmp#1} 110 "net-net" #2: STATE_QUICK_I1: initiate 002 "net-net" #2: sent QI2, IPsec SA established {ESP=>0xc402f51d <0xc4055513} 004 "net-net" #2: STATE_QUICK_I2: sent QI2, IPsec SA established {ESP=>0xc402f51d <0xc4055513} TEST moon# ipsec status | grep 'net-net.*STATE_QUICK_I2.*IPsec SA established' [YES] 000 #2: "net-net" STATE_QUICK_I2 (sent QI2, IPsec SA established); EVENT_SA_REPLACE in 950s; newest IPSEC; eroute owner sun# ipsec status | grep 'net-net.*STATE_QUICK_R2.*IPsec SA established' [YES] 000 #2: "net-net" STATE_QUICK_R2 (IPsec SA established); EVENT_SA_REPLACE in 1110s; newest IPSEC; eroute owner 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=39.6 ms sun# killall tcpdump sun# cat /tmp/tcpdump.log | grep 'IP6 ip6-moon.strongswan.org > ip6-sun.strongswan.org: ESP' [YES] 02:59:24.634747 IP6 ip6-moon.strongswan.org > ip6-sun.strongswan.org: ESP(spi=0xc402f51d,seq=0x1), length 148 sun# cat /tmp/tcpdump.log | grep 'IP6 ip6-sun.strongswan.org > ip6-moon.strongswan.org: ESP' [YES] 02:59:24.662850 IP6 ip6-sun.strongswan.org > ip6-moon.strongswan.org: ESP(spi=0xc4055513,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 ]