TCPDUMP moon# 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 ] carol# /etc/init.d/iptables start 2> /dev/null * Caching service dependencies ... [ ok ] * Starting firewall ... [ ok ] moon# ipsec start Starting strongSwan 4.3.6 IPsec [starter]... carol# ipsec start Starting strongSwan 4.3.6 IPsec [starter]... carol# sleep 1 carol# ipsec up home initiating IKE_SA home[1] to 192.168.0.1 generating IKE_SA_INIT request 0 [ SA KE No N(NATD_S_IP) N(NATD_D_IP) ] sending packet: from 192.168.0.100[500] to 192.168.0.1[500] received packet: from 192.168.0.1[500] to 192.168.0.100[500] parsed IKE_SA_INIT response 0 [ SA KE No N(NATD_S_IP) N(NATD_D_IP) CERTREQ N(MULT_AUTH) ] received cert request for "C=CH, O=Linux strongSwan, CN=strongSwan Root CA" sending cert request for "C=CH, O=Linux strongSwan, CN=strongSwan Root CA" authentication of 'carol@strongswan.org' (myself) with RSA signature successful sending end entity cert "C=CH, O=Linux strongSwan, OU=Research, CN=carol@strongswan.org" establishing CHILD_SA home generating IKE_AUTH request 1 [ IDi CERT CERTREQ IDr AUTH SA TSi TSr N(MOBIKE_SUP) N(ADD_6_ADDR) N(MULT_AUTH) N(EAP_ONLY) ] sending packet: from 192.168.0.100[4500] to 192.168.0.1[4500] received packet: from 192.168.0.1[4500] to 192.168.0.100[4500] parsed IKE_AUTH response 1 [ IDr CERT AUTH SA TSi TSr N(AUTH_LFT) N(MOBIKE_SUP) N(ADD_4_ADDR) N(ADD_6_ADDR) N(ADD_6_ADDR) ] received end entity cert "C=CH, O=Linux strongSwan, CN=moon.strongswan.org" using certificate "C=CH, O=Linux strongSwan, CN=moon.strongswan.org" using trusted ca certificate "C=CH, O=Linux strongSwan, CN=strongSwan Root CA" checking certificate status of "C=CH, O=Linux strongSwan, CN=moon.strongswan.org" fetching crl from 'http://crl.strongswan.org/strongswan.crl' ... using trusted certificate "C=CH, O=Linux strongSwan, CN=strongSwan Root CA" crl correctly signed by "C=CH, O=Linux strongSwan, CN=strongSwan Root CA" crl is valid: until Mar 29 23:27:26 2010 certificate status is good reached self-signed root ca with a path length of 0 authentication of 'moon.strongswan.org' with RSA signature successful IKE_SA home[1] established between 192.168.0.100[carol@strongswan.org]...192.168.0.1[moon.strongswan.org] scheduling reauthentication in 3338s maximum IKE_SA lifetime 3518s carol# sleep 1 TEST moon# ipsec statusall | grep 'rw.*INSTALLED' [YES] rw{1}: INSTALLED, TUNNEL, ESP SPIs: c1e6e129_i c8b9cd6c_o carol# ipsec statusall | grep 'home.*INSTALLED' [YES] home{1}: INSTALLED, TUNNEL, ESP SPIs: c8b9cd6c_i c1e6e129_o moon# ipsec statusall | grep 'IKE proposal: CAMELLIA_CBC_256/HMAC_SHA2_512_256/PRF_HMAC_SHA2_512/MODP_2048' [YES] rw[1]: IKE proposal: CAMELLIA_CBC_256/HMAC_SHA2_512_256/PRF_HMAC_SHA2_512/MODP_2048 carol# ipsec statusall | grep 'IKE proposal: CAMELLIA_CBC_256/HMAC_SHA2_512_256/PRF_HMAC_SHA2_512/MODP_2048' [YES] home[1]: IKE proposal: CAMELLIA_CBC_256/HMAC_SHA2_512_256/PRF_HMAC_SHA2_512/MODP_2048 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.475 ms moon# ipsec statusall | grep 'CAMELLIA_CBC_192/HMAC_SHA1_96' [YES] rw{1}: CAMELLIA_CBC_192/HMAC_SHA1_96, 148 bytes_i (0s ago), 148 bytes_o (0s ago), rekeying in 14 minutes carol# ipsec statusall | grep 'CAMELLIA_CBC_192/HMAC_SHA1_96' [YES] home{1}: CAMELLIA_CBC_192/HMAC_SHA1_96, 148 bytes_i (0s ago), 148 bytes_o (0s ago), rekeying in 16 minutes moon# ip xfrm state | grep 'enc cbc(camellia)' [YES] enc cbc(camellia) 0x73fcd4630c54d8083dd48d388846a4e279c2d018b8ccea8f enc cbc(camellia) 0xb338cabe676134b66d270ba215acfad2d1cc211ad14fd215 carol# ip xfrm state | grep 'enc cbc(camellia)' [YES] enc cbc(camellia) 0xb338cabe676134b66d270ba215acfad2d1cc211ad14fd215 enc cbc(camellia) 0x73fcd4630c54d8083dd48d388846a4e279c2d018b8ccea8f moon# killall tcpdump moon# cat /tmp/tcpdump.log | grep 'IP carol.strongswan.org > moon.strongswan.org: ESP.*length 196' [YES] 01:10:54.156454 IP carol.strongswan.org > moon.strongswan.org: ESP(spi=0xc1e6e129,seq=0x1), length 196 moon# cat /tmp/tcpdump.log | grep 'IP moon.strongswan.org > carol.strongswan.org: ESP.*length 196' [YES] 01:10:54.156669 IP moon.strongswan.org > carol.strongswan.org: ESP(spi=0xc8b9cd6c,seq=0x1), length 196 POST-TEST moon# ipsec stop Stopping strongSwan IPsec... carol# ipsec stop Stopping strongSwan IPsec... moon# /etc/init.d/iptables stop 2> /dev/null * Stopping firewall ... [ ok ] carol# /etc/init.d/iptables stop 2> /dev/null * Stopping firewall ... [ ok ]