TCPDUMP moon# 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 carol# ipsec start Starting strongSwan IPsec 2.8.11 [starter]... moon# ipsec start Starting strongSwan IPsec 2.8.11 [starter]... carol# sleep 2 carol# ipsec up home 002 "home" #1: initiating Main Mode 104 "home" #1: STATE_MAIN_I1: initiate 003 "home" #1: ignoring Vendor ID payload [strongSwan 2.8.11] 003 "home" #1: received Vendor ID payload [XAUTH] 003 "home" #1: received Vendor ID payload [Dead Peer Detection] 106 "home" #1: STATE_MAIN_I2: sent MI2, expecting MR2 002 "home" #1: we have a cert and are sending it 108 "home" #1: STATE_MAIN_I3: sent MI3, expecting MR3 002 "home" #1: Peer ID is ID_FQDN: '@moon.strongswan.org' 002 "home" #1: crl not found 002 "home" #1: certificate status unknown 002 "home" #1: ISAKMP SA established 004 "home" #1: STATE_MAIN_I4: ISAKMP SA established 002 "home" #2: initiating Quick Mode RSASIG+ENCRYPT+COMPRESS+TUNNEL+PFS+UP {using isakmp#1} 112 "home" #2: STATE_QUICK_I1: initiate 002 "home" #2: sent QI2, IPsec SA established {ESP=>0x49e73080 <0x4e6fc384 IPCOMP=>0x00008432 <0x0000aad6} 004 "home" #2: STATE_QUICK_I2: sent QI2, IPsec SA established {ESP=>0x49e73080 <0x4e6fc384 IPCOMP=>0x00008432 <0x0000aad6} 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 985s; newest IPSEC; eroute owner moon# ipsec status | grep 'rw.*STATE_QUICK_R2.*IPsec SA established' [YES] 000 #2: "rw"[1] 192.168.0.100 STATE_QUICK_R2 (IPsec SA established); EVENT_SA_REPLACE in 1110s; newest IPSEC; eroute owner moon# ipsec statusall | grep 'policy.*COMPRESS' [YES] 000 "rw": policy: RSASIG+ENCRYPT+COMPRESS+TUNNEL+PFS; prio: 16,32; interface: eth0; 000 "rw"[1]: policy: RSASIG+ENCRYPT+COMPRESS+TUNNEL+PFS; prio: 16,32; interface: eth0; carol# ipsec statusall | grep 'policy.*COMPRESS' [YES] 000 "home": policy: RSASIG+ENCRYPT+COMPRESS+TUNNEL+PFS+UP; prio: 32,16; interface: eth0; moon# ipsec statusall | grep 'comp.' [YES] 000 #2: "rw"[1] 192.168.0.100 esp.4e6fc384@192.168.0.100 (0 bytes) esp.49e73080@192.168.0.1 (0 bytes) comp.aad6@192.168.0.100 comp.8432@192.168.0.1; tunnel carol# ipsec statusall | grep 'comp.' [YES] 000 #2: "home" esp.49e73080@192.168.0.1 (0 bytes) esp.4e6fc384@192.168.0.100 (0 bytes) comp.8432@192.168.0.1 comp.aad6@192.168.0.100; tunnel carol# ping -n -c 2 -s 8184 -p deadbeef 10.1.0.10 | grep '8192 bytes from 10.1.0.10' [YES] 8192 bytes from 10.1.0.10: icmp_seq=2 ttl=63 time=2.79 ms moon# killall tcpdump moon# cat /tmp/tcpdump.log | grep 'carol.strongswan.org > moon.strongswan.org: ESP' [YES] 06:52:24.517409 IP carol.strongswan.org > moon.strongswan.org: ESP(spi=0x49e73080,seq=0x1), length 116 06:52:25.523018 IP carol.strongswan.org > moon.strongswan.org: ESP(spi=0x49e73080,seq=0x2), length 116 moon# cat /tmp/tcpdump.log | grep 'moon.strongswan.org > carol.strongswan.org: ESP' [YES] 06:52:25.524743 IP moon.strongswan.org > carol.strongswan.org: ESP(spi=0x4e6fc384,seq=0x1), length 116 POST-TEST moon# ipsec stop Stopping strongSwan IPsec... carol# ipsec stop Stopping strongSwan IPsec...