/testing/guestbin/swan-prep west # ipsec start Redirecting to: [initsystem] west # /testing/pluto/bin/wait-until-pluto-started west # ipsec auto --add westnet-eastnet-ikev2 002 added connection description "westnet-eastnet-ikev2" west # echo "initdone" initdone west # ipsec auto --up westnet-eastnet-ikev2 002 "westnet-eastnet-ikev2" #1: initiating v2 parent SA 1v2 "westnet-eastnet-ikev2" #1: initiate 1v2 "westnet-eastnet-ikev2" #1: STATE_PARENT_I1: sent v2I1, expected v2R1 1v2 "westnet-eastnet-ikev2" #2: STATE_PARENT_I2: sent v2I2, expected v2R2 {auth=IKEv2 cipher=AES_GCM_16_256 integ=n/a prf=HMAC_SHA2_512 group=MODP2048} 002 "westnet-eastnet-ikev2" #2: IKEv2 mode peer ID is ID_FQDN: '@east' 003 "westnet-eastnet-ikev2" #2: Authenticated using authby=secret 002 "westnet-eastnet-ikev2" #2: negotiated connection [192.0.1.0-192.0.1.255:0-65535 0] -> [192.0.2.0-192.0.2.255:0-65535 0] 004 "westnet-eastnet-ikev2" #2: STATE_V2_IPSEC_I: IPsec SA established tunnel mode {ESP=>0xESPESP <0xESPESP xfrm=AES_GCM_16_256-NONE NATOA=none NATD=none DPD=passive} west # sleep 5 west # ipsec status |grep STATE_ 000 #1: "westnet-eastnet-ikev2":500 STATE_PARENT_I3 (PARENT SA established); EVENT_SA_REKEY in XXs; newest ISAKMP; idle; 000 #2: "westnet-eastnet-ikev2":500 STATE_V2_IPSEC_I (IPsec SA established); EVENT_SA_REKEY in XXs; newest IPSEC; eroute owner; isakmp#1; idle; west # # rerunning --up should use CREATE_CHILD_SA west # ipsec auto --up westnet-eastnet-ikev2 1v2 "westnet-eastnet-ikev2" #3: STATE_V2_CREATE_I: sent IPsec Child req wait response 002 "westnet-eastnet-ikev2" #3: negotiated connection [192.0.1.0-192.0.1.255:0-65535 0] -> [192.0.2.0-192.0.2.255:0-65535 0] 004 "westnet-eastnet-ikev2" #3: STATE_V2_IPSEC_I: IPsec SA established tunnel mode {ESP=>0xESPESP <0xESPESP xfrm=AES_GCM_16_256-NONE-MODP2048 NATOA=none NATD=none DPD=passive} west # ipsec status |grep STATE_ 000 #1: "westnet-eastnet-ikev2":500 STATE_PARENT_I3 (PARENT SA established); EVENT_SA_REKEY in XXs; newest ISAKMP; idle; 000 #2: "westnet-eastnet-ikev2":500 STATE_V2_IPSEC_I (IPsec SA established); EVENT_SA_REKEY in XXs; isakmp#1; idle; 000 #3: "westnet-eastnet-ikev2":500 STATE_V2_IPSEC_I (IPsec SA established); EVENT_SA_REKEY in XXs; newest IPSEC; eroute owner; isakmp#1; idle; west # sleep 45 west # ipsec status |grep STATE_ 000 #2: "westnet-eastnet-ikev2":500 STATE_V2_IPSEC_I (IPsec SA established); EVENT_SA_REKEY in XXs; isakmp#5; idle; 000 #3: "westnet-eastnet-ikev2":500 STATE_V2_IPSEC_I (IPsec SA established); EVENT_SA_REKEY in XXs; newest IPSEC; eroute owner; isakmp#5; idle; 000 #5: "westnet-eastnet-ikev2":500 STATE_PARENT_I3 (PARENT SA established); EVENT_SA_REKEY in XXs; newest ISAKMP; idle; west # echo done done west # # Only the first two exchange types should be ISAKMP_v2_SA_INIT west # grep "exchange type:" /tmp/pluto.log | exchange type: ISAKMP_v2_IKE_SA_INIT (0x22) | exchange type: ISAKMP_v2_IKE_SA_INIT (0x22) | exchange type: ISAKMP_v2_IKE_AUTH (0x23) | exchange type: ISAKMP_v2_IKE_AUTH (0x23) | exchange type: ISAKMP_v2_CREATE_CHILD_SA (0x24) | exchange type: ISAKMP_v2_CREATE_CHILD_SA (0x24) | exchange type: ISAKMP_v2_CREATE_CHILD_SA (0x24) | exchange type: ISAKMP_v2_CREATE_CHILD_SA (0x24) | exchange type: ISAKMP_v2_INFORMATIONAL (0x25) | exchange type: ISAKMP_v2_INFORMATIONAL (0x25) | exchange type: ISAKMP_v2_CREATE_CHILD_SA (0x24) | exchange type: ISAKMP_v2_CREATE_CHILD_SA (0x24) | exchange type: ISAKMP_v2_INFORMATIONAL (0x25) | exchange type: ISAKMP_v2_INFORMATIONAL (0x25) west # west # ../bin/check-for-core.sh west # if [ -f /sbin/ausearch ]; then ausearch -r -m avc -ts recent ; fi