/testing/guestbin/swan-prep west # # confirm that the network is alive west # ../../pluto/bin/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 LOGDROP west # iptables -I INPUT -m policy --dir in --pol ipsec -j ACCEPT west # # confirm clear text does not get through west # ../../pluto/bin/ping-once.sh --down -I 192.0.1.254 192.0.2.254 down west # ipsec start Redirecting to: [initsystem] west # /testing/pluto/bin/wait-until-pluto-started west # ipsec auto --add westnet-eastnet 002 added connection description "westnet-eastnet" west # echo "initdone" initdone west # # Proper test connection, should work west # ipsec whack --impair none west # ../bin/libreswan-up-down.sh westnet-eastnet -I 192.0.1.254 192.0.2.254 002 "westnet-eastnet": terminating SAs using this connection 002 added connection description "westnet-eastnet" 002 "westnet-eastnet" #1: initiating Main Mode 1v1 "westnet-eastnet" #1: STATE_MAIN_I1: initiate 1v1 "westnet-eastnet" #1: STATE_MAIN_I2: sent MI2, expecting MR2 1v1 "westnet-eastnet" #1: STATE_MAIN_I3: sent MI3, expecting MR3 002 "westnet-eastnet" #1: Peer ID is ID_FQDN: '@east' 003 "westnet-eastnet" #1: Authenticated using RSA 004 "westnet-eastnet" #1: STATE_MAIN_I4: ISAKMP SA established {auth=RSA_SIG cipher=AES_CBC_256 integ=HMAC_SHA2_256 group=MODP2048} 002 "westnet-eastnet" #2: initiating Quick Mode RSASIG+ENCRYPT+TUNNEL+PFS+UP+IKEV1_ALLOW+SAREF_TRACK+IKE_FRAG_ALLOW+ESN_NO 1v1 "westnet-eastnet" #2: STATE_QUICK_I1: initiate 004 "westnet-eastnet" #2: STATE_QUICK_I2: sent QI2, IPsec SA established tunnel mode {ESP=>0xESPESP <0xESPESP xfrm=AES_CBC_128-HMAC_SHA1_96 NATOA=none NATD=none 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 # 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 omited - should fail west # ipsec whack --impair v1-hash-payload:omit west # ../bin/libreswan-up-down.sh westnet-eastnet -I 192.0.1.254 192.0.2.254 002 added connection description "westnet-eastnet" 002 "westnet-eastnet" #3: initiating Main Mode 1v1 "westnet-eastnet" #3: STATE_MAIN_I1: initiate 1v1 "westnet-eastnet" #3: STATE_MAIN_I2: sent MI2, expecting MR2 1v1 "westnet-eastnet" #3: STATE_MAIN_I3: sent MI3, expecting MR3 002 "westnet-eastnet" #3: Peer ID is ID_FQDN: '@east' 003 "westnet-eastnet" #3: Authenticated using RSA 004 "westnet-eastnet" #3: STATE_MAIN_I4: ISAKMP SA established {auth=RSA_SIG cipher=AES_CBC_256 integ=HMAC_SHA2_256 group=MODP2048} 002 "westnet-eastnet" #4: initiating Quick Mode RSASIG+ENCRYPT+TUNNEL+PFS+UP+IKEV1_ALLOW+SAREF_TRACK+IKE_FRAG_ALLOW+ESN_NO 002 "westnet-eastnet" #4: IMPAIR: omitting HASH payload for outI1 1v1 "westnet-eastnet" #4: STATE_QUICK_I1: initiate 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 000 "westnet-eastnet" #4: starting keying attempt 2 of an unlimited number, but releasing whack west # # HASH payload empty - should fail west # ipsec whack --impair v1-hash-payload:empty west # ../bin/libreswan-up-down.sh westnet-eastnet -I 192.0.1.254 192.0.2.254 002 added connection description "westnet-eastnet" 002 "westnet-eastnet" #6: initiating Main Mode 1v1 "westnet-eastnet" #6: STATE_MAIN_I1: initiate 1v1 "westnet-eastnet" #6: STATE_MAIN_I2: sent MI2, expecting MR2 1v1 "westnet-eastnet" #6: STATE_MAIN_I3: sent MI3, expecting MR3 002 "westnet-eastnet" #6: Peer ID is ID_FQDN: '@east' 003 "westnet-eastnet" #6: Authenticated using RSA 004 "westnet-eastnet" #6: STATE_MAIN_I4: ISAKMP SA established {auth=RSA_SIG cipher=AES_CBC_256 integ=HMAC_SHA2_256 group=MODP2048} 002 "westnet-eastnet" #7: initiating Quick Mode RSASIG+ENCRYPT+TUNNEL+PFS+UP+IKEV1_ALLOW+SAREF_TRACK+IKE_FRAG_ALLOW+ESN_NO 002 "westnet-eastnet" #7: IMPAIR: sending HASH payload with no data for outI1 1v1 "westnet-eastnet" #7: STATE_QUICK_I1: initiate whack: is Pluto running? connect() for "/run/pluto/pluto.ctl" failed (111 Connection refused) whack: is Pluto running? connect() for "/run/pluto/pluto.ctl" failed (111 Connection refused) west # # HASH payload badly calculated - should fail west # ipsec whack --impair v1-hash-payload:0 whack: is Pluto running? connect() for "/run/pluto/pluto.ctl" failed (111 Connection refused) west # ../bin/libreswan-up-down.sh westnet-eastnet -I 192.0.1.254 192.0.2.254 connect(pluto_ctl) failed: Connection refused west # echo done done west # west # # Delete west # ipsec whack --impair none whack: is Pluto running? connect() for "/run/pluto/pluto.ctl" failed (111 Connection refused) west # ipsec whack --impair revival whack: is Pluto running? connect() for "/run/pluto/pluto.ctl" failed (111 Connection refused) west # ipsec whack --impair suppress-retransmits whack: is Pluto running? connect() for "/run/pluto/pluto.ctl" failed (111 Connection refused) west # ipsec whack --impair v1-hash-exchange:delete whack: is Pluto running? connect() for "/run/pluto/pluto.ctl" failed (111 Connection refused) west # # HASH payload omited - should fail west # ipsec whack --impair v1-hash-payload:omit whack: is Pluto running? connect() for "/run/pluto/pluto.ctl" failed (111 Connection refused) west # ../bin/libreswan-up-down.sh westnet-eastnet -I 192.0.1.254 192.0.2.254 connect(pluto_ctl) failed: Connection refused west # # HASH payload empty - should fail west # ipsec whack --impair v1-hash-payload:empty whack: is Pluto running? connect() for "/run/pluto/pluto.ctl" failed (111 Connection refused) west # ../bin/libreswan-up-down.sh westnet-eastnet -I 192.0.1.254 192.0.2.254 connect(pluto_ctl) failed: Connection refused west # # HASH payload badly calculated - should fail west # ipsec whack --impair v1-hash-payload:0 whack: is Pluto running? connect() for "/run/pluto/pluto.ctl" failed (111 Connection refused) west # ../bin/libreswan-up-down.sh westnet-eastnet -I 192.0.1.254 192.0.2.254 connect(pluto_ctl) failed: Connection refused west # echo done done west # west # # XAUTH: west # ipsec whack --impair none whack: is Pluto running? connect() for "/run/pluto/pluto.ctl" failed (111 Connection refused) west # ipsec whack --impair revival whack: is Pluto running? connect() for "/run/pluto/pluto.ctl" failed (111 Connection refused) west # ipsec whack --impair suppress-retransmits whack: is Pluto running? connect() for "/run/pluto/pluto.ctl" failed (111 Connection refused) west # ipsec whack --impair v1-hash-exchange:xauth whack: is Pluto running? connect() for "/run/pluto/pluto.ctl" failed (111 Connection refused) west # # HASH payload omited - should fail west # ipsec whack --impair v1-hash-payload:omit whack: is Pluto running? connect() for "/run/pluto/pluto.ctl" failed (111 Connection refused) west # ../bin/libreswan-up-down.sh westnet-eastnet -I 192.0.1.254 192.0.2.254 connect(pluto_ctl) failed: Connection refused west # # HASH payload empty - should fail west # ipsec whack --impair v1-hash-payload:empty whack: is Pluto running? connect() for "/run/pluto/pluto.ctl" failed (111 Connection refused) west # ../bin/libreswan-up-down.sh westnet-eastnet -I 192.0.1.254 192.0.2.254 connect(pluto_ctl) failed: Connection refused west # # HASH payload badly calculated - should fail west # ipsec whack --impair v1-hash-payload:0 whack: is Pluto running? connect() for "/run/pluto/pluto.ctl" failed (111 Connection refused) west # ../bin/libreswan-up-down.sh westnet-eastnet -I 192.0.1.254 192.0.2.254 connect(pluto_ctl) failed: Connection refused west # echo done done west # west # # INFO west # ipsec whack --impair none whack: is Pluto running? connect() for "/run/pluto/pluto.ctl" failed (111 Connection refused) west # ipsec whack --impair revival whack: is Pluto running? connect() for "/run/pluto/pluto.ctl" failed (111 Connection refused) west # ipsec whack --impair suppress-retransmits whack: is Pluto running? connect() for "/run/pluto/pluto.ctl" failed (111 Connection refused) west # ipsec whack --impair v1-hash-exchange:notification whack: is Pluto running? connect() for "/run/pluto/pluto.ctl" failed (111 Connection refused) west # # HASH payload omited - should fail west # ipsec whack --impair v1-hash-payload:omit whack: is Pluto running? connect() for "/run/pluto/pluto.ctl" failed (111 Connection refused) west # ../bin/libreswan-up-down.sh westnet-eastnet -I 192.0.1.254 192.0.2.254 connect(pluto_ctl) failed: Connection refused west # # HASH payload empty - should fail west # ipsec whack --impair v1-hash-payload:empty whack: is Pluto running? connect() for "/run/pluto/pluto.ctl" failed (111 Connection refused) west # ../bin/libreswan-up-down.sh westnet-eastnet -I 192.0.1.254 192.0.2.254 connect(pluto_ctl) failed: Connection refused west # # HASH payload badly calculated - should fail west # ipsec whack --impair v1-hash-payload:0 whack: is Pluto running? connect() for "/run/pluto/pluto.ctl" failed (111 Connection refused) west # ../bin/libreswan-up-down.sh westnet-eastnet -I 192.0.1.254 192.0.2.254 connect(pluto_ctl) failed: Connection refused west # echo done done west # west # ipsec stop Redirecting to: [initsystem] Shutting down pluto IKE daemon whack: is Pluto running? connect() for "/run/pluto/pluto.ctl" failed (111 Connection refused) .......... Attempt to shut Pluto down failed! Trying kill /etc/init.d/ipsec: line 162: kill: p: invalid signal specification 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 (0x116) "westnet-eastnet" #1: Authenticated using RSA -- start message (HASH) | next payload type: ISAKMP_NEXT_HASH (0x8) | ***parse ISAKMP Hash Payload: | next payload type: ISAKMP_NEXT_SA (0x1) | length: 36 (0x24) | 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 (0x116) "westnet-eastnet" #3: Authenticated using RSA "westnet-eastnet" #4: IMPAIR: omitting HASH payload for outI1 "westnet-eastnet" #5: 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 (0x116) "westnet-eastnet" #6: Authenticated using RSA "westnet-eastnet" #7: IMPAIR: sending HASH payload with no data for outI1 west # ../bin/check-for-core.sh west # if [ -f /sbin/ausearch ]; then ausearch -r -m avc -ts recent ; fi