/testing/guestbin/swan-prep --x509 Preparing X.509 files kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-x509-02-smoketest\[root@west ikev2-x509-02-smoketest]# certutil -D -n east -d sql:/etc/ipsec.d kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-x509-02-smoketest\[root@west ikev2-x509-02-smoketest]# for cert in /testing/x509/pkcs12/mainca/west-*.p12; do pk12util -i $cert -w /testing/x509/nss-pw -d sql:/etc/ipsec.d; done pk12util: PKCS12 IMPORT SUCCESSFUL pk12util: PKCS12 IMPORT SUCCESSFUL pk12util: PKCS12 IMPORT SUCCESSFUL pk12util: PKCS12 IMPORT SUCCESSFUL pk12util: PKCS12 IMPORT SUCCESSFUL pk12util: PKCS12 IMPORT SUCCESSFUL pk12util: PKCS12 IMPORT SUCCESSFUL pk12util: PKCS12 IMPORT SUCCESSFUL pk12util: PKCS12 IMPORT SUCCESSFUL pk12util: PKCS12 IMPORT SUCCESSFUL pk12util: PKCS12 IMPORT SUCCESSFUL pk12util: PKCS12 IMPORT SUCCESSFUL pk12util: PKCS12 IMPORT SUCCESSFUL pk12util: PKCS12 IMPORT SUCCESSFUL pk12util: PKCS12 IMPORT SUCCESSFUL pk12util: PKCS12 IMPORT SUCCESSFUL pk12util: PKCS12 IMPORT SUCCESSFUL pk12util: PKCS12 IMPORT SUCCESSFUL kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-x509-02-smoketest\[root@west ikev2-x509-02-smoketest]# ipsec start Error: Peer netns reference is invalid. Error: Peer netns reference is invalid. Error: Peer netns reference is invalid. Error: Peer netns reference is invalid. Error: Peer netns reference is invalid. Error: Peer netns reference is invalid. Error: Peer netns reference is invalid. Redirecting to: /etc/init.d/ipsec start Error: Peer netns reference is invalid. Error: Peer netns reference is invalid. Error: Peer netns reference is invalid. Error: Peer netns reference is invalid. Error: Peer netns reference is invalid. Error: Peer netns reference is invalid. Error: Peer netns reference is invalid. Starting pluto IKE daemon for IPsec: kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-x509-02-smoketest\[root@west ikev2-x509-02-smoketest]# /testing/pluto/bin/wait-until-pluto-started kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-x509-02-smoketest\[root@west ikev2-x509-02-smoketest]# # down'ed conn must remain down kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-x509-02-smoketest\[root@west ikev2-x509-02-smoketest]# ipsec whack --impair revival kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-x509-02-smoketest\[root@west ikev2-x509-02-smoketest]# echo "initdone" initdone kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-x509-02-smoketest\[root@west ikev2-x509-02-smoketest]# # fail quick for -bad certs that are supposed to fail kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-x509-02-smoketest\[root@west ikev2-x509-02-smoketest]# ipsec whack --impair suppress-retransmits kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-x509-02-smoketest\[root@west ikev2-x509-02-smoketest]# # stock certificate test kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-x509-02-smoketest\[root@west ikev2-x509-02-smoketest]# ipsec auto --up west 002 "west" #1: initiating v2 parent SA 181 "west" #1: initiate 002 "west": constructed local IKE proposals for west (IKE SA initiator selecting KE): 1:IKE:ENCR=AES_GCM_C_256;PRF=HMAC_SHA2_512,HMAC_SHA2_256;INTEG=NONE;DH=MODP2048,MODP3072,MODP4096,MODP8192,ECP_256,ECP_384,ECP_521,CURVE25519 2:IKE:ENCR=AES_GCM_C_128;PRF=HMAC_SHA2_512,HMAC_SHA2_256;INTEG=NONE;DH=MODP2048,MODP3072,MODP4096,MODP8192,ECP_256,ECP_384,ECP_521,CURVE25519 3:IKE:ENCR=AES_CBC_256;PRF=HMAC_SHA2_512,HMAC_SHA2_256;INTEG=HMAC_SHA2_512_256,HMAC_SHA2_256_128;DH=MODP2048,MODP3072,MODP4096,MODP8192,ECP_256,ECP_384,ECP_521,CURVE25519 4:IKE:ENCR=AES_CBC_128;PRF=HMAC_SHA2_512,HMAC_SHA2_256;INTEG=HMAC_SHA2_512_256,HMAC_SHA2_256_128;DH=MODP2048,MODP3072,MODP4096,MODP8192,ECP_256,ECP_384,ECP_521,CURVE25519 181 "west" #1: STATE_PARENT_I1: sent v2I1, expected v2R1 002 "west" #1: IMPAIR: suppressing retransmits; scheduling timeout in 60 seconds 002 "west": constructed local ESP/AH proposals for west (IKE SA initiator emitting ESP/AH proposals): 1:ESP:ENCR=AES_GCM_C_256;INTEG=NONE;DH=NONE;ESN=DISABLED 2:ESP:ENCR=AES_GCM_C_128;INTEG=NONE;DH=NONE;ESN=DISABLED 3:ESP:ENCR=AES_CBC_256;INTEG=HMAC_SHA2_512_256,HMAC_SHA2_256_128;DH=NONE;ESN=DISABLED 4:ESP:ENCR=AES_CBC_128;INTEG=HMAC_SHA2_512_256,HMAC_SHA2_256_128;DH=NONE;ESN=DISABLED 182 "west" #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 "west" #2: IMPAIR: suppressing retransmits; scheduling timeout in 60 seconds 002 "west" #2: IKE SA authentication request rejected by peer: AUTHENTICATION_FAILED 000 "west" #2: scheduling retry attempt 1 of an unlimited number, but releasing whack kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-x509-02-smoketest\[root@west ikev2-x509-02-smoketest]# ipsec auto --delete west 002 "west": terminating SAs using this connection 002 "west" #2: deleting state (STATE_PARENT_I2) aged 0.072s and NOT sending notification 002 "west" #1: deleting state (STATE_PARENT_I2) aged 0.078s and NOT sending notification kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-x509-02-smoketest\[root@west ikev2-x509-02-smoketest]# # following tests should work kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-x509-02-smoketest\[root@west ikev2-x509-02-smoketest]# ipsec auto --up west-bcCritical 002 "west-bcCritical" #3: initiating v2 parent SA 181 "west-bcCritical" #3: initiate 002 "west-bcCritical": constructed local IKE proposals for west-bcCritical (IKE SA initiator selecting KE): 1:IKE:ENCR=AES_GCM_C_256;PRF=HMAC_SHA2_512,HMAC_SHA2_256;INTEG=NONE;DH=MODP2048,MODP3072,MODP4096,MODP8192,ECP_256,ECP_384,ECP_521,CURVE25519 2:IKE:ENCR=AES_GCM_C_128;PRF=HMAC_SHA2_512,HMAC_SHA2_256;INTEG=NONE;DH=MODP2048,MODP3072,MODP4096,MODP8192,ECP_256,ECP_384,ECP_521,CURVE25519 3:IKE:ENCR=AES_CBC_256;PRF=HMAC_SHA2_512,HMAC_SHA2_256;INTEG=HMAC_SHA2_512_256,HMAC_SHA2_256_128;DH=MODP2048,MODP3072,MODP4096,MODP8192,ECP_256,ECP_384,ECP_521,CURVE25519 4:IKE:ENCR=AES_CBC_128;PRF=HMAC_SHA2_512,HMAC_SHA2_256;INTEG=HMAC_SHA2_512_256,HMAC_SHA2_256_128;DH=MODP2048,MODP3072,MODP4096,MODP8192,ECP_256,ECP_384,ECP_521,CURVE25519 181 "west-bcCritical" #3: STATE_PARENT_I1: sent v2I1, expected v2R1 002 "west-bcCritical" #3: IMPAIR: suppressing retransmits; scheduling timeout in 60 seconds 002 "west-bcCritical": constructed local ESP/AH proposals for west-bcCritical (IKE SA initiator emitting ESP/AH proposals): 1:ESP:ENCR=AES_GCM_C_256;INTEG=NONE;DH=NONE;ESN=DISABLED 2:ESP:ENCR=AES_GCM_C_128;INTEG=NONE;DH=NONE;ESN=DISABLED 3:ESP:ENCR=AES_CBC_256;INTEG=HMAC_SHA2_512_256,HMAC_SHA2_256_128;DH=NONE;ESN=DISABLED 4:ESP:ENCR=AES_CBC_128;INTEG=HMAC_SHA2_512_256,HMAC_SHA2_256_128;DH=NONE;ESN=DISABLED 182 "west-bcCritical" #4: STATE_PARENT_I2: sent v2I2, expected v2R2 {auth=IKEv2 cipher=AES_GCM_16_256 integ=n/a prf=HMAC_SHA2_512 group=MODP2048} 002 "west-bcCritical" #4: IMPAIR: suppressing retransmits; scheduling timeout in 60 seconds 002 "west-bcCritical" #4: IKE SA authentication request rejected by peer: AUTHENTICATION_FAILED 000 "west-bcCritical" #4: scheduling retry attempt 1 of an unlimited number, but releasing whack kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-x509-02-smoketest\[root@west ikev2-x509-02-smoketest]# ipsec auto --delete west-bcCritical 002 "west-bcCritical": terminating SAs using this connection 002 "west-bcCritical" #4: deleting state (STATE_PARENT_I2) aged 0.075s and NOT sending notification 002 "west-bcCritical" #3: deleting state (STATE_PARENT_I2) aged 0.080s and NOT sending notification kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-x509-02-smoketest\[root@west ikev2-x509-02-smoketest]# sleep 2 kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-x509-02-smoketest\[root@west ikev2-x509-02-smoketest]# ipsec auto --up west-ekuOmit 002 "west-ekuOmit" #5: initiating v2 parent SA 181 "west-ekuOmit" #5: initiate 002 "west-ekuOmit": constructed local IKE proposals for west-ekuOmit (IKE SA initiator selecting KE): 1:IKE:ENCR=AES_GCM_C_256;PRF=HMAC_SHA2_512,HMAC_SHA2_256;INTEG=NONE;DH=MODP2048,MODP3072,MODP4096,MODP8192,ECP_256,ECP_384,ECP_521,CURVE25519 2:IKE:ENCR=AES_GCM_C_128;PRF=HMAC_SHA2_512,HMAC_SHA2_256;INTEG=NONE;DH=MODP2048,MODP3072,MODP4096,MODP8192,ECP_256,ECP_384,ECP_521,CURVE25519 3:IKE:ENCR=AES_CBC_256;PRF=HMAC_SHA2_512,HMAC_SHA2_256;INTEG=HMAC_SHA2_512_256,HMAC_SHA2_256_128;DH=MODP2048,MODP3072,MODP4096,MODP8192,ECP_256,ECP_384,ECP_521,CURVE25519 4:IKE:ENCR=AES_CBC_128;PRF=HMAC_SHA2_512,HMAC_SHA2_256;INTEG=HMAC_SHA2_512_256,HMAC_SHA2_256_128;DH=MODP2048,MODP3072,MODP4096,MODP8192,ECP_256,ECP_384,ECP_521,CURVE25519 181 "west-ekuOmit" #5: STATE_PARENT_I1: sent v2I1, expected v2R1 002 "west-ekuOmit" #5: IMPAIR: suppressing retransmits; scheduling timeout in 60 seconds 002 "west-ekuOmit": constructed local ESP/AH proposals for west-ekuOmit (IKE SA initiator emitting ESP/AH proposals): 1:ESP:ENCR=AES_GCM_C_256;INTEG=NONE;DH=NONE;ESN=DISABLED 2:ESP:ENCR=AES_GCM_C_128;INTEG=NONE;DH=NONE;ESN=DISABLED 3:ESP:ENCR=AES_CBC_256;INTEG=HMAC_SHA2_512_256,HMAC_SHA2_256_128;DH=NONE;ESN=DISABLED 4:ESP:ENCR=AES_CBC_128;INTEG=HMAC_SHA2_512_256,HMAC_SHA2_256_128;DH=NONE;ESN=DISABLED 182 "west-ekuOmit" #6: STATE_PARENT_I2: sent v2I2, expected v2R2 {auth=IKEv2 cipher=AES_GCM_16_256 integ=n/a prf=HMAC_SHA2_512 group=MODP2048} 002 "west-ekuOmit" #6: IMPAIR: suppressing retransmits; scheduling timeout in 60 seconds 002 "west-ekuOmit" #6: IKE SA authentication request rejected by peer: AUTHENTICATION_FAILED 000 "west-ekuOmit" #6: scheduling retry attempt 1 of an unlimited number, but releasing whack kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-x509-02-smoketest\[root@west ikev2-x509-02-smoketest]# ipsec auto --delete west-ekuOmit 002 "west-ekuOmit": terminating SAs using this connection 002 "west-ekuOmit" #6: deleting state (STATE_PARENT_I2) aged 0.070s and NOT sending notification 002 "west-ekuOmit" #5: deleting state (STATE_PARENT_I2) aged 0.076s and NOT sending notification kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-x509-02-smoketest\[root@west ikev2-x509-02-smoketest]# sleep 2 kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-x509-02-smoketest\[root@west ikev2-x509-02-smoketest]# ipsec auto --up west-bcOmit 002 "west-bcOmit" #7: initiating v2 parent SA 181 "west-bcOmit" #7: initiate 002 "west-bcOmit": constructed local IKE proposals for west-bcOmit (IKE SA initiator selecting KE): 1:IKE:ENCR=AES_GCM_C_256;PRF=HMAC_SHA2_512,HMAC_SHA2_256;INTEG=NONE;DH=MODP2048,MODP3072,MODP4096,MODP8192,ECP_256,ECP_384,ECP_521,CURVE25519 2:IKE:ENCR=AES_GCM_C_128;PRF=HMAC_SHA2_512,HMAC_SHA2_256;INTEG=NONE;DH=MODP2048,MODP3072,MODP4096,MODP8192,ECP_256,ECP_384,ECP_521,CURVE25519 3:IKE:ENCR=AES_CBC_256;PRF=HMAC_SHA2_512,HMAC_SHA2_256;INTEG=HMAC_SHA2_512_256,HMAC_SHA2_256_128;DH=MODP2048,MODP3072,MODP4096,MODP8192,ECP_256,ECP_384,ECP_521,CURVE25519 4:IKE:ENCR=AES_CBC_128;PRF=HMAC_SHA2_512,HMAC_SHA2_256;INTEG=HMAC_SHA2_512_256,HMAC_SHA2_256_128;DH=MODP2048,MODP3072,MODP4096,MODP8192,ECP_256,ECP_384,ECP_521,CURVE25519 181 "west-bcOmit" #7: STATE_PARENT_I1: sent v2I1, expected v2R1 002 "west-bcOmit" #7: IMPAIR: suppressing retransmits; scheduling timeout in 60 seconds 002 "west-bcOmit": constructed local ESP/AH proposals for west-bcOmit (IKE SA initiator emitting ESP/AH proposals): 1:ESP:ENCR=AES_GCM_C_256;INTEG=NONE;DH=NONE;ESN=DISABLED 2:ESP:ENCR=AES_GCM_C_128;INTEG=NONE;DH=NONE;ESN=DISABLED 3:ESP:ENCR=AES_CBC_256;INTEG=HMAC_SHA2_512_256,HMAC_SHA2_256_128;DH=NONE;ESN=DISABLED 4:ESP:ENCR=AES_CBC_128;INTEG=HMAC_SHA2_512_256,HMAC_SHA2_256_128;DH=NONE;ESN=DISABLED 182 "west-bcOmit" #8: STATE_PARENT_I2: sent v2I2, expected v2R2 {auth=IKEv2 cipher=AES_GCM_16_256 integ=n/a prf=HMAC_SHA2_512 group=MODP2048} 002 "west-bcOmit" #8: IMPAIR: suppressing retransmits; scheduling timeout in 60 seconds 002 "west-bcOmit" #8: IKE SA authentication request rejected by peer: AUTHENTICATION_FAILED 000 "west-bcOmit" #8: scheduling retry attempt 1 of an unlimited number, but releasing whack kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-x509-02-smoketest\[root@west ikev2-x509-02-smoketest]# ipsec auto --delete west-bcOmit 002 "west-bcOmit": terminating SAs using this connection 002 "west-bcOmit" #8: deleting state (STATE_PARENT_I2) aged 0.068s and NOT sending notification 002 "west-bcOmit" #7: deleting state (STATE_PARENT_I2) aged 0.073s and NOT sending notification kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-x509-02-smoketest\[root@west ikev2-x509-02-smoketest]# sleep 2 kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-x509-02-smoketest\[root@west ikev2-x509-02-smoketest]# ipsec auto --up west-ekuCritical-eku-ipsecIKE 002 "west-ekuCritical-eku-ipsecIKE" #9: initiating v2 parent SA 181 "west-ekuCritical-eku-ipsecIKE" #9: initiate 002 "west-ekuCritical-eku-ipsecIKE": constructed local IKE proposals for west-ekuCritical-eku-ipsecIKE (IKE SA initiator selecting KE): 1:IKE:ENCR=AES_GCM_C_256;PRF=HMAC_SHA2_512,HMAC_SHA2_256;INTEG=NONE;DH=MODP2048,MODP3072,MODP4096,MODP8192,ECP_256,ECP_384,ECP_521,CURVE25519 2:IKE:ENCR=AES_GCM_C_128;PRF=HMAC_SHA2_512,HMAC_SHA2_256;INTEG=NONE;DH=MODP2048,MODP3072,MODP4096,MODP8192,ECP_256,ECP_384,ECP_521,CURVE25519 3:IKE:ENCR=AES_CBC_256;PRF=HMAC_SHA2_512,HMAC_SHA2_256;INTEG=HMAC_SHA2_512_256,HMAC_SHA2_256_128;DH=MODP2048,MODP3072,MODP4096,MODP8192,ECP_256,ECP_384,ECP_521,CURVE25519 4:IKE:ENCR=AES_CBC_128;PRF=HMAC_SHA2_512,HMAC_SHA2_256;INTEG=HMAC_SHA2_512_256,HMAC_SHA2_256_128;DH=MODP2048,MODP3072,MODP4096,MODP8192,ECP_256,ECP_384,ECP_521,CURVE25519 181 "west-ekuCritical-eku-ipsecIKE" #9: STATE_PARENT_I1: sent v2I1, expected v2R1 002 "west-ekuCritical-eku-ipsecIKE" #9: IMPAIR: suppressing retransmits; scheduling timeout in 60 seconds 002 "west-ekuCritical-eku-ipsecIKE": constructed local ESP/AH proposals for west-ekuCritical-eku-ipsecIKE (IKE SA initiator emitting ESP/AH proposals): 1:ESP:ENCR=AES_GCM_C_256;INTEG=NONE;DH=NONE;ESN=DISABLED 2:ESP:ENCR=AES_GCM_C_128;INTEG=NONE;DH=NONE;ESN=DISABLED 3:ESP:ENCR=AES_CBC_256;INTEG=HMAC_SHA2_512_256,HMAC_SHA2_256_128;DH=NONE;ESN=DISABLED 4:ESP:ENCR=AES_CBC_128;INTEG=HMAC_SHA2_512_256,HMAC_SHA2_256_128;DH=NONE;ESN=DISABLED 182 "west-ekuCritical-eku-ipsecIKE" #10: STATE_PARENT_I2: sent v2I2, expected v2R2 {auth=IKEv2 cipher=AES_GCM_16_256 integ=n/a prf=HMAC_SHA2_512 group=MODP2048} 002 "west-ekuCritical-eku-ipsecIKE" #10: IMPAIR: suppressing retransmits; scheduling timeout in 60 seconds 002 "west-ekuCritical-eku-ipsecIKE" #10: IKE SA authentication request rejected by peer: AUTHENTICATION_FAILED 000 "west-ekuCritical-eku-ipsecIKE" #10: scheduling retry attempt 1 of an unlimited number, but releasing whack kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-x509-02-smoketest\[root@west ikev2-x509-02-smoketest]# ipsec auto --delete west-ekuCritical-eku-ipsecIKE 002 "west-ekuCritical-eku-ipsecIKE": terminating SAs using this connection 002 "west-ekuCritical-eku-ipsecIKE" #10: deleting state (STATE_PARENT_I2) aged 0.069s and NOT sending notification 002 "west-ekuCritical-eku-ipsecIKE" #9: deleting state (STATE_PARENT_I2) aged 0.074s and NOT sending notification kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-x509-02-smoketest\[root@west ikev2-x509-02-smoketest]# sleep 2 kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-x509-02-smoketest\[root@west ikev2-x509-02-smoketest]# ipsec auto --up west-eku-serverAuth 002 "west-eku-serverAuth" #11: initiating v2 parent SA 181 "west-eku-serverAuth" #11: initiate 002 "west-eku-serverAuth": constructed local IKE proposals for west-eku-serverAuth (IKE SA initiator selecting KE): 1:IKE:ENCR=AES_GCM_C_256;PRF=HMAC_SHA2_512,HMAC_SHA2_256;INTEG=NONE;DH=MODP2048,MODP3072,MODP4096,MODP8192,ECP_256,ECP_384,ECP_521,CURVE25519 2:IKE:ENCR=AES_GCM_C_128;PRF=HMAC_SHA2_512,HMAC_SHA2_256;INTEG=NONE;DH=MODP2048,MODP3072,MODP4096,MODP8192,ECP_256,ECP_384,ECP_521,CURVE25519 3:IKE:ENCR=AES_CBC_256;PRF=HMAC_SHA2_512,HMAC_SHA2_256;INTEG=HMAC_SHA2_512_256,HMAC_SHA2_256_128;DH=MODP2048,MODP3072,MODP4096,MODP8192,ECP_256,ECP_384,ECP_521,CURVE25519 4:IKE:ENCR=AES_CBC_128;PRF=HMAC_SHA2_512,HMAC_SHA2_256;INTEG=HMAC_SHA2_512_256,HMAC_SHA2_256_128;DH=MODP2048,MODP3072,MODP4096,MODP8192,ECP_256,ECP_384,ECP_521,CURVE25519 181 "west-eku-serverAuth" #11: STATE_PARENT_I1: sent v2I1, expected v2R1 002 "west-eku-serverAuth" #11: IMPAIR: suppressing retransmits; scheduling timeout in 60 seconds 002 "west-eku-serverAuth": constructed local ESP/AH proposals for west-eku-serverAuth (IKE SA initiator emitting ESP/AH proposals): 1:ESP:ENCR=AES_GCM_C_256;INTEG=NONE;DH=NONE;ESN=DISABLED 2:ESP:ENCR=AES_GCM_C_128;INTEG=NONE;DH=NONE;ESN=DISABLED 3:ESP:ENCR=AES_CBC_256;INTEG=HMAC_SHA2_512_256,HMAC_SHA2_256_128;DH=NONE;ESN=DISABLED 4:ESP:ENCR=AES_CBC_128;INTEG=HMAC_SHA2_512_256,HMAC_SHA2_256_128;DH=NONE;ESN=DISABLED 182 "west-eku-serverAuth" #12: STATE_PARENT_I2: sent v2I2, expected v2R2 {auth=IKEv2 cipher=AES_GCM_16_256 integ=n/a prf=HMAC_SHA2_512 group=MODP2048} 002 "west-eku-serverAuth" #12: IMPAIR: suppressing retransmits; scheduling timeout in 60 seconds 002 "west-eku-serverAuth" #12: IKE SA authentication request rejected by peer: AUTHENTICATION_FAILED 000 "west-eku-serverAuth" #12: scheduling retry attempt 1 of an unlimited number, but releasing whack kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-x509-02-smoketest\[root@west ikev2-x509-02-smoketest]# ipsec auto --delete west-eku-serverAuth 002 "west-eku-serverAuth": terminating SAs using this connection 002 "west-eku-serverAuth" #12: deleting state (STATE_PARENT_I2) aged 0.075s and NOT sending notification 002 "west-eku-serverAuth" #11: deleting state (STATE_PARENT_I2) aged 0.081s and NOT sending notification kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-x509-02-smoketest\[root@west ikev2-x509-02-smoketest]# sleep 2 kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-x509-02-smoketest\[root@west ikev2-x509-02-smoketest]# ipsec auto --up west-ku-nonRepudiation 002 "west-ku-nonRepudiation" #13: initiating v2 parent SA 181 "west-ku-nonRepudiation" #13: initiate 002 "west-ku-nonRepudiation": constructed local IKE proposals for west-ku-nonRepudiation (IKE SA initiator selecting KE): 1:IKE:ENCR=AES_GCM_C_256;PRF=HMAC_SHA2_512,HMAC_SHA2_256;INTEG=NONE;DH=MODP2048,MODP3072,MODP4096,MODP8192,ECP_256,ECP_384,ECP_521,CURVE25519 2:IKE:ENCR=AES_GCM_C_128;PRF=HMAC_SHA2_512,HMAC_SHA2_256;INTEG=NONE;DH=MODP2048,MODP3072,MODP4096,MODP8192,ECP_256,ECP_384,ECP_521,CURVE25519 3:IKE:ENCR=AES_CBC_256;PRF=HMAC_SHA2_512,HMAC_SHA2_256;INTEG=HMAC_SHA2_512_256,HMAC_SHA2_256_128;DH=MODP2048,MODP3072,MODP4096,MODP8192,ECP_256,ECP_384,ECP_521,CURVE25519 4:IKE:ENCR=AES_CBC_128;PRF=HMAC_SHA2_512,HMAC_SHA2_256;INTEG=HMAC_SHA2_512_256,HMAC_SHA2_256_128;DH=MODP2048,MODP3072,MODP4096,MODP8192,ECP_256,ECP_384,ECP_521,CURVE25519 181 "west-ku-nonRepudiation" #13: STATE_PARENT_I1: sent v2I1, expected v2R1 002 "west-ku-nonRepudiation" #13: IMPAIR: suppressing retransmits; scheduling timeout in 60 seconds 002 "west-ku-nonRepudiation": constructed local ESP/AH proposals for west-ku-nonRepudiation (IKE SA initiator emitting ESP/AH proposals): 1:ESP:ENCR=AES_GCM_C_256;INTEG=NONE;DH=NONE;ESN=DISABLED 2:ESP:ENCR=AES_GCM_C_128;INTEG=NONE;DH=NONE;ESN=DISABLED 3:ESP:ENCR=AES_CBC_256;INTEG=HMAC_SHA2_512_256,HMAC_SHA2_256_128;DH=NONE;ESN=DISABLED 4:ESP:ENCR=AES_CBC_128;INTEG=HMAC_SHA2_512_256,HMAC_SHA2_256_128;DH=NONE;ESN=DISABLED 182 "west-ku-nonRepudiation" #14: STATE_PARENT_I2: sent v2I2, expected v2R2 {auth=IKEv2 cipher=AES_GCM_16_256 integ=n/a prf=HMAC_SHA2_512 group=MODP2048} 002 "west-ku-nonRepudiation" #14: IMPAIR: suppressing retransmits; scheduling timeout in 60 seconds 002 "west-ku-nonRepudiation" #14: IKE SA authentication request rejected by peer: AUTHENTICATION_FAILED 000 "west-ku-nonRepudiation" #14: scheduling retry attempt 1 of an unlimited number, but releasing whack kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-x509-02-smoketest\[root@west ikev2-x509-02-smoketest]# ipsec auto --delete west-ku-nonRepudiation 002 "west-ku-nonRepudiation": terminating SAs using this connection 002 "west-ku-nonRepudiation" #14: deleting state (STATE_PARENT_I2) aged 0.072s and NOT sending notification 002 "west-ku-nonRepudiation" #13: deleting state (STATE_PARENT_I2) aged 0.078s and NOT sending notification kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-x509-02-smoketest\[root@west ikev2-x509-02-smoketest]# sleep 2 kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-x509-02-smoketest\[root@west ikev2-x509-02-smoketest]# ipsec auto --up west-sanCritical 002 "west-sanCritical" #15: initiating v2 parent SA 181 "west-sanCritical" #15: initiate 002 "west-sanCritical": constructed local IKE proposals for west-sanCritical (IKE SA initiator selecting KE): 1:IKE:ENCR=AES_GCM_C_256;PRF=HMAC_SHA2_512,HMAC_SHA2_256;INTEG=NONE;DH=MODP2048,MODP3072,MODP4096,MODP8192,ECP_256,ECP_384,ECP_521,CURVE25519 2:IKE:ENCR=AES_GCM_C_128;PRF=HMAC_SHA2_512,HMAC_SHA2_256;INTEG=NONE;DH=MODP2048,MODP3072,MODP4096,MODP8192,ECP_256,ECP_384,ECP_521,CURVE25519 3:IKE:ENCR=AES_CBC_256;PRF=HMAC_SHA2_512,HMAC_SHA2_256;INTEG=HMAC_SHA2_512_256,HMAC_SHA2_256_128;DH=MODP2048,MODP3072,MODP4096,MODP8192,ECP_256,ECP_384,ECP_521,CURVE25519 4:IKE:ENCR=AES_CBC_128;PRF=HMAC_SHA2_512,HMAC_SHA2_256;INTEG=HMAC_SHA2_512_256,HMAC_SHA2_256_128;DH=MODP2048,MODP3072,MODP4096,MODP8192,ECP_256,ECP_384,ECP_521,CURVE25519 181 "west-sanCritical" #15: STATE_PARENT_I1: sent v2I1, expected v2R1 002 "west-sanCritical" #15: IMPAIR: suppressing retransmits; scheduling timeout in 60 seconds 002 "west-sanCritical": constructed local ESP/AH proposals for west-sanCritical (IKE SA initiator emitting ESP/AH proposals): 1:ESP:ENCR=AES_GCM_C_256;INTEG=NONE;DH=NONE;ESN=DISABLED 2:ESP:ENCR=AES_GCM_C_128;INTEG=NONE;DH=NONE;ESN=DISABLED 3:ESP:ENCR=AES_CBC_256;INTEG=HMAC_SHA2_512_256,HMAC_SHA2_256_128;DH=NONE;ESN=DISABLED 4:ESP:ENCR=AES_CBC_128;INTEG=HMAC_SHA2_512_256,HMAC_SHA2_256_128;DH=NONE;ESN=DISABLED 182 "west-sanCritical" #16: STATE_PARENT_I2: sent v2I2, expected v2R2 {auth=IKEv2 cipher=AES_GCM_16_256 integ=n/a prf=HMAC_SHA2_512 group=MODP2048} 002 "west-sanCritical" #16: IMPAIR: suppressing retransmits; scheduling timeout in 60 seconds 002 "west-sanCritical" #16: IKE SA authentication request rejected by peer: AUTHENTICATION_FAILED 000 "west-sanCritical" #16: scheduling retry attempt 1 of an unlimited number, but releasing whack kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-x509-02-smoketest\[root@west ikev2-x509-02-smoketest]# ipsec auto --delete west-sanCritical 002 "west-sanCritical": terminating SAs using this connection 002 "west-sanCritical" #16: deleting state (STATE_PARENT_I2) aged 0.074s and NOT sending notification 002 "west-sanCritical" #15: deleting state (STATE_PARENT_I2) aged 0.080s and NOT sending notification kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-x509-02-smoketest\[root@west ikev2-x509-02-smoketest]# sleep 2 kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-x509-02-smoketest\[root@west ikev2-x509-02-smoketest]# # This one works now - older NSS versions relied on NSS TLS fallback kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-x509-02-smoketest\[root@west ikev2-x509-02-smoketest]# ipsec auto --up west-ekuCritical 002 "west-ekuCritical" #17: initiating v2 parent SA 181 "west-ekuCritical" #17: initiate 002 "west-ekuCritical": constructed local IKE proposals for west-ekuCritical (IKE SA initiator selecting KE): 1:IKE:ENCR=AES_GCM_C_256;PRF=HMAC_SHA2_512,HMAC_SHA2_256;INTEG=NONE;DH=MODP2048,MODP3072,MODP4096,MODP8192,ECP_256,ECP_384,ECP_521,CURVE25519 2:IKE:ENCR=AES_GCM_C_128;PRF=HMAC_SHA2_512,HMAC_SHA2_256;INTEG=NONE;DH=MODP2048,MODP3072,MODP4096,MODP8192,ECP_256,ECP_384,ECP_521,CURVE25519 3:IKE:ENCR=AES_CBC_256;PRF=HMAC_SHA2_512,HMAC_SHA2_256;INTEG=HMAC_SHA2_512_256,HMAC_SHA2_256_128;DH=MODP2048,MODP3072,MODP4096,MODP8192,ECP_256,ECP_384,ECP_521,CURVE25519 4:IKE:ENCR=AES_CBC_128;PRF=HMAC_SHA2_512,HMAC_SHA2_256;INTEG=HMAC_SHA2_512_256,HMAC_SHA2_256_128;DH=MODP2048,MODP3072,MODP4096,MODP8192,ECP_256,ECP_384,ECP_521,CURVE25519 181 "west-ekuCritical" #17: STATE_PARENT_I1: sent v2I1, expected v2R1 002 "west-ekuCritical" #17: IMPAIR: suppressing retransmits; scheduling timeout in 60 seconds 002 "west-ekuCritical": constructed local ESP/AH proposals for west-ekuCritical (IKE SA initiator emitting ESP/AH proposals): 1:ESP:ENCR=AES_GCM_C_256;INTEG=NONE;DH=NONE;ESN=DISABLED 2:ESP:ENCR=AES_GCM_C_128;INTEG=NONE;DH=NONE;ESN=DISABLED 3:ESP:ENCR=AES_CBC_256;INTEG=HMAC_SHA2_512_256,HMAC_SHA2_256_128;DH=NONE;ESN=DISABLED 4:ESP:ENCR=AES_CBC_128;INTEG=HMAC_SHA2_512_256,HMAC_SHA2_256_128;DH=NONE;ESN=DISABLED 182 "west-ekuCritical" #18: STATE_PARENT_I2: sent v2I2, expected v2R2 {auth=IKEv2 cipher=AES_GCM_16_256 integ=n/a prf=HMAC_SHA2_512 group=MODP2048} 002 "west-ekuCritical" #18: IMPAIR: suppressing retransmits; scheduling timeout in 60 seconds 002 "west-ekuCritical" #18: IKE SA authentication request rejected by peer: AUTHENTICATION_FAILED 000 "west-ekuCritical" #18: scheduling retry attempt 1 of an unlimited number, but releasing whack kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-x509-02-smoketest\[root@west ikev2-x509-02-smoketest]# ipsec auto --delete west-ekuCritical 002 "west-ekuCritical": terminating SAs using this connection 002 "west-ekuCritical" #18: deleting state (STATE_PARENT_I2) aged 0.070s and NOT sending notification 002 "west-ekuCritical" #17: deleting state (STATE_PARENT_I2) aged 0.075s and NOT sending notification kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-x509-02-smoketest\[root@west ikev2-x509-02-smoketest]# sleep 2 kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-x509-02-smoketest\[root@west ikev2-x509-02-smoketest]# ipsec auto --up west-kuCritical 002 "west-kuCritical" #19: initiating v2 parent SA 181 "west-kuCritical" #19: initiate 002 "west-kuCritical": constructed local IKE proposals for west-kuCritical (IKE SA initiator selecting KE): 1:IKE:ENCR=AES_GCM_C_256;PRF=HMAC_SHA2_512,HMAC_SHA2_256;INTEG=NONE;DH=MODP2048,MODP3072,MODP4096,MODP8192,ECP_256,ECP_384,ECP_521,CURVE25519 2:IKE:ENCR=AES_GCM_C_128;PRF=HMAC_SHA2_512,HMAC_SHA2_256;INTEG=NONE;DH=MODP2048,MODP3072,MODP4096,MODP8192,ECP_256,ECP_384,ECP_521,CURVE25519 3:IKE:ENCR=AES_CBC_256;PRF=HMAC_SHA2_512,HMAC_SHA2_256;INTEG=HMAC_SHA2_512_256,HMAC_SHA2_256_128;DH=MODP2048,MODP3072,MODP4096,MODP8192,ECP_256,ECP_384,ECP_521,CURVE25519 4:IKE:ENCR=AES_CBC_128;PRF=HMAC_SHA2_512,HMAC_SHA2_256;INTEG=HMAC_SHA2_512_256,HMAC_SHA2_256_128;DH=MODP2048,MODP3072,MODP4096,MODP8192,ECP_256,ECP_384,ECP_521,CURVE25519 181 "west-kuCritical" #19: STATE_PARENT_I1: sent v2I1, expected v2R1 002 "west-kuCritical" #19: IMPAIR: suppressing retransmits; scheduling timeout in 60 seconds 002 "west-kuCritical": constructed local ESP/AH proposals for west-kuCritical (IKE SA initiator emitting ESP/AH proposals): 1:ESP:ENCR=AES_GCM_C_256;INTEG=NONE;DH=NONE;ESN=DISABLED 2:ESP:ENCR=AES_GCM_C_128;INTEG=NONE;DH=NONE;ESN=DISABLED 3:ESP:ENCR=AES_CBC_256;INTEG=HMAC_SHA2_512_256,HMAC_SHA2_256_128;DH=NONE;ESN=DISABLED 4:ESP:ENCR=AES_CBC_128;INTEG=HMAC_SHA2_512_256,HMAC_SHA2_256_128;DH=NONE;ESN=DISABLED 182 "west-kuCritical" #20: STATE_PARENT_I2: sent v2I2, expected v2R2 {auth=IKEv2 cipher=AES_GCM_16_256 integ=n/a prf=HMAC_SHA2_512 group=MODP2048} 002 "west-kuCritical" #20: IMPAIR: suppressing retransmits; scheduling timeout in 60 seconds 002 "west-kuCritical" #20: IKE SA authentication request rejected by peer: AUTHENTICATION_FAILED 000 "west-kuCritical" #20: scheduling retry attempt 1 of an unlimited number, but releasing whack kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-x509-02-smoketest\[root@west ikev2-x509-02-smoketest]# ipsec auto --delete west-kuCritical 002 "west-kuCritical": terminating SAs using this connection 002 "west-kuCritical" #20: deleting state (STATE_PARENT_I2) aged 0.079s and NOT sending notification 002 "west-kuCritical" #19: deleting state (STATE_PARENT_I2) aged 0.086s and NOT sending notification kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-x509-02-smoketest\[root@west ikev2-x509-02-smoketest]# sleep 2 kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-x509-02-smoketest\[root@west ikev2-x509-02-smoketest]# ipsec auto --up west-kuOmit 002 "west-kuOmit" #21: initiating v2 parent SA 181 "west-kuOmit" #21: initiate 002 "west-kuOmit": constructed local IKE proposals for west-kuOmit (IKE SA initiator selecting KE): 1:IKE:ENCR=AES_GCM_C_256;PRF=HMAC_SHA2_512,HMAC_SHA2_256;INTEG=NONE;DH=MODP2048,MODP3072,MODP4096,MODP8192,ECP_256,ECP_384,ECP_521,CURVE25519 2:IKE:ENCR=AES_GCM_C_128;PRF=HMAC_SHA2_512,HMAC_SHA2_256;INTEG=NONE;DH=MODP2048,MODP3072,MODP4096,MODP8192,ECP_256,ECP_384,ECP_521,CURVE25519 3:IKE:ENCR=AES_CBC_256;PRF=HMAC_SHA2_512,HMAC_SHA2_256;INTEG=HMAC_SHA2_512_256,HMAC_SHA2_256_128;DH=MODP2048,MODP3072,MODP4096,MODP8192,ECP_256,ECP_384,ECP_521,CURVE25519 4:IKE:ENCR=AES_CBC_128;PRF=HMAC_SHA2_512,HMAC_SHA2_256;INTEG=HMAC_SHA2_512_256,HMAC_SHA2_256_128;DH=MODP2048,MODP3072,MODP4096,MODP8192,ECP_256,ECP_384,ECP_521,CURVE25519 181 "west-kuOmit" #21: STATE_PARENT_I1: sent v2I1, expected v2R1 002 "west-kuOmit" #21: IMPAIR: suppressing retransmits; scheduling timeout in 60 seconds 002 "west-kuOmit": constructed local ESP/AH proposals for west-kuOmit (IKE SA initiator emitting ESP/AH proposals): 1:ESP:ENCR=AES_GCM_C_256;INTEG=NONE;DH=NONE;ESN=DISABLED 2:ESP:ENCR=AES_GCM_C_128;INTEG=NONE;DH=NONE;ESN=DISABLED 3:ESP:ENCR=AES_CBC_256;INTEG=HMAC_SHA2_512_256,HMAC_SHA2_256_128;DH=NONE;ESN=DISABLED 4:ESP:ENCR=AES_CBC_128;INTEG=HMAC_SHA2_512_256,HMAC_SHA2_256_128;DH=NONE;ESN=DISABLED 182 "west-kuOmit" #22: STATE_PARENT_I2: sent v2I2, expected v2R2 {auth=IKEv2 cipher=AES_GCM_16_256 integ=n/a prf=HMAC_SHA2_512 group=MODP2048} 002 "west-kuOmit" #22: IMPAIR: suppressing retransmits; scheduling timeout in 60 seconds 002 "west-kuOmit" #22: IKE SA authentication request rejected by peer: AUTHENTICATION_FAILED 000 "west-kuOmit" #22: scheduling retry attempt 1 of an unlimited number, but releasing whack kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-x509-02-smoketest\[root@west ikev2-x509-02-smoketest]# ipsec auto --delete west-kuOmit 002 "west-kuOmit": terminating SAs using this connection 002 "west-kuOmit" #22: deleting state (STATE_PARENT_I2) aged 0.074s and NOT sending notification 002 "west-kuOmit" #21: deleting state (STATE_PARENT_I2) aged 0.081s and NOT sending notification kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-x509-02-smoketest\[root@west ikev2-x509-02-smoketest]# sleep 2 kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-x509-02-smoketest\[root@west ikev2-x509-02-smoketest]# ipsec auto --up west-eku-clientAuth 002 "west-eku-clientAuth" #23: initiating v2 parent SA 181 "west-eku-clientAuth" #23: initiate 002 "west-eku-clientAuth": constructed local IKE proposals for west-eku-clientAuth (IKE SA initiator selecting KE): 1:IKE:ENCR=AES_GCM_C_256;PRF=HMAC_SHA2_512,HMAC_SHA2_256;INTEG=NONE;DH=MODP2048,MODP3072,MODP4096,MODP8192,ECP_256,ECP_384,ECP_521,CURVE25519 2:IKE:ENCR=AES_GCM_C_128;PRF=HMAC_SHA2_512,HMAC_SHA2_256;INTEG=NONE;DH=MODP2048,MODP3072,MODP4096,MODP8192,ECP_256,ECP_384,ECP_521,CURVE25519 3:IKE:ENCR=AES_CBC_256;PRF=HMAC_SHA2_512,HMAC_SHA2_256;INTEG=HMAC_SHA2_512_256,HMAC_SHA2_256_128;DH=MODP2048,MODP3072,MODP4096,MODP8192,ECP_256,ECP_384,ECP_521,CURVE25519 4:IKE:ENCR=AES_CBC_128;PRF=HMAC_SHA2_512,HMAC_SHA2_256;INTEG=HMAC_SHA2_512_256,HMAC_SHA2_256_128;DH=MODP2048,MODP3072,MODP4096,MODP8192,ECP_256,ECP_384,ECP_521,CURVE25519 181 "west-eku-clientAuth" #23: STATE_PARENT_I1: sent v2I1, expected v2R1 002 "west-eku-clientAuth" #23: IMPAIR: suppressing retransmits; scheduling timeout in 60 seconds 002 "west-eku-clientAuth": constructed local ESP/AH proposals for west-eku-clientAuth (IKE SA initiator emitting ESP/AH proposals): 1:ESP:ENCR=AES_GCM_C_256;INTEG=NONE;DH=NONE;ESN=DISABLED 2:ESP:ENCR=AES_GCM_C_128;INTEG=NONE;DH=NONE;ESN=DISABLED 3:ESP:ENCR=AES_CBC_256;INTEG=HMAC_SHA2_512_256,HMAC_SHA2_256_128;DH=NONE;ESN=DISABLED 4:ESP:ENCR=AES_CBC_128;INTEG=HMAC_SHA2_512_256,HMAC_SHA2_256_128;DH=NONE;ESN=DISABLED 182 "west-eku-clientAuth" #24: STATE_PARENT_I2: sent v2I2, expected v2R2 {auth=IKEv2 cipher=AES_GCM_16_256 integ=n/a prf=HMAC_SHA2_512 group=MODP2048} 002 "west-eku-clientAuth" #24: IMPAIR: suppressing retransmits; scheduling timeout in 60 seconds 002 "west-eku-clientAuth" #24: IKE SA authentication request rejected by peer: AUTHENTICATION_FAILED 000 "west-eku-clientAuth" #24: scheduling retry attempt 1 of an unlimited number, but releasing whack kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-x509-02-smoketest\[root@west ikev2-x509-02-smoketest]# ipsec auto --delete west-eku-clientAuth 002 "west-eku-clientAuth": terminating SAs using this connection 002 "west-eku-clientAuth" #24: deleting state (STATE_PARENT_I2) aged 0.073s and NOT sending notification 002 "west-eku-clientAuth" #23: deleting state (STATE_PARENT_I2) aged 0.078s and NOT sending notification kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-x509-02-smoketest\[root@west ikev2-x509-02-smoketest]# sleep 2 kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-x509-02-smoketest\[root@west ikev2-x509-02-smoketest]# ipsec auto --up west-eku-ipsecIKE 002 "west-eku-ipsecIKE" #25: initiating v2 parent SA 181 "west-eku-ipsecIKE" #25: initiate 002 "west-eku-ipsecIKE": constructed local IKE proposals for west-eku-ipsecIKE (IKE SA initiator selecting KE): 1:IKE:ENCR=AES_GCM_C_256;PRF=HMAC_SHA2_512,HMAC_SHA2_256;INTEG=NONE;DH=MODP2048,MODP3072,MODP4096,MODP8192,ECP_256,ECP_384,ECP_521,CURVE25519 2:IKE:ENCR=AES_GCM_C_128;PRF=HMAC_SHA2_512,HMAC_SHA2_256;INTEG=NONE;DH=MODP2048,MODP3072,MODP4096,MODP8192,ECP_256,ECP_384,ECP_521,CURVE25519 3:IKE:ENCR=AES_CBC_256;PRF=HMAC_SHA2_512,HMAC_SHA2_256;INTEG=HMAC_SHA2_512_256,HMAC_SHA2_256_128;DH=MODP2048,MODP3072,MODP4096,MODP8192,ECP_256,ECP_384,ECP_521,CURVE25519 4:IKE:ENCR=AES_CBC_128;PRF=HMAC_SHA2_512,HMAC_SHA2_256;INTEG=HMAC_SHA2_512_256,HMAC_SHA2_256_128;DH=MODP2048,MODP3072,MODP4096,MODP8192,ECP_256,ECP_384,ECP_521,CURVE25519 181 "west-eku-ipsecIKE" #25: STATE_PARENT_I1: sent v2I1, expected v2R1 002 "west-eku-ipsecIKE" #25: IMPAIR: suppressing retransmits; scheduling timeout in 60 seconds 002 "west-eku-ipsecIKE": constructed local ESP/AH proposals for west-eku-ipsecIKE (IKE SA initiator emitting ESP/AH proposals): 1:ESP:ENCR=AES_GCM_C_256;INTEG=NONE;DH=NONE;ESN=DISABLED 2:ESP:ENCR=AES_GCM_C_128;INTEG=NONE;DH=NONE;ESN=DISABLED 3:ESP:ENCR=AES_CBC_256;INTEG=HMAC_SHA2_512_256,HMAC_SHA2_256_128;DH=NONE;ESN=DISABLED 4:ESP:ENCR=AES_CBC_128;INTEG=HMAC_SHA2_512_256,HMAC_SHA2_256_128;DH=NONE;ESN=DISABLED 182 "west-eku-ipsecIKE" #26: STATE_PARENT_I2: sent v2I2, expected v2R2 {auth=IKEv2 cipher=AES_GCM_16_256 integ=n/a prf=HMAC_SHA2_512 group=MODP2048} 002 "west-eku-ipsecIKE" #26: IMPAIR: suppressing retransmits; scheduling timeout in 60 seconds 002 "west-eku-ipsecIKE" #26: IKE SA authentication request rejected by peer: AUTHENTICATION_FAILED 000 "west-eku-ipsecIKE" #26: scheduling retry attempt 1 of an unlimited number, but releasing whack kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-x509-02-smoketest\[root@west ikev2-x509-02-smoketest]# ipsec auto --delete west-eku-ipsecIKE 002 "west-eku-ipsecIKE": terminating SAs using this connection 002 "west-eku-ipsecIKE" #26: deleting state (STATE_PARENT_I2) aged 0.072s and NOT sending notification 002 "west-eku-ipsecIKE" #25: deleting state (STATE_PARENT_I2) aged 0.078s and NOT sending notification kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-x509-02-smoketest\[root@west ikev2-x509-02-smoketest]# sleep 2 kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-x509-02-smoketest\[root@west ikev2-x509-02-smoketest]# ipsec auto --up west-ku-keyAgreement-digitalSignature 002 "west-ku-keyAgreement-digitalSignature" #27: initiating v2 parent SA 181 "west-ku-keyAgreement-digitalSignature" #27: initiate 002 "west-ku-keyAgreement-digitalSignature": constructed local IKE proposals for west-ku-keyAgreement-digitalSignature (IKE SA initiator selecting KE): 1:IKE:ENCR=AES_GCM_C_256;PRF=HMAC_SHA2_512,HMAC_SHA2_256;INTEG=NONE;DH=MODP2048,MODP3072,MODP4096,MODP8192,ECP_256,ECP_384,ECP_521,CURVE25519 2:IKE:ENCR=AES_GCM_C_128;PRF=HMAC_SHA2_512,HMAC_SHA2_256;INTEG=NONE;DH=MODP2048,MODP3072,MODP4096,MODP8192,ECP_256,ECP_384,ECP_521,CURVE25519 3:IKE:ENCR=AES_CBC_256;PRF=HMAC_SHA2_512,HMAC_SHA2_256;INTEG=HMAC_SHA2_512_256,HMAC_SHA2_256_128;DH=MODP2048,MODP3072,MODP4096,MODP8192,ECP_256,ECP_384,ECP_521,CURVE25519 4:IKE:ENCR=AES_CBC_128;PRF=HMAC_SHA2_512,HMAC_SHA2_256;INTEG=HMAC_SHA2_512_256,HMAC_SHA2_256_128;DH=MODP2048,MODP3072,MODP4096,MODP8192,ECP_256,ECP_384,ECP_521,CURVE25519 181 "west-ku-keyAgreement-digitalSignature" #27: STATE_PARENT_I1: sent v2I1, expected v2R1 002 "west-ku-keyAgreement-digitalSignature" #27: IMPAIR: suppressing retransmits; scheduling timeout in 60 seconds 002 "west-ku-keyAgreement-digitalSignature": constructed local ESP/AH proposals for west-ku-keyAgreement-digitalSignature (IKE SA initiator emitting ESP/AH proposals): 1:ESP:ENCR=AES_GCM_C_256;INTEG=NONE;DH=NONE;ESN=DISABLED 2:ESP:ENCR=AES_GCM_C_128;INTEG=NONE;DH=NONE;ESN=DISABLED 3:ESP:ENCR=AES_CBC_256;INTEG=HMAC_SHA2_512_256,HMAC_SHA2_256_128;DH=NONE;ESN=DISABLED 4:ESP:ENCR=AES_CBC_128;INTEG=HMAC_SHA2_512_256,HMAC_SHA2_256_128;DH=NONE;ESN=DISABLED 182 "west-ku-keyAgreement-digitalSignature" #28: STATE_PARENT_I2: sent v2I2, expected v2R2 {auth=IKEv2 cipher=AES_GCM_16_256 integ=n/a prf=HMAC_SHA2_512 group=MODP2048} 002 "west-ku-keyAgreement-digitalSignature" #28: IMPAIR: suppressing retransmits; scheduling timeout in 60 seconds 002 "west-ku-keyAgreement-digitalSignature" #28: IKE SA authentication request rejected by peer: AUTHENTICATION_FAILED 000 "west-ku-keyAgreement-digitalSignature" #28: scheduling retry attempt 1 of an unlimited number, but releasing whack kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-x509-02-smoketest\[root@west ikev2-x509-02-smoketest]# ipsec auto --delete west-ku-keyAgreement-digitalSignature 002 "west-ku-keyAgreement-digitalSignature": terminating SAs using this connection 002 "west-ku-keyAgreement-digitalSignature" #28: deleting state (STATE_PARENT_I2) aged 0.074s and NOT sending notification 002 "west-ku-keyAgreement-digitalSignature" #27: deleting state (STATE_PARENT_I2) aged 0.080s and NOT sending notification kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-x509-02-smoketest\[root@west ikev2-x509-02-smoketest]# sleep 2 kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-x509-02-smoketest\[root@west ikev2-x509-02-smoketest]# # fails on older versions of NSS only kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-x509-02-smoketest\[root@west ikev2-x509-02-smoketest]# ipsec auto --up west-ekuCritical-eku-emailProtection 002 "west-ekuCritical-eku-emailProtection" #29: initiating v2 parent SA 181 "west-ekuCritical-eku-emailProtection" #29: initiate 002 "west-ekuCritical-eku-emailProtection": constructed local IKE proposals for west-ekuCritical-eku-emailProtection (IKE SA initiator selecting KE): 1:IKE:ENCR=AES_GCM_C_256;PRF=HMAC_SHA2_512,HMAC_SHA2_256;INTEG=NONE;DH=MODP2048,MODP3072,MODP4096,MODP8192,ECP_256,ECP_384,ECP_521,CURVE25519 2:IKE:ENCR=AES_GCM_C_128;PRF=HMAC_SHA2_512,HMAC_SHA2_256;INTEG=NONE;DH=MODP2048,MODP3072,MODP4096,MODP8192,ECP_256,ECP_384,ECP_521,CURVE25519 3:IKE:ENCR=AES_CBC_256;PRF=HMAC_SHA2_512,HMAC_SHA2_256;INTEG=HMAC_SHA2_512_256,HMAC_SHA2_256_128;DH=MODP2048,MODP3072,MODP4096,MODP8192,ECP_256,ECP_384,ECP_521,CURVE25519 4:IKE:ENCR=AES_CBC_128;PRF=HMAC_SHA2_512,HMAC_SHA2_256;INTEG=HMAC_SHA2_512_256,HMAC_SHA2_256_128;DH=MODP2048,MODP3072,MODP4096,MODP8192,ECP_256,ECP_384,ECP_521,CURVE25519 181 "west-ekuCritical-eku-emailProtection" #29: STATE_PARENT_I1: sent v2I1, expected v2R1 002 "west-ekuCritical-eku-emailProtection" #29: IMPAIR: suppressing retransmits; scheduling timeout in 60 seconds 002 "west-ekuCritical-eku-emailProtection": constructed local ESP/AH proposals for west-ekuCritical-eku-emailProtection (IKE SA initiator emitting ESP/AH proposals): 1:ESP:ENCR=AES_GCM_C_256;INTEG=NONE;DH=NONE;ESN=DISABLED 2:ESP:ENCR=AES_GCM_C_128;INTEG=NONE;DH=NONE;ESN=DISABLED 3:ESP:ENCR=AES_CBC_256;INTEG=HMAC_SHA2_512_256,HMAC_SHA2_256_128;DH=NONE;ESN=DISABLED 4:ESP:ENCR=AES_CBC_128;INTEG=HMAC_SHA2_512_256,HMAC_SHA2_256_128;DH=NONE;ESN=DISABLED 182 "west-ekuCritical-eku-emailProtection" #30: STATE_PARENT_I2: sent v2I2, expected v2R2 {auth=IKEv2 cipher=AES_GCM_16_256 integ=n/a prf=HMAC_SHA2_512 group=MODP2048} 002 "west-ekuCritical-eku-emailProtection" #30: IMPAIR: suppressing retransmits; scheduling timeout in 60 seconds 002 "west-ekuCritical-eku-emailProtection" #30: IKE SA authentication request rejected by peer: AUTHENTICATION_FAILED 000 "west-ekuCritical-eku-emailProtection" #30: scheduling retry attempt 1 of an unlimited number, but releasing whack kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-x509-02-smoketest\[root@west ikev2-x509-02-smoketest]# ipsec auto --delete west-ekuCritical-eku-emailProtection 002 "west-ekuCritical-eku-emailProtection": terminating SAs using this connection 002 "west-ekuCritical-eku-emailProtection" #30: deleting state (STATE_PARENT_I2) aged 0.082s and NOT sending notification 002 "west-ekuCritical-eku-emailProtection" #29: deleting state (STATE_PARENT_I2) aged 0.088s and NOT sending notification kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-x509-02-smoketest\[root@west ikev2-x509-02-smoketest]# sleep 2 kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-x509-02-smoketest\[root@west ikev2-x509-02-smoketest]# # following tests should fail (but it does not?) kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-x509-02-smoketest\[root@west ikev2-x509-02-smoketest]# ipsec auto --up west-ekuBOGUS-bad 002 "west-ekuBOGUS-bad" #31: initiating v2 parent SA 181 "west-ekuBOGUS-bad" #31: initiate 002 "west-ekuBOGUS-bad": constructed local IKE proposals for west-ekuBOGUS-bad (IKE SA initiator selecting KE): 1:IKE:ENCR=AES_GCM_C_256;PRF=HMAC_SHA2_512,HMAC_SHA2_256;INTEG=NONE;DH=MODP2048,MODP3072,MODP4096,MODP8192,ECP_256,ECP_384,ECP_521,CURVE25519 2:IKE:ENCR=AES_GCM_C_128;PRF=HMAC_SHA2_512,HMAC_SHA2_256;INTEG=NONE;DH=MODP2048,MODP3072,MODP4096,MODP8192,ECP_256,ECP_384,ECP_521,CURVE25519 3:IKE:ENCR=AES_CBC_256;PRF=HMAC_SHA2_512,HMAC_SHA2_256;INTEG=HMAC_SHA2_512_256,HMAC_SHA2_256_128;DH=MODP2048,MODP3072,MODP4096,MODP8192,ECP_256,ECP_384,ECP_521,CURVE25519 4:IKE:ENCR=AES_CBC_128;PRF=HMAC_SHA2_512,HMAC_SHA2_256;INTEG=HMAC_SHA2_512_256,HMAC_SHA2_256_128;DH=MODP2048,MODP3072,MODP4096,MODP8192,ECP_256,ECP_384,ECP_521,CURVE25519 181 "west-ekuBOGUS-bad" #31: STATE_PARENT_I1: sent v2I1, expected v2R1 002 "west-ekuBOGUS-bad" #31: IMPAIR: suppressing retransmits; scheduling timeout in 60 seconds 002 "west-ekuBOGUS-bad": constructed local ESP/AH proposals for west-ekuBOGUS-bad (IKE SA initiator emitting ESP/AH proposals): 1:ESP:ENCR=AES_GCM_C_256;INTEG=NONE;DH=NONE;ESN=DISABLED 2:ESP:ENCR=AES_GCM_C_128;INTEG=NONE;DH=NONE;ESN=DISABLED 3:ESP:ENCR=AES_CBC_256;INTEG=HMAC_SHA2_512_256,HMAC_SHA2_256_128;DH=NONE;ESN=DISABLED 4:ESP:ENCR=AES_CBC_128;INTEG=HMAC_SHA2_512_256,HMAC_SHA2_256_128;DH=NONE;ESN=DISABLED 182 "west-ekuBOGUS-bad" #32: STATE_PARENT_I2: sent v2I2, expected v2R2 {auth=IKEv2 cipher=AES_GCM_16_256 integ=n/a prf=HMAC_SHA2_512 group=MODP2048} 002 "west-ekuBOGUS-bad" #32: IMPAIR: suppressing retransmits; scheduling timeout in 60 seconds 002 "west-ekuBOGUS-bad" #32: IKE SA authentication request rejected by peer: AUTHENTICATION_FAILED 000 "west-ekuBOGUS-bad" #32: scheduling retry attempt 1 of an unlimited number, but releasing whack kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-x509-02-smoketest\[root@west ikev2-x509-02-smoketest]# ipsec auto --delete west-ekuBOGUS-bad 002 "west-ekuBOGUS-bad": terminating SAs using this connection 002 "west-ekuBOGUS-bad" #32: deleting state (STATE_PARENT_I2) aged 0.090s and NOT sending notification 002 "west-ekuBOGUS-bad" #31: deleting state (STATE_PARENT_I2) aged 0.100s and NOT sending notification kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-x509-02-smoketest\[root@west ikev2-x509-02-smoketest]# sleep 2 kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-x509-02-smoketest\[root@west ikev2-x509-02-smoketest]# ipsec auto --up west-ku-keyAgreement-bad 000 initiating all conns with alias='west-ku-keyAgreement-bad' 021 no connection named "west-ku-keyAgreement-bad" kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-x509-02-smoketest\[root@west ikev2-x509-02-smoketest 21]# >>>>>>>>>>cutnonzeroexit>>>>>>>>>> exit status 21 westrun.sh 'ipsec auto --up west-ku-keyAgreement-bad' <<<<<<<<<>>>>>>>>>cutnonzeroexit>>>>>>>>>> exit status 1 final.sh 'grep profile /tmp/pluto.log | grep -v Starting' <<<<<<<<< 000 sbindir=/usr/local/sbin, libexecdir=/usr/local/libexec/ipsec 000 pluto_version=v3.28-685-gbfd5aef521-master-s2, pluto_vendorid=OE-Libreswan-v3.28-685, audit-log=yes 000 nhelpers=-1, uniqueids=yes, dnssec-enable=yes, perpeerlog=no, logappend=no, logip=yes, shuntlifetime=900s, xfrmlifetime=30s 000 ddos-cookies-threshold=50000, ddos-max-halfopen=25000, ddos-mode=auto 000 ikeport=500, ikebuf=0, msg_errqueue=yes, strictcrlpolicy=no, crlcheckinterval=0, listen=, nflog-all=0 000 ocsp-enable=no, ocsp-strict=no, ocsp-timeout=2, ocsp-uri= 000 ocsp-trust-name= 000 ocsp-cache-size=1000, ocsp-cache-min-age=3600, ocsp-cache-max-age=86400, ocsp-method=get 000 global-redirect=no, global-redirect-to= 000 secctx-attr-type=32001 000 debug: base+cpu-usage impair: suppress-retransmitsrevival 000 000 nat-traversal=yes, keep-alive=20, nat-ikeport=4500 000 virtual-private (%priv): 000 000 Kernel algorithms supported: 000 000 algorithm ESP encrypt: name=3DES_CBC, keysizemin=192, keysizemax=192 000 algorithm ESP encrypt: name=AES_CBC, keysizemin=128, keysizemax=256 000 algorithm ESP encrypt: name=AES_CCM_12, keysizemin=128, keysizemax=256 000 algorithm ESP encrypt: name=AES_CCM_16, keysizemin=128, keysizemax=256 000 algorithm ESP encrypt: name=AES_CCM_8, keysizemin=128, keysizemax=256 000 algorithm ESP encrypt: name=AES_CTR, keysizemin=128, keysizemax=256 000 algorithm ESP encrypt: name=AES_GCM_12, keysizemin=128, keysizemax=256 000 algorithm ESP encrypt: name=AES_GCM_16, keysizemin=128, keysizemax=256 000 algorithm ESP encrypt: name=AES_GCM_8, keysizemin=128, keysizemax=256 000 algorithm ESP encrypt: name=CAMELLIA_CBC, keysizemin=128, keysizemax=256 000 algorithm ESP encrypt: name=CHACHA20_POLY1305, keysizemin=256, keysizemax=256 000 algorithm ESP encrypt: name=NULL, keysizemin=0, keysizemax=0 000 algorithm ESP encrypt: name=NULL_AUTH_AES_GMAC, keysizemin=128, keysizemax=256 000 algorithm ESP encrypt: name=SERPENT_CBC, keysizemin=128, keysizemax=256 000 algorithm ESP encrypt: name=TWOFISH_CBC, keysizemin=128, keysizemax=256 000 algorithm AH/ESP auth: name=AES_CMAC_96, key-length=128 000 algorithm AH/ESP auth: name=AES_XCBC_96, key-length=128 000 algorithm AH/ESP auth: name=HMAC_MD5_96, key-length=128 000 algorithm AH/ESP auth: name=HMAC_SHA1_96, key-length=160 000 algorithm AH/ESP auth: name=HMAC_SHA2_256_128, key-length=256 000 algorithm AH/ESP auth: name=HMAC_SHA2_256_TRUNCBUG, key-length=256 000 algorithm AH/ESP auth: name=HMAC_SHA2_384_192, key-length=384 000 algorithm AH/ESP auth: name=HMAC_SHA2_512_256, key-length=512 000 algorithm AH/ESP auth: name=NONE, key-length=0 000 000 IKE algorithms supported: 000 000 algorithm IKE encrypt: v1id=5, v1name=OAKLEY_3DES_CBC, v2id=3, v2name=3DES, blocksize=8, keydeflen=192 000 algorithm IKE encrypt: v1id=8, v1name=OAKLEY_CAMELLIA_CBC, v2id=23, v2name=CAMELLIA_CBC, blocksize=16, keydeflen=128 000 algorithm IKE encrypt: v1id=-1, v1name=n/a, v2id=20, v2name=AES_GCM_C, blocksize=16, keydeflen=128 000 algorithm IKE encrypt: v1id=-1, v1name=n/a, v2id=19, v2name=AES_GCM_B, blocksize=16, keydeflen=128 000 algorithm IKE encrypt: v1id=-1, v1name=n/a, v2id=18, v2name=AES_GCM_A, blocksize=16, keydeflen=128 000 algorithm IKE encrypt: v1id=13, v1name=OAKLEY_AES_CTR, v2id=13, v2name=AES_CTR, blocksize=16, keydeflen=128 000 algorithm IKE encrypt: v1id=7, v1name=OAKLEY_AES_CBC, v2id=12, v2name=AES_CBC, blocksize=16, keydeflen=128 000 algorithm IKE encrypt: v1id=65004, v1name=OAKLEY_SERPENT_CBC, v2id=65004, v2name=SERPENT_CBC, blocksize=16, keydeflen=128 000 algorithm IKE encrypt: v1id=65005, v1name=OAKLEY_TWOFISH_CBC, v2id=65005, v2name=TWOFISH_CBC, blocksize=16, keydeflen=128 000 algorithm IKE encrypt: v1id=65289, v1name=OAKLEY_TWOFISH_CBC_SSH, v2id=65289, v2name=TWOFISH_CBC_SSH, blocksize=16, keydeflen=128 000 algorithm IKE encrypt: v1id=-1, v1name=n/a, v2id=28, v2name=CHACHA20_POLY1305, blocksize=16, keydeflen=256 000 algorithm IKE PRF: name=HMAC_MD5, hashlen=16 000 algorithm IKE PRF: name=HMAC_SHA1, hashlen=20 000 algorithm IKE PRF: name=HMAC_SHA2_256, hashlen=32 000 algorithm IKE PRF: name=HMAC_SHA2_384, hashlen=48 000 algorithm IKE PRF: name=HMAC_SHA2_512, hashlen=64 000 algorithm IKE PRF: name=AES_XCBC, hashlen=16 000 algorithm IKE DH Key Exchange: name=MODP1536, bits=1536 000 algorithm IKE DH Key Exchange: name=MODP2048, bits=2048 000 algorithm IKE DH Key Exchange: name=MODP3072, bits=3072 000 algorithm IKE DH Key Exchange: name=MODP4096, bits=4096 000 algorithm IKE DH Key Exchange: name=MODP6144, bits=6144 000 algorithm IKE DH Key Exchange: name=MODP8192, bits=8192 000 algorithm IKE DH Key Exchange: name=DH19, bits=512 000 algorithm IKE DH Key Exchange: name=DH20, bits=768 000 algorithm IKE DH Key Exchange: name=DH21, bits=1056 000 algorithm IKE DH Key Exchange: name=DH31, bits=256 000 000 stats db_ops: {curr_cnt, total_cnt, maxsz} :context={0,0,0} trans={0,0,0} attrs={0,0,0} 000 000 Connection list: 000 000 Total IPsec connections: loaded 0, active 0 000 000 State Information: DDoS cookies not required, Accepting new IKE connections 000 IKE SAs: total(0), half-open(0), open(0), authenticated(0), anonymous(0) 000 IPsec SAs: total(0), authenticated(0), anonymous(0) 000 000 Bare Shunt list: 000 kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-x509-02-smoketest\[root@west ikev2-x509-02-smoketest]# : ==== tuc ==== kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-x509-02-smoketest\[root@west ikev2-x509-02-smoketest]# ../bin/check-for-core.sh kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-x509-02-smoketest\[root@west ikev2-x509-02-smoketest]# if [ -f /sbin/ausearch ]; then ausearch -r -m avc -ts recent ; fi type=AVC msg=audit(1566824781.750:169760): avc: denied { write } for pid=5361 comm="ip" path="/tmp/pluto.log" dev="dm-0" ino=942309374 scontext=unconfined_u:system_r:ifconfig_t:s0 tcontext=unconfined_u:object_r:container_file_t:s0:c718,c778 tclass=file permissive=1 kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-x509-02-smoketest\[root@west ikev2-x509-02-smoketest]# : ==== end ==== kroot@swantest:/home/build/libreswan/testing/pluto/ikev2-x509-02-smoketest\[root@west ikev2-x509-02-smoketest]#