east:~#
 TESTNAME=tpm-pluto-01
east:~#
 source /testing/pluto/bin/eastlocal.sh
east:~#
 ipsec setup start
ipsec_setup: Starting Openswan IPsec VERSION
east:~#
 ipsec auto --add westnet-eastnet
east:~#
 /testing/pluto/bin/wait-until-pluto-started
east:~#
 

east:~#
east:~#
 cat /tmp/pluto.log
Plutorun started on DATE
Starting Pluto (Openswan Version cvs2005Sep03_18:08:36 X.509-1.5.4 PLUTO_SENDS_VENDORID PLUTO_USES_KEYRR; Vendor ID OEJy}oiKkU}r)
@(#) built on DATE by PERSON
Setting NAT-Traversal port-4500 floating to off
   port floating activation criteria nat_t=0/port_fload=1
  including NAT-Traversal patch (Version 0.6c) [disabled]
ike_alg_register_enc(): Activating OAKLEY_AES_CBC: Ok (ret=0)
starting up 1 cryptographic helpers
started helper pid=999 (fd:9)
Loading TPM file: '/tmp/tpm-pluto-01/ipsec.d/tpm.tcl' 
Changing to directory '/tmp/tpm-pluto-01/ipsec.d/cacerts'
  loaded CA cert file 'caCert.pem' (4854 bytes)
Changing to directory '/tmp/tpm-pluto-01/ipsec.d/aacerts'
Changing to directory '/tmp/tpm-pluto-01/ipsec.d/ocspcerts'
Changing to directory '/tmp/tpm-pluto-01/ipsec.d/crls'
  loaded crl file 'nic.crl' (642 bytes)
  loaded crl file 'crashcrl-3.pem' (690 bytes)
crl issuer cacert not found for (file:///tmp/tpm-pluto-01/ipsec.d/crls/crashcrl-3.pem)
  loaded crl file 'crashcrl-2.pem' (528 bytes)
crl issuer cacert not found for (file:///tmp/tpm-pluto-01/ipsec.d/crls/crashcrl-2.pem)
  loaded crl file 'crashcrl-1.pem' (1053 bytes)
crl issuer cacert not found for (file:///tmp/tpm-pluto-01/ipsec.d/crls/crashcrl-1.pem)
added connection description "westnet-eastnet"
listening for IKE messages
adding interface ipsec0/eth1 192.1.2.23:500
loading secrets from "/tmp/tpm-pluto-01/ipsec.secrets"
  loaded private key file '/etc/ipsec.d/private/east.pem' (963 bytes)
added connection description "packetdefault"
listening for IKE messages
forgetting secrets
loading secrets from "/tmp/tpm-pluto-01/ipsec.secrets"
  loaded private key file '/etc/ipsec.d/private/east.pem' (963 bytes)
packet from 192.1.2.45:500: tcl callout: "processRawPacket" (from process_packet:1481)
md: _POINTER_p_msg_digest
packet from: 192.1.2.23
packet from 192.1.2.45:500: TPM result: 
packet from 192.1.2.45:500: tcl callout: "recvMessage" (from process_packet:2085)
recvMessage NULL NULL _POINTER_p_msg_digest
packet from 192.1.2.45:500: TPM result: 
packet from 192.1.2.45:500: received Vendor ID payload [Openswan (this version) cvs2005Sep03_18:08:36  X.509-1.5.4 PLUTO_SENDS_VENDORID PLUTO_USES_KEYRR]
packet from 192.1.2.45:500: received Vendor ID payload [Dead Peer Detection]
packet from 192.1.2.45:500: tcl callout: "changeState" (from process_packet:2345)
changeState NULL NULL _POINTER_p_msg_digest
packet from 192.1.2.45:500: TPM result: 
"westnet-eastnet" #1: responding to Main Mode
"westnet-eastnet" #1: tcl callout: "adjustFailure" (from complete_state_transition:2390)
adjustFailure _POINTER_p_state _POINTER_p_connection _POINTER_p_msg_digest: state 3
AF: not yet encrypted
"westnet-eastnet" #1: TPM result: 
"westnet-eastnet" #1: transition from state STATE_MAIN_R0 to state STATE_MAIN_R1
"westnet-eastnet" #1: tcl callout: "avoidEmitting" (from complete_state_transition:2486)
avoidEmitting _POINTER_p_state _POINTER_p_connection _POINTER_p_msg_digest
"westnet-eastnet" #1: TPM result: 
"westnet-eastnet" #1: STATE_MAIN_R1: sent MR1, expecting MI2
packet from 192.1.2.45:500: tcl callout: "processRawPacket" (from process_packet:1481)
md: _POINTER_p_msg_digest
packet from: 192.1.2.23
packet from 192.1.2.45:500: TPM result: 
"westnet-eastnet" #1: tcl callout: "recvMessage" (from process_packet:2085)
recvMessage NULL NULL _POINTER_p_msg_digest
"westnet-eastnet" #1: TPM result: 
"westnet-eastnet" #1: tcl callout: "changeState" (from process_packet:2345)
changeState _POINTER_p_state _POINTER_p_connection _POINTER_p_msg_digest
"westnet-eastnet" #1: TPM result: 
"westnet-eastnet" #1: tcl callout: "adjustFailure" (from complete_state_transition:2390)
adjustFailure _POINTER_p_state _POINTER_p_connection _POINTER_p_msg_digest: state 5
AF: not yet encrypted
"westnet-eastnet" #1: TPM result: 
"westnet-eastnet" #1: tcl callout: "adjustFailure" (from complete_state_transition:2390)
adjustFailure _POINTER_p_state _POINTER_p_connection _POINTER_p_msg_digest: state 5
AF: not yet encrypted
"westnet-eastnet" #1: TPM result: 
"westnet-eastnet" #1: transition from state STATE_MAIN_R1 to state STATE_MAIN_R2
"westnet-eastnet" #1: tcl callout: "avoidEmitting" (from complete_state_transition:2486)
avoidEmitting _POINTER_p_state _POINTER_p_connection _POINTER_p_msg_digest
"westnet-eastnet" #1: TPM result: 
"westnet-eastnet" #1: STATE_MAIN_R2: sent MR2, expecting MI3
packet from 192.1.2.45:500: tcl callout: "processRawPacket" (from process_packet:1481)
md: _POINTER_p_msg_digest
packet from: 192.1.2.23
packet from 192.1.2.45:500: TPM result: 
"westnet-eastnet" #1: tcl callout: "recvMessage" (from process_packet:2085)
recvMessage NULL NULL _POINTER_p_msg_digest
"westnet-eastnet" #1: TPM result: 
"westnet-eastnet" #1: tcl callout: "changeState" (from process_packet:2345)
changeState _POINTER_p_state _POINTER_p_connection _POINTER_p_msg_digest
"westnet-eastnet" #1: TPM result: 
"westnet-eastnet" #1: Main mode peer ID is ID_FQDN: '@west'
"westnet-eastnet" #1: I did not send a certificate because I do not have one.
"westnet-eastnet" #1: tcl callout: "adjustFailure" (from complete_state_transition:2390)
adjustFailure _POINTER_p_state _POINTER_p_connection _POINTER_p_msg_digest: state 7
| shared-secret  aa bb cc dd  aa bb cc dd  aa bb cc dd  aa bb cc dd
| shared-secret  aa bb cc dd  aa bb cc dd  aa bb cc dd  aa bb cc dd
"westnet-eastnet" #1: TPM result: 
"westnet-eastnet" #1: transition from state STATE_MAIN_R2 to state STATE_MAIN_R3
"westnet-eastnet" #1: tcl callout: "avoidEmitting" (from complete_state_transition:2486)
avoidEmitting _POINTER_p_state _POINTER_p_connection _POINTER_p_msg_digest
"westnet-eastnet" #1: TPM result: 
"westnet-eastnet" #1: STATE_MAIN_R3: sent MR3, ISAKMP SA established {auth=OAKLEY_RSA_SIG cipher=oakley_3des_cbc_192 prf=oakley_md5 group=modp1536}
packet from 192.1.2.45:500: tcl callout: "processRawPacket" (from process_packet:1481)
md: _POINTER_p_msg_digest
packet from: 192.1.2.23
packet from 192.1.2.45:500: TPM result: 
"westnet-eastnet" #1: tcl callout: "recvMessage" (from process_packet:2085)
recvMessage NULL NULL _POINTER_p_msg_digest
"westnet-eastnet" #1: TPM result: 
"westnet-eastnet" #1: tcl callout: "changeState" (from process_packet:2345)
changeState _POINTER_p_state _POINTER_p_connection _POINTER_p_msg_digest
"westnet-eastnet" #1: TPM result: 
"westnet-eastnet" #2: tcl callout: "adjustFailure" (from complete_state_transition:2390)
adjustFailure _POINTER_p_state _POINTER_p_connection _POINTER_p_msg_digest: state 16
| shared-secret
"westnet-eastnet" #2: TPM result: 
"westnet-eastnet" #2: responding to Quick Mode 
"westnet-eastnet" #2: tcl callout: "adjustFailure" (from complete_state_transition:2390)
adjustFailure _POINTER_p_state _POINTER_p_connection _POINTER_p_msg_digest: state 16
| shared-secret  aa bb cc dd  aa bb cc dd  aa bb cc dd  aa bb cc dd
| shared-secret  aa bb cc dd  aa bb cc dd  aa bb cc dd  aa bb cc dd
"westnet-eastnet" #2: TPM result: 
"westnet-eastnet" #2: transition from state STATE_QUICK_R0 to state STATE_QUICK_R1
"westnet-eastnet" #2: tcl callout: "avoidEmitting" (from complete_state_transition:2486)
avoidEmitting _POINTER_p_state _POINTER_p_connection _POINTER_p_msg_digest
"westnet-eastnet" #2: TPM result: 
"westnet-eastnet" #2: STATE_QUICK_R1: sent QR1, inbound IPsec SA installed, expecting QI2
packet from 192.1.2.45:500: tcl callout: "processRawPacket" (from process_packet:1481)
md: _POINTER_p_msg_digest
packet from: 192.1.2.23
packet from 192.1.2.45:500: TPM result: 
"westnet-eastnet" #2: tcl callout: "recvMessage" (from process_packet:2085)
recvMessage NULL NULL _POINTER_p_msg_digest
"westnet-eastnet" #2: TPM result: 
"westnet-eastnet" #2: tcl callout: "changeState" (from process_packet:2345)
changeState _POINTER_p_state _POINTER_p_connection _POINTER_p_msg_digest
"westnet-eastnet" #2: TPM result: 
"westnet-eastnet" #2: tcl callout: "adjustFailure" (from complete_state_transition:2390)
adjustFailure _POINTER_p_state _POINTER_p_connection _POINTER_p_msg_digest: state 18
| shared-secret  aa bb cc dd  aa bb cc dd  aa bb cc dd  aa bb cc dd
| shared-secret  aa bb cc dd  aa bb cc dd  aa bb cc dd  aa bb cc dd
"westnet-eastnet" #2: TPM result: 
"westnet-eastnet" #2: transition from state STATE_QUICK_R1 to state STATE_QUICK_R2
"westnet-eastnet" #2: STATE_QUICK_R2: IPsec SA established
east:~#
 if [ -f /tmp/core ]; then echo CORE FOUND; mv /tmp/core /var/tmp; fi
east:~#

