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 4.3.6 IPsec [starter]... moon# ipsec start Starting strongSwan 4.3.6 IPsec [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] 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 upon request 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 PUBKEY+ENCRYPT+TUNNEL+PFS+UP {using isakmp#1} 112 "home" #2: STATE_QUICK_I1: initiate 002 "home" #2: sent QI2, IPsec SA established {ESP=>0x7e7562f4 <0x364a3452} 004 "home" #2: STATE_QUICK_I2: sent QI2, IPsec SA established {ESP=>0x7e7562f4 <0x364a3452} 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] 192.168.0.100 STATE_QUICK_R2 (IPsec SA established); EVENT_SA_REPLACE in 1110s; newest IPSEC; eroute owner carol# ipsec statusall | grep 'IKE proposal: AES_CBC_256/HMAC_SHA2_512/MODP_4096' [YES] 000 "home": IKE proposal: AES_CBC_256/HMAC_SHA2_512/MODP_4096 moon# ipsec statusall | grep 'IKE proposal: AES_CBC_256/HMAC_SHA2_512/MODP_4096' [YES] 000 "rw"[1]: IKE proposal: AES_CBC_256/HMAC_SHA2_512/MODP_4096 carol# ping -c 1 -s 120 -p deadbeef 10.1.0.10 | grep '128 bytes from 10.1.0.10: icmp_seq=1' [YES] 128 bytes from 10.1.0.10: icmp_seq=1 ttl=63 time=0.647 ms carol# ipsec statusall | grep 'ESP proposal: AES_CBC_256/HMAC_SHA2_512' [YES] 000 "home": ESP proposal: AES_CBC_256/HMAC_SHA2_512/ moon# ipsec statusall | grep 'ESP proposal: AES_CBC_256/HMAC_SHA2_512' [YES] 000 "rw"[1]: ESP proposal: AES_CBC_256/HMAC_SHA2_512/ carol# ip xfrm state | grep 'auth hmac(sha512)' [YES] auth hmac(sha512) 0x0bcf130a87c9c86285137b9b3388c89c5736bf7ba8eadfecd35ae2e66d0ed897839080e55c0a8fd791d54ce8f0746e38c817349e184c2abcc6fd37f69e54ccab auth hmac(sha512) 0x74d86c1b6d147e487c8eb31911f8a1d3544b496c6d4cd7082cfaa7cee2020691c3216c4ef45ffbcaaee6645b58b2ccdf98cd2309029160d09e8a90c1037ad87e moon# ip xfrm state | grep 'auth hmac(sha512)' [YES] auth hmac(sha512) 0x74d86c1b6d147e487c8eb31911f8a1d3544b496c6d4cd7082cfaa7cee2020691c3216c4ef45ffbcaaee6645b58b2ccdf98cd2309029160d09e8a90c1037ad87e auth hmac(sha512) 0x0bcf130a87c9c86285137b9b3388c89c5736bf7ba8eadfecd35ae2e66d0ed897839080e55c0a8fd791d54ce8f0746e38c817349e184c2abcc6fd37f69e54ccab moon# killall tcpdump moon# cat /tmp/tcpdump.log | grep 'IP carol.strongswan.org > moon.strongswan.org: ESP.*length 216' [YES] 22:39:46.028490 IP carol.strongswan.org > moon.strongswan.org: ESP(spi=0x7e7562f4,seq=0x1), length 216 moon# cat /tmp/tcpdump.log | grep 'IP moon.strongswan.org > carol.strongswan.org: ESP.*length 216' [YES] 22:39:46.028827 IP moon.strongswan.org > carol.strongswan.org: ESP(spi=0x364a3452,seq=0x1), length 216 POST-TEST moon# ipsec stop Stopping strongSwan IPsec... carol# ipsec stop Stopping strongSwan IPsec...