/testing/guestbin/swan-prep
west #
 # confirm that the network is alive
west #
 ../../guestbin/wait-until-alive -I 192.0.1.254 192.0.2.254
destination -I 192.0.1.254 192.0.2.254 is alive
west #
 # ensure that clear text does not get through
west #
 iptables -A INPUT -i eth1 -s 192.0.2.0/24 -j DROP
west #
 iptables -I INPUT -m policy --dir in --pol ipsec -j ACCEPT
west #
 # confirm clear text does not get through
west #
 ../../guestbin/ping-once.sh --down -I 192.0.1.254 192.0.2.254
down
west #
 ipsec start
Redirecting to: [initsystem]
west #
 ../../guestbin/wait-until-pluto-started
west #
 ipsec auto --add westnet-eastnet
002 "westnet-eastnet": added IKEv1 connection
west #
 echo "initdone"
initdone
west #
 # Proper test connection, should work
west #
 ipsec whack --impair none
west #
 ipsec whack --impair suppress-retransmits
west #
 ../../guestbin/libreswan-up-down.sh westnet-eastnet --alive -I 192.0.1.254 192.0.2.254
002 "westnet-eastnet": terminating SAs using this connection
002 "westnet-eastnet": added IKEv1 connection
002 "westnet-eastnet" #1: initiating IKEv1 Main Mode connection
1v1 "westnet-eastnet" #1: sent Main Mode request
1v1 "westnet-eastnet" #1: sent Main Mode I2
1v1 "westnet-eastnet" #1: sent Main Mode I3
002 "westnet-eastnet" #1: Peer ID is ID_FQDN: '@east'
003 "westnet-eastnet" #1: authenticated peer '2nnn-bit RSA with SHA1' signature using preloaded certificate '@east'
004 "westnet-eastnet" #1: IKE SA established {auth=RSA_SIG cipher=AES_CBC_256 integ=HMAC_SHA2_256 group=MODP2048}
002 "westnet-eastnet" #2: initiating Quick Mode IKEv1+RSASIG+ENCRYPT+TUNNEL+PFS+UP+IKE_FRAG_ALLOW+ESN_NO+ESN_YES
1v1 "westnet-eastnet" #2: sent Quick Mode request
004 "westnet-eastnet" #2: IPsec SA established tunnel mode {ESP=>0xESPESP <0xESPESP xfrm=AES_CBC_128-HMAC_SHA1_96 DPD=passive}
destination -I 192.0.1.254 192.0.2.254 is alive
002 "westnet-eastnet": terminating SAs using this connection
002 "westnet-eastnet" #2: deleting state (STATE_QUICK_I2) and sending notification
005 "westnet-eastnet" #2: ESP traffic information: in=84B out=84B
002 "westnet-eastnet" #1: deleting state (STATE_MAIN_I4) and sending notification
002 "westnet-eastnet": terminating SAs using this connection
west #
 # Quick:
west #
 ipsec whack --impair none
west #
 ipsec whack --impair revival
west #
 ipsec whack --impair suppress-retransmits
west #
 ipsec whack --impair v1-hash-exchange:quick
west #
 # HASH payload omitted - should fail
west #
 ipsec whack --impair v1-hash-payload:omit
west #
 ../../guestbin/libreswan-up-down.sh westnet-eastnet --down -I 192.0.1.254 192.0.2.254
002 "westnet-eastnet": added IKEv1 connection
002 "westnet-eastnet" #3: initiating IKEv1 Main Mode connection
1v1 "westnet-eastnet" #3: sent Main Mode request
1v1 "westnet-eastnet" #3: sent Main Mode I2
1v1 "westnet-eastnet" #3: sent Main Mode I3
002 "westnet-eastnet" #3: Peer ID is ID_FQDN: '@east'
003 "westnet-eastnet" #3: authenticated peer '2nnn-bit RSA with SHA1' signature using preloaded certificate '@east'
004 "westnet-eastnet" #3: IKE SA established {auth=RSA_SIG cipher=AES_CBC_256 integ=HMAC_SHA2_256 group=MODP2048}
002 "westnet-eastnet" #4: initiating Quick Mode IKEv1+RSASIG+ENCRYPT+TUNNEL+PFS+UP+IKE_FRAG_ALLOW+ESN_NO+ESN_YES
002 "westnet-eastnet" #4: IMPAIR: omitting HASH payload for outI1
1v1 "westnet-eastnet" #4: sent Quick Mode request
031 "westnet-eastnet" #4: STATE_QUICK_I1: 60 second timeout exceeded after 0 retransmits.  No acceptable response to our first Quick Mode message: perhaps peer likes no proposal
002 "westnet-eastnet" #4: deleting state (STATE_QUICK_I1) and NOT sending notification
west #
 # HASH payload empty - should fail
west #
 ipsec whack --impair v1-hash-payload:empty
west #
 ../../guestbin/libreswan-up-down.sh westnet-eastnet --down -I 192.0.1.254 192.0.2.254
002 "westnet-eastnet": added IKEv1 connection
002 "westnet-eastnet" #5: initiating IKEv1 Main Mode connection
1v1 "westnet-eastnet" #5: sent Main Mode request
1v1 "westnet-eastnet" #5: sent Main Mode I2
1v1 "westnet-eastnet" #5: sent Main Mode I3
002 "westnet-eastnet" #5: Peer ID is ID_FQDN: '@east'
003 "westnet-eastnet" #5: authenticated peer '2nnn-bit RSA with SHA1' signature using preloaded certificate '@east'
004 "westnet-eastnet" #5: IKE SA established {auth=RSA_SIG cipher=AES_CBC_256 integ=HMAC_SHA2_256 group=MODP2048}
002 "westnet-eastnet" #6: initiating Quick Mode IKEv1+RSASIG+ENCRYPT+TUNNEL+PFS+UP+IKE_FRAG_ALLOW+ESN_NO+ESN_YES
002 "westnet-eastnet" #6: IMPAIR: sending HASH payload with no data for outI1
1v1 "westnet-eastnet" #6: sent Quick Mode request
031 "westnet-eastnet" #6: STATE_QUICK_I1: 60 second timeout exceeded after 0 retransmits.  No acceptable response to our first Quick Mode message: perhaps peer likes no proposal
002 "westnet-eastnet" #6: deleting state (STATE_QUICK_I1) and NOT sending notification
west #
 # HASH payload badly calculated - should fail
west #
 ipsec whack --impair v1-hash-payload:0
west #
 ../../guestbin/libreswan-up-down.sh westnet-eastnet --down -I 192.0.1.254 192.0.2.254
002 "westnet-eastnet": added IKEv1 connection
002 "westnet-eastnet" #7: initiating IKEv1 Main Mode connection
1v1 "westnet-eastnet" #7: sent Main Mode request
1v1 "westnet-eastnet" #7: sent Main Mode I2
1v1 "westnet-eastnet" #7: sent Main Mode I3
002 "westnet-eastnet" #7: Peer ID is ID_FQDN: '@east'
003 "westnet-eastnet" #7: authenticated peer '2nnn-bit RSA with SHA1' signature using preloaded certificate '@east'
004 "westnet-eastnet" #7: IKE SA established {auth=RSA_SIG cipher=AES_CBC_256 integ=HMAC_SHA2_256 group=MODP2048}
002 "westnet-eastnet" #8: initiating Quick Mode IKEv1+RSASIG+ENCRYPT+TUNNEL+PFS+UP+IKE_FRAG_ALLOW+ESN_NO+ESN_YES
002 "westnet-eastnet" #8: IMPAIR: setting HASH payload bytes to 00
1v1 "westnet-eastnet" #8: sent Quick Mode request
031 "westnet-eastnet" #8: STATE_QUICK_I1: 60 second timeout exceeded after 0 retransmits.  No acceptable response to our first Quick Mode message: perhaps peer likes no proposal
002 "westnet-eastnet" #8: deleting state (STATE_QUICK_I1) and NOT sending notification
west #
 echo done
done
west #
 # Delete
west #
 ipsec whack --impair none
west #
 ipsec whack --impair revival
west #
 ipsec whack --impair suppress-retransmits
west #
 ipsec whack --impair v1-hash-exchange:delete
west #
 # HASH payload omitted - delete should fail
west #
 ipsec whack --impair v1-hash-payload:omit
west #
 ../../guestbin/libreswan-up-down.sh westnet-eastnet --alive -I 192.0.1.254 192.0.2.254
002 "westnet-eastnet": added IKEv1 connection
002 "westnet-eastnet" #9: initiating IKEv1 Main Mode connection
1v1 "westnet-eastnet" #9: sent Main Mode request
1v1 "westnet-eastnet" #9: sent Main Mode I2
1v1 "westnet-eastnet" #9: sent Main Mode I3
002 "westnet-eastnet" #9: Peer ID is ID_FQDN: '@east'
003 "westnet-eastnet" #9: authenticated peer '2nnn-bit RSA with SHA1' signature using preloaded certificate '@east'
004 "westnet-eastnet" #9: IKE SA established {auth=RSA_SIG cipher=AES_CBC_256 integ=HMAC_SHA2_256 group=MODP2048}
002 "westnet-eastnet" #10: initiating Quick Mode IKEv1+RSASIG+ENCRYPT+TUNNEL+PFS+UP+IKE_FRAG_ALLOW+ESN_NO+ESN_YES
1v1 "westnet-eastnet" #10: sent Quick Mode request
004 "westnet-eastnet" #10: IPsec SA established tunnel mode {ESP=>0xESPESP <0xESPESP xfrm=AES_CBC_128-HMAC_SHA1_96 DPD=passive}
destination -I 192.0.1.254 192.0.2.254 is alive
002 "westnet-eastnet": terminating SAs using this connection
002 "westnet-eastnet" #10: deleting state (STATE_QUICK_I2) and sending notification
005 "westnet-eastnet" #10: ESP traffic information: in=84B out=84B
002 "westnet-eastnet" #10: IMPAIR: omitting HASH payload for send delete
002 "westnet-eastnet" #9: deleting state (STATE_MAIN_I4) and sending notification
002 "westnet-eastnet" #9: IMPAIR: omitting HASH payload for send delete
002 "westnet-eastnet": terminating SAs using this connection
west #
 # HASH payload empty - delete should fail
west #
 ipsec whack --impair v1-hash-payload:empty
west #
 ../../guestbin/libreswan-up-down.sh westnet-eastnet --alive -I 192.0.1.254 192.0.2.254
002 "westnet-eastnet": added IKEv1 connection
002 "westnet-eastnet" #11: initiating IKEv1 Main Mode connection
1v1 "westnet-eastnet" #11: sent Main Mode request
1v1 "westnet-eastnet" #11: sent Main Mode I2
1v1 "westnet-eastnet" #11: sent Main Mode I3
002 "westnet-eastnet" #11: Peer ID is ID_FQDN: '@east'
003 "westnet-eastnet" #11: authenticated peer '2nnn-bit RSA with SHA1' signature using preloaded certificate '@east'
004 "westnet-eastnet" #11: IKE SA established {auth=RSA_SIG cipher=AES_CBC_256 integ=HMAC_SHA2_256 group=MODP2048}
002 "westnet-eastnet" #12: initiating Quick Mode IKEv1+RSASIG+ENCRYPT+TUNNEL+PFS+UP+IKE_FRAG_ALLOW+ESN_NO+ESN_YES
1v1 "westnet-eastnet" #12: sent Quick Mode request
004 "westnet-eastnet" #12: IPsec SA established tunnel mode {ESP=>0xESPESP <0xESPESP xfrm=AES_CBC_128-HMAC_SHA1_96 DPD=passive}
destination -I 192.0.1.254 192.0.2.254 is alive
002 "westnet-eastnet": terminating SAs using this connection
002 "westnet-eastnet" #12: deleting state (STATE_QUICK_I2) and sending notification
005 "westnet-eastnet" #12: ESP traffic information: in=84B out=84B
002 "westnet-eastnet" #12: IMPAIR: sending HASH payload with no data for send delete
002 "westnet-eastnet" #11: deleting state (STATE_MAIN_I4) and sending notification
002 "westnet-eastnet" #11: IMPAIR: sending HASH payload with no data for send delete
002 "westnet-eastnet": terminating SAs using this connection
west #
 # HASH payload badly calculated - delete should fail
west #
 ipsec whack --impair v1-hash-payload:0
west #
 ../../guestbin/libreswan-up-down.sh westnet-eastnet --alive -I 192.0.1.254 192.0.2.254
002 "westnet-eastnet": added IKEv1 connection
002 "westnet-eastnet" #13: initiating IKEv1 Main Mode connection
1v1 "westnet-eastnet" #13: sent Main Mode request
1v1 "westnet-eastnet" #13: sent Main Mode I2
1v1 "westnet-eastnet" #13: sent Main Mode I3
002 "westnet-eastnet" #13: Peer ID is ID_FQDN: '@east'
003 "westnet-eastnet" #13: authenticated peer '2nnn-bit RSA with SHA1' signature using preloaded certificate '@east'
004 "westnet-eastnet" #13: IKE SA established {auth=RSA_SIG cipher=AES_CBC_256 integ=HMAC_SHA2_256 group=MODP2048}
002 "westnet-eastnet" #14: initiating Quick Mode IKEv1+RSASIG+ENCRYPT+TUNNEL+PFS+UP+IKE_FRAG_ALLOW+ESN_NO+ESN_YES
1v1 "westnet-eastnet" #14: sent Quick Mode request
004 "westnet-eastnet" #14: IPsec SA established tunnel mode {ESP=>0xESPESP <0xESPESP xfrm=AES_CBC_128-HMAC_SHA1_96 DPD=passive}
destination -I 192.0.1.254 192.0.2.254 is alive
002 "westnet-eastnet": terminating SAs using this connection
002 "westnet-eastnet" #14: deleting state (STATE_QUICK_I2) and sending notification
005 "westnet-eastnet" #14: ESP traffic information: in=84B out=84B
002 "westnet-eastnet" #14: IMPAIR: setting HASH payload bytes to 00
002 "westnet-eastnet" #13: deleting state (STATE_MAIN_I4) and sending notification
002 "westnet-eastnet" #13: IMPAIR: setting HASH payload bytes to 00
002 "westnet-eastnet": terminating SAs using this connection
west #
 echo done
done
west #
 # XAUTH:
west #
 ipsec whack --impair none
west #
 ipsec whack --impair revival
west #
 ipsec whack --impair suppress-retransmits
west #
 ipsec whack --impair v1-hash-exchange:xauth
west #
 # HASH payload omitted - XAUTH should fail
west #
 ipsec whack --impair v1-hash-payload:omit
west #
 ../../guestbin/libreswan-up-down.sh westnet-eastnet --alive -I 192.0.1.254 192.0.2.254
002 "westnet-eastnet": added IKEv1 connection
002 "westnet-eastnet" #15: initiating IKEv1 Main Mode connection
1v1 "westnet-eastnet" #15: sent Main Mode request
1v1 "westnet-eastnet" #15: sent Main Mode I2
1v1 "westnet-eastnet" #15: sent Main Mode I3
002 "westnet-eastnet" #15: Peer ID is ID_FQDN: '@east'
003 "westnet-eastnet" #15: authenticated peer '2nnn-bit RSA with SHA1' signature using preloaded certificate '@east'
004 "westnet-eastnet" #15: IKE SA established {auth=RSA_SIG cipher=AES_CBC_256 integ=HMAC_SHA2_256 group=MODP2048}
002 "westnet-eastnet" #16: initiating Quick Mode IKEv1+RSASIG+ENCRYPT+TUNNEL+PFS+UP+IKE_FRAG_ALLOW+ESN_NO+ESN_YES
1v1 "westnet-eastnet" #16: sent Quick Mode request
004 "westnet-eastnet" #16: IPsec SA established tunnel mode {ESP=>0xESPESP <0xESPESP xfrm=AES_CBC_128-HMAC_SHA1_96 DPD=passive}
destination -I 192.0.1.254 192.0.2.254 is alive
002 "westnet-eastnet": terminating SAs using this connection
002 "westnet-eastnet" #16: deleting state (STATE_QUICK_I2) and sending notification
005 "westnet-eastnet" #16: ESP traffic information: in=84B out=84B
002 "westnet-eastnet" #15: deleting state (STATE_MAIN_I4) and sending notification
002 "westnet-eastnet": terminating SAs using this connection
west #
 # HASH payload empty - XAUTH should fail
west #
 ipsec whack --impair v1-hash-payload:empty
west #
 ../../guestbin/libreswan-up-down.sh westnet-eastnet --alive -I 192.0.1.254 192.0.2.254
002 "westnet-eastnet": added IKEv1 connection
002 "westnet-eastnet" #17: initiating IKEv1 Main Mode connection
1v1 "westnet-eastnet" #17: sent Main Mode request
1v1 "westnet-eastnet" #17: sent Main Mode I2
1v1 "westnet-eastnet" #17: sent Main Mode I3
002 "westnet-eastnet" #17: Peer ID is ID_FQDN: '@east'
003 "westnet-eastnet" #17: authenticated peer '2nnn-bit RSA with SHA1' signature using preloaded certificate '@east'
004 "westnet-eastnet" #17: IKE SA established {auth=RSA_SIG cipher=AES_CBC_256 integ=HMAC_SHA2_256 group=MODP2048}
002 "westnet-eastnet" #18: initiating Quick Mode IKEv1+RSASIG+ENCRYPT+TUNNEL+PFS+UP+IKE_FRAG_ALLOW+ESN_NO+ESN_YES
1v1 "westnet-eastnet" #18: sent Quick Mode request
004 "westnet-eastnet" #18: IPsec SA established tunnel mode {ESP=>0xESPESP <0xESPESP xfrm=AES_CBC_128-HMAC_SHA1_96 DPD=passive}
destination -I 192.0.1.254 192.0.2.254 is alive
002 "westnet-eastnet": terminating SAs using this connection
002 "westnet-eastnet" #18: deleting state (STATE_QUICK_I2) and sending notification
005 "westnet-eastnet" #18: ESP traffic information: in=84B out=84B
002 "westnet-eastnet" #17: deleting state (STATE_MAIN_I4) and sending notification
002 "westnet-eastnet": terminating SAs using this connection
west #
 # HASH payload badly calculated - XAUTH should fail
west #
 ipsec whack --impair v1-hash-payload:0
west #
 ../../guestbin/libreswan-up-down.sh westnet-eastnet --alive -I 192.0.1.254 192.0.2.254
002 "westnet-eastnet": added IKEv1 connection
002 "westnet-eastnet" #19: initiating IKEv1 Main Mode connection
1v1 "westnet-eastnet" #19: sent Main Mode request
1v1 "westnet-eastnet" #19: sent Main Mode I2
1v1 "westnet-eastnet" #19: sent Main Mode I3
002 "westnet-eastnet" #19: Peer ID is ID_FQDN: '@east'
003 "westnet-eastnet" #19: authenticated peer '2nnn-bit RSA with SHA1' signature using preloaded certificate '@east'
004 "westnet-eastnet" #19: IKE SA established {auth=RSA_SIG cipher=AES_CBC_256 integ=HMAC_SHA2_256 group=MODP2048}
002 "westnet-eastnet" #20: initiating Quick Mode IKEv1+RSASIG+ENCRYPT+TUNNEL+PFS+UP+IKE_FRAG_ALLOW+ESN_NO+ESN_YES
1v1 "westnet-eastnet" #20: sent Quick Mode request
004 "westnet-eastnet" #20: IPsec SA established tunnel mode {ESP=>0xESPESP <0xESPESP xfrm=AES_CBC_128-HMAC_SHA1_96 DPD=passive}
destination -I 192.0.1.254 192.0.2.254 is alive
002 "westnet-eastnet": terminating SAs using this connection
002 "westnet-eastnet" #20: deleting state (STATE_QUICK_I2) and sending notification
005 "westnet-eastnet" #20: ESP traffic information: in=84B out=84B
002 "westnet-eastnet" #19: deleting state (STATE_MAIN_I4) and sending notification
002 "westnet-eastnet": terminating SAs using this connection
west #
 echo done
done
west #
 # INFO
west #
 ipsec whack --impair none
west #
 ipsec whack --impair revival
west #
 ipsec whack --impair suppress-retransmits
west #
 ipsec whack --impair v1-hash-exchange:notification
west #
 # HASH payload omitted - INFO should fail
west #
 ipsec whack --impair v1-hash-payload:omit
west #
 ../../guestbin/libreswan-up-down.sh westnet-eastnet --alive -I 192.0.1.254 192.0.2.254
002 "westnet-eastnet": added IKEv1 connection
002 "westnet-eastnet" #21: initiating IKEv1 Main Mode connection
1v1 "westnet-eastnet" #21: sent Main Mode request
1v1 "westnet-eastnet" #21: sent Main Mode I2
1v1 "westnet-eastnet" #21: sent Main Mode I3
002 "westnet-eastnet" #21: Peer ID is ID_FQDN: '@east'
003 "westnet-eastnet" #21: authenticated peer '2nnn-bit RSA with SHA1' signature using preloaded certificate '@east'
004 "westnet-eastnet" #21: IKE SA established {auth=RSA_SIG cipher=AES_CBC_256 integ=HMAC_SHA2_256 group=MODP2048}
002 "westnet-eastnet" #22: initiating Quick Mode IKEv1+RSASIG+ENCRYPT+TUNNEL+PFS+UP+IKE_FRAG_ALLOW+ESN_NO+ESN_YES
1v1 "westnet-eastnet" #22: sent Quick Mode request
004 "westnet-eastnet" #22: IPsec SA established tunnel mode {ESP=>0xESPESP <0xESPESP xfrm=AES_CBC_128-HMAC_SHA1_96 DPD=passive}
destination -I 192.0.1.254 192.0.2.254 is alive
002 "westnet-eastnet": terminating SAs using this connection
002 "westnet-eastnet" #22: deleting state (STATE_QUICK_I2) and sending notification
005 "westnet-eastnet" #22: ESP traffic information: in=84B out=84B
002 "westnet-eastnet" #21: deleting state (STATE_MAIN_I4) and sending notification
002 "westnet-eastnet": terminating SAs using this connection
west #
 # HASH payload empty - INFO should fail
west #
 ipsec whack --impair v1-hash-payload:empty
west #
 ../../guestbin/libreswan-up-down.sh westnet-eastnet --alive -I 192.0.1.254 192.0.2.254
002 "westnet-eastnet": added IKEv1 connection
002 "westnet-eastnet" #23: initiating IKEv1 Main Mode connection
1v1 "westnet-eastnet" #23: sent Main Mode request
1v1 "westnet-eastnet" #23: sent Main Mode I2
1v1 "westnet-eastnet" #23: sent Main Mode I3
002 "westnet-eastnet" #23: Peer ID is ID_FQDN: '@east'
003 "westnet-eastnet" #23: authenticated peer '2nnn-bit RSA with SHA1' signature using preloaded certificate '@east'
004 "westnet-eastnet" #23: IKE SA established {auth=RSA_SIG cipher=AES_CBC_256 integ=HMAC_SHA2_256 group=MODP2048}
002 "westnet-eastnet" #24: initiating Quick Mode IKEv1+RSASIG+ENCRYPT+TUNNEL+PFS+UP+IKE_FRAG_ALLOW+ESN_NO+ESN_YES
1v1 "westnet-eastnet" #24: sent Quick Mode request
004 "westnet-eastnet" #24: IPsec SA established tunnel mode {ESP=>0xESPESP <0xESPESP xfrm=AES_CBC_128-HMAC_SHA1_96 DPD=passive}
destination -I 192.0.1.254 192.0.2.254 is alive
002 "westnet-eastnet": terminating SAs using this connection
002 "westnet-eastnet" #24: deleting state (STATE_QUICK_I2) and sending notification
005 "westnet-eastnet" #24: ESP traffic information: in=84B out=84B
002 "westnet-eastnet" #23: deleting state (STATE_MAIN_I4) and sending notification
002 "westnet-eastnet": terminating SAs using this connection
west #
 # HASH payload badly calculated - INFO should fail
west #
 ipsec whack --impair v1-hash-payload:0
west #
 ../../guestbin/libreswan-up-down.sh westnet-eastnet --alive -I 192.0.1.254 192.0.2.254
002 "westnet-eastnet": added IKEv1 connection
002 "westnet-eastnet" #25: initiating IKEv1 Main Mode connection
1v1 "westnet-eastnet" #25: sent Main Mode request
1v1 "westnet-eastnet" #25: sent Main Mode I2
1v1 "westnet-eastnet" #25: sent Main Mode I3
002 "westnet-eastnet" #25: Peer ID is ID_FQDN: '@east'
003 "westnet-eastnet" #25: authenticated peer '2nnn-bit RSA with SHA1' signature using preloaded certificate '@east'
004 "westnet-eastnet" #25: IKE SA established {auth=RSA_SIG cipher=AES_CBC_256 integ=HMAC_SHA2_256 group=MODP2048}
002 "westnet-eastnet" #26: initiating Quick Mode IKEv1+RSASIG+ENCRYPT+TUNNEL+PFS+UP+IKE_FRAG_ALLOW+ESN_NO+ESN_YES
1v1 "westnet-eastnet" #26: sent Quick Mode request
004 "westnet-eastnet" #26: IPsec SA established tunnel mode {ESP=>0xESPESP <0xESPESP xfrm=AES_CBC_128-HMAC_SHA1_96 DPD=passive}
destination -I 192.0.1.254 192.0.2.254 is alive
002 "westnet-eastnet": terminating SAs using this connection
002 "westnet-eastnet" #26: deleting state (STATE_QUICK_I2) and sending notification
005 "westnet-eastnet" #26: ESP traffic information: in=84B out=84B
002 "westnet-eastnet" #25: deleting state (STATE_MAIN_I4) and sending notification
002 "westnet-eastnet": terminating SAs using this connection
west #
 echo done
done
west #
 ipsec stop
Redirecting to: [initsystem]
west #
 : what should be looked for?
west #
 sed -n -f payloads.sed /tmp/pluto.log
-- start message (ID)
|    next payload type: ISAKMP_NEXT_ID (0x5)
| ***parse ISAKMP Signature Payload:
|    next payload type: ISAKMP_NEXT_NONE (0x0)
|    length: 278 (01 16)
"westnet-eastnet" #1: authenticated peer '2nnn-bit RSA with SHA1' signature using preloaded certificate '@east'
-- start message (HASH)
|    next payload type: ISAKMP_NEXT_HASH (0x8)
| ***parse ISAKMP Hash Payload:
|    next payload type: ISAKMP_NEXT_SA (0x1)
|    length: 36 (00 24)
| received 'quick_inR1_outI2' message HASH(2) data ok
-- start message (HASH)
|    next payload type: ISAKMP_NEXT_HASH (0x8)
| Informational Exchange is for an unknown (expired?) SA with MSGID:0x....
-- start message (HASH)
|    next payload type: ISAKMP_NEXT_HASH (0x8)
| Informational Exchange is for an unknown (expired?) SA with MSGID:0x....
-- start message (ID)
|    next payload type: ISAKMP_NEXT_ID (0x5)
| ***parse ISAKMP Signature Payload:
|    next payload type: ISAKMP_NEXT_NONE (0x0)
|    length: 278 (01 16)
"westnet-eastnet" #3: authenticated peer '2nnn-bit RSA with SHA1' signature using preloaded certificate '@east'
"westnet-eastnet" #4: IMPAIR: omitting HASH payload for outI1
-- start message (HASH)
|    next payload type: ISAKMP_NEXT_HASH (0x8)
| Informational Exchange is for an unknown (expired?) SA with MSGID:0x....
-- start message (ID)
|    next payload type: ISAKMP_NEXT_ID (0x5)
| ***parse ISAKMP Signature Payload:
|    next payload type: ISAKMP_NEXT_NONE (0x0)
|    length: 278 (01 16)
"westnet-eastnet" #5: authenticated peer '2nnn-bit RSA with SHA1' signature using preloaded certificate '@east'
"westnet-eastnet" #6: IMPAIR: sending HASH payload with no data for outI1
-- start message (HASH)
|    next payload type: ISAKMP_NEXT_HASH (0x8)
| Informational Exchange is for an unknown (expired?) SA with MSGID:0x....
-- start message (ID)
|    next payload type: ISAKMP_NEXT_ID (0x5)
| ***parse ISAKMP Signature Payload:
|    next payload type: ISAKMP_NEXT_NONE (0x0)
|    length: 278 (01 16)
"westnet-eastnet" #7: authenticated peer '2nnn-bit RSA with SHA1' signature using preloaded certificate '@east'
"westnet-eastnet" #8: IMPAIR: setting HASH payload bytes to 00
-- start message (HASH)
|    next payload type: ISAKMP_NEXT_HASH (0x8)
| Informational Exchange is for an unknown (expired?) SA with MSGID:0x....
-- start message (ID)
|    next payload type: ISAKMP_NEXT_ID (0x5)
| ***parse ISAKMP Signature Payload:
|    next payload type: ISAKMP_NEXT_NONE (0x0)
|    length: 278 (01 16)
"westnet-eastnet" #9: authenticated peer '2nnn-bit RSA with SHA1' signature using preloaded certificate '@east'
-- start message (HASH)
|    next payload type: ISAKMP_NEXT_HASH (0x8)
| ***parse ISAKMP Hash Payload:
|    next payload type: ISAKMP_NEXT_SA (0x1)
|    length: 36 (00 24)
| received 'quick_inR1_outI2' message HASH(2) data ok
"westnet-eastnet" #10: IMPAIR: omitting HASH payload for send delete
"westnet-eastnet" #9: IMPAIR: omitting HASH payload for send delete
-- start message (ID)
|    next payload type: ISAKMP_NEXT_ID (0x5)
| ***parse ISAKMP Signature Payload:
|    next payload type: ISAKMP_NEXT_NONE (0x0)
|    length: 278 (01 16)
"westnet-eastnet" #11: authenticated peer '2nnn-bit RSA with SHA1' signature using preloaded certificate '@east'
-- start message (HASH)
|    next payload type: ISAKMP_NEXT_HASH (0x8)
| ***parse ISAKMP Hash Payload:
|    next payload type: ISAKMP_NEXT_SA (0x1)
|    length: 36 (00 24)
| received 'quick_inR1_outI2' message HASH(2) data ok
"westnet-eastnet" #12: IMPAIR: sending HASH payload with no data for send delete
"westnet-eastnet" #11: IMPAIR: sending HASH payload with no data for send delete
-- start message (ID)
|    next payload type: ISAKMP_NEXT_ID (0x5)
| ***parse ISAKMP Signature Payload:
|    next payload type: ISAKMP_NEXT_NONE (0x0)
|    length: 278 (01 16)
"westnet-eastnet" #13: authenticated peer '2nnn-bit RSA with SHA1' signature using preloaded certificate '@east'
-- start message (HASH)
|    next payload type: ISAKMP_NEXT_HASH (0x8)
| ***parse ISAKMP Hash Payload:
|    next payload type: ISAKMP_NEXT_SA (0x1)
|    length: 36 (00 24)
| received 'quick_inR1_outI2' message HASH(2) data ok
"westnet-eastnet" #14: IMPAIR: setting HASH payload bytes to 00
"westnet-eastnet" #13: IMPAIR: setting HASH payload bytes to 00
-- start message (ID)
|    next payload type: ISAKMP_NEXT_ID (0x5)
| ***parse ISAKMP Signature Payload:
|    next payload type: ISAKMP_NEXT_NONE (0x0)
|    length: 278 (01 16)
"westnet-eastnet" #15: authenticated peer '2nnn-bit RSA with SHA1' signature using preloaded certificate '@east'
-- start message (HASH)
|    next payload type: ISAKMP_NEXT_HASH (0x8)
| ***parse ISAKMP Hash Payload:
|    next payload type: ISAKMP_NEXT_SA (0x1)
|    length: 36 (00 24)
| received 'quick_inR1_outI2' message HASH(2) data ok
-- start message (HASH)
|    next payload type: ISAKMP_NEXT_HASH (0x8)
| Informational Exchange is for an unknown (expired?) SA with MSGID:0x....
-- start message (HASH)
|    next payload type: ISAKMP_NEXT_HASH (0x8)
| Informational Exchange is for an unknown (expired?) SA with MSGID:0x....
-- start message (HASH)
|    next payload type: ISAKMP_NEXT_HASH (0x8)
| Informational Exchange is for an unknown (expired?) SA with MSGID:0x....
-- start message (HASH)
|    next payload type: ISAKMP_NEXT_HASH (0x8)
| Informational Exchange is for an unknown (expired?) SA with MSGID:0x....
-- start message (HASH)
|    next payload type: ISAKMP_NEXT_HASH (0x8)
| Informational Exchange is for an unknown (expired?) SA with MSGID:0x....
-- start message (HASH)
|    next payload type: ISAKMP_NEXT_HASH (0x8)
| Informational Exchange is for an unknown (expired?) SA with MSGID:0x....
-- start message (HASH)
|    next payload type: ISAKMP_NEXT_HASH (0x8)
| Informational Exchange is for an unknown (expired?) SA with MSGID:0x....
-- start message (HASH)
|    next payload type: ISAKMP_NEXT_HASH (0x8)
| Informational Exchange is for an unknown (expired?) SA with MSGID:0x....
-- start message (ID)
|    next payload type: ISAKMP_NEXT_ID (0x5)
| ***parse ISAKMP Signature Payload:
|    next payload type: ISAKMP_NEXT_NONE (0x0)
|    length: 278 (01 16)
"westnet-eastnet" #17: authenticated peer '2nnn-bit RSA with SHA1' signature using preloaded certificate '@east'
-- start message (HASH)
|    next payload type: ISAKMP_NEXT_HASH (0x8)
| ***parse ISAKMP Hash Payload:
|    next payload type: ISAKMP_NEXT_SA (0x1)
|    length: 36 (00 24)
| received 'quick_inR1_outI2' message HASH(2) data ok
-- start message (HASH)
|    next payload type: ISAKMP_NEXT_HASH (0x8)
| Informational Exchange is for an unknown (expired?) SA with MSGID:0x....
-- start message (HASH)
|    next payload type: ISAKMP_NEXT_HASH (0x8)
| Informational Exchange is for an unknown (expired?) SA with MSGID:0x....
-- start message (ID)
|    next payload type: ISAKMP_NEXT_ID (0x5)
| ***parse ISAKMP Signature Payload:
|    next payload type: ISAKMP_NEXT_NONE (0x0)
|    length: 278 (01 16)
"westnet-eastnet" #19: authenticated peer '2nnn-bit RSA with SHA1' signature using preloaded certificate '@east'
-- start message (HASH)
|    next payload type: ISAKMP_NEXT_HASH (0x8)
| ***parse ISAKMP Hash Payload:
|    next payload type: ISAKMP_NEXT_SA (0x1)
|    length: 36 (00 24)
| received 'quick_inR1_outI2' message HASH(2) data ok
-- start message (HASH)
|    next payload type: ISAKMP_NEXT_HASH (0x8)
| Informational Exchange is for an unknown (expired?) SA with MSGID:0x....
-- start message (HASH)
|    next payload type: ISAKMP_NEXT_HASH (0x8)
| Informational Exchange is for an unknown (expired?) SA with MSGID:0x....
-- start message (ID)
|    next payload type: ISAKMP_NEXT_ID (0x5)
| ***parse ISAKMP Signature Payload:
|    next payload type: ISAKMP_NEXT_NONE (0x0)
|    length: 278 (01 16)
"westnet-eastnet" #21: authenticated peer '2nnn-bit RSA with SHA1' signature using preloaded certificate '@east'
-- start message (HASH)
|    next payload type: ISAKMP_NEXT_HASH (0x8)
| ***parse ISAKMP Hash Payload:
|    next payload type: ISAKMP_NEXT_SA (0x1)
|    length: 36 (00 24)
| received 'quick_inR1_outI2' message HASH(2) data ok
-- start message (HASH)
|    next payload type: ISAKMP_NEXT_HASH (0x8)
| Informational Exchange is for an unknown (expired?) SA with MSGID:0x....
-- start message (HASH)
|    next payload type: ISAKMP_NEXT_HASH (0x8)
| Informational Exchange is for an unknown (expired?) SA with MSGID:0x....
-- start message (ID)
|    next payload type: ISAKMP_NEXT_ID (0x5)
| ***parse ISAKMP Signature Payload:
|    next payload type: ISAKMP_NEXT_NONE (0x0)
|    length: 278 (01 16)
"westnet-eastnet" #23: authenticated peer '2nnn-bit RSA with SHA1' signature using preloaded certificate '@east'
-- start message (HASH)
|    next payload type: ISAKMP_NEXT_HASH (0x8)
| ***parse ISAKMP Hash Payload:
|    next payload type: ISAKMP_NEXT_SA (0x1)
|    length: 36 (00 24)
| received 'quick_inR1_outI2' message HASH(2) data ok
-- start message (HASH)
|    next payload type: ISAKMP_NEXT_HASH (0x8)
| Informational Exchange is for an unknown (expired?) SA with MSGID:0x....
-- start message (HASH)
|    next payload type: ISAKMP_NEXT_HASH (0x8)
| Informational Exchange is for an unknown (expired?) SA with MSGID:0x....
-- start message (ID)
|    next payload type: ISAKMP_NEXT_ID (0x5)
| ***parse ISAKMP Signature Payload:
|    next payload type: ISAKMP_NEXT_NONE (0x0)
|    length: 278 (01 16)
"westnet-eastnet" #25: authenticated peer '2nnn-bit RSA with SHA1' signature using preloaded certificate '@east'
-- start message (HASH)
|    next payload type: ISAKMP_NEXT_HASH (0x8)
| ***parse ISAKMP Hash Payload:
|    next payload type: ISAKMP_NEXT_SA (0x1)
|    length: 36 (00 24)
| received 'quick_inR1_outI2' message HASH(2) data ok
-- start message (HASH)
|    next payload type: ISAKMP_NEXT_HASH (0x8)
| Informational Exchange is for an unknown (expired?) SA with MSGID:0x....
-- start message (HASH)
|    next payload type: ISAKMP_NEXT_HASH (0x8)
| Informational Exchange is for an unknown (expired?) SA with MSGID:0x....

