TCPDUMP moon# 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 ] carol# /etc/init.d/iptables start 2> /dev/null * Caching service dependencies ... [ ok ] * Starting firewall ... [ ok ] alice# ip route add fec0::/16 via fec1::1 carol# ip route add fec1::/16 via fec0::1 moon# rm /etc/ipsec.d/cacerts/* carol# rm /etc/ipsec.d/cacerts/* carol# ipsec start Starting strongSwan 4.6.1 IPsec [starter]... No leaks detected, 5 suppressed by whitelist moon# ipsec start Starting strongSwan 4.6.1 IPsec [starter]... No leaks detected, 5 suppressed by whitelist carol# sleep 2 carol# ipsec up home 002 "home" #1: initiating Main Mode 102 "home" #1: STATE_MAIN_I1: initiate 003 "home" #1: received Vendor ID payload [strongSwan] 003 "home" #1: received Vendor ID payload [XAUTH] 003 "home" #1: received Vendor ID payload [Dead Peer Detection] 104 "home" #1: STATE_MAIN_I2: sent MI2, expecting MR2 106 "home" #1: STATE_MAIN_I3: sent MI3, expecting MR3 002 "home" #1: Peer ID is ID_IPV6_ADDR: 'fec0::1' 002 "home" #1: ISAKMP SA established 004 "home" #1: STATE_MAIN_I4: ISAKMP SA established 002 "home" #2: initiating Quick Mode PSK+ENCRYPT+TUNNEL+PFS+UP {using isakmp#1} 110 "home" #2: STATE_QUICK_I1: initiate 002 "home" #2: sent QI2, IPsec SA established {ESP=>0xc4d69f66 <0xcfed838e} 004 "home" #2: STATE_QUICK_I2: sent QI2, IPsec SA established {ESP=>0xc4d69f66 <0xcfed838e} TEST carol# ipsec status | grep 'home.*STATE_QUICK_I2.*IPsec SA established' [YES] 000 #2: "home" STATE_QUICK_I2 (sent QI2, IPsec SA established); EVENT_SA_REPLACE in 950s; newest IPSEC; eroute owner moon# ipsec status | grep 'rw.*STATE_QUICK_R2.*IPsec SA established' [YES] 000 #2: "rw"[1] fec0::10 STATE_QUICK_R2 (IPsec SA established); EVENT_SA_REPLACE in 1110s; newest IPSEC; eroute owner carol# ping6 -c 1 ip6-alice.strongswan.org | grep '64 bytes from ip6-alice.strongswan.org: icmp_seq=1' [YES] 64 bytes from ip6-alice.strongswan.org: icmp_seq=1 ttl=63 time=28.2 ms moon# killall tcpdump moon# cat /tmp/tcpdump.log | grep 'IP6 ip6-carol.strongswan.org > ip6-moon.strongswan.org: ESP' [YES] 03:08:52.528837 IP6 ip6-carol.strongswan.org > ip6-moon.strongswan.org: ESP(spi=0xc4d69f66,seq=0x1), length 148 moon# cat /tmp/tcpdump.log | grep 'IP6 ip6-moon.strongswan.org > ip6-carol.strongswan.org: ESP' [YES] 03:08:52.556549 IP6 ip6-moon.strongswan.org > ip6-carol.strongswan.org: ESP(spi=0xcfed838e,seq=0x1), length 148 POST-TEST moon# ipsec stop Stopping strongSwan IPsec... carol# ipsec stop Stopping strongSwan IPsec... alice# ip route del fec0::/16 via fec1::1 carol# ip route del fec1::/16 via fec0::1 moon# /etc/init.d/iptables stop 2> /dev/null * Stopping firewall ... [ ok ] carol# /etc/init.d/iptables stop 2> /dev/null * Stopping firewall ... [ ok ]