TCPDUMP sun# tcpdump -i eth0 not port ssh and not port domain and not arp > /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 ] moon# ipsec start Starting strongSwan 4.2.10 IPsec [starter]... sun# ipsec start Starting strongSwan 4.2.10 IPsec [starter]... moon# sleep 2 moon# ipsec up host-host 002 "host-host" #1: initiating Main Mode 104 "host-host" #1: STATE_MAIN_I1: initiate 003 "host-host" #1: ignoring Vendor ID payload [strongSwan 4.2.10] 003 "host-host" #1: received Vendor ID payload [XAUTH] 003 "host-host" #1: received Vendor ID payload [Dead Peer Detection] 106 "host-host" #1: STATE_MAIN_I2: sent MI2, expecting MR2 002 "host-host" #1: we have a cert and are sending it upon request 108 "host-host" #1: STATE_MAIN_I3: sent MI3, expecting MR3 002 "host-host" #1: Peer ID is ID_FQDN: '@sun.strongswan.org' 002 "host-host" #1: crl not found 002 "host-host" #1: certificate status unknown 002 "host-host" #1: ISAKMP SA established 004 "host-host" #1: STATE_MAIN_I4: ISAKMP SA established 002 "host-host" #2: initiating Quick Mode RSASIG+ENCRYPT+PFS+UP {using isakmp#1} 112 "host-host" #2: STATE_QUICK_I1: initiate 002 "host-host" #2: sent QI2, IPsec SA established {ESP=>0x51b8da40 <0x000115f3} 004 "host-host" #2: STATE_QUICK_I2: sent QI2, IPsec SA established {ESP=>0x51b8da40 <0x000115f3} TEST moon# ipsec status | grep 'host-host.*STATE_QUICK_I2.*IPsec SA established' [YES] 000 #2: "host-host" STATE_QUICK_I2 (sent QI2, IPsec SA established); EVENT_SA_REPLACE in 962s; newest IPSEC; eroute owner sun# ipsec status | grep 'host-host.*STATE_QUICK_R2.*IPsec SA established' [YES] 000 #2: "host-host" STATE_QUICK_R2 (IPsec SA established); EVENT_SA_REPLACE in 1110s; newest IPSEC; eroute owner moon# ip xfrm state | grep 'mode transport' [YES] proto esp spi 0x000115f3 reqid 16385 mode transport proto esp spi 0x51b8da40 reqid 16385 mode transport sun# ip xfrm state | grep 'mode transport' [YES] proto esp spi 0x51b8da40 reqid 16385 mode transport proto esp spi 0x000115f3 reqid 16385 mode transport moon# ping6 -c 1 -p deadbeef ip6-sun.strongswan.org | grep '64 bytes from ip6-sun.strongswan.org: icmp_seq=1' [YES] 64 bytes from ip6-sun.strongswan.org: icmp_seq=1 ttl=64 time=0.541 ms sun# killall tcpdump sun# cat /tmp/tcpdump.log | grep 'IP6 ip6-moon.strongswan.org > ip6-sun.strongswan.org: ESP' [YES] 11:49:43.165311 IP6 ip6-moon.strongswan.org > ip6-sun.strongswan.org: ESP(spi=0x51b8da40,seq=0x1), length 116 sun# cat /tmp/tcpdump.log | grep 'IP6 ip6-sun.strongswan.org > ip6-moon.strongswan.org: ESP' [YES] 11:49:43.165474 IP6 ip6-sun.strongswan.org > ip6-moon.strongswan.org: ESP(spi=0x000115f3,seq=0x1), length 116 POST-TEST moon# ipsec stop Stopping strongSwan IPsec... sun# ipsec stop Stopping strongSwan IPsec... moon# /etc/init.d/iptables stop 2> /dev/null * Stopping firewall ... [ ok ] sun# /etc/init.d/iptables stop 2> /dev/null * Stopping firewall ... [ ok ]