/testing/guestbin/swan-prep --x509 --46 Preparing X.509 files west # ipsec certutil -D -n east west # ipsec start Redirecting to: [initsystem] west # ../../guestbin/wait-until-pluto-started west # ipsec add san "san": added IKEv2 connection west # ipsec listpubkeys List of Public Keys: TIMESTAMP, 3072 RSA Key AwXXXXXXX (has private key), until TIMESTAMP ok ID_IPV6_ADDR '2001:db8:1:2::45' Issuer 'C=CA, ST=Ontario, L=Toronto, O=Libreswan, OU=Test Department, CN=Libreswan test CA for mainca, E=testing@libreswan.org' TIMESTAMP, 3072 RSA Key AwXXXXXXX (has private key), until TIMESTAMP ok ID_DER_ASN1_DN 'C=CA, ST=Ontario, L=Toronto, O=Libreswan, OU=Test Department, CN=west.testing.libreswan.org, E=user-west@testing.libreswan.org' Issuer 'C=CA, ST=Ontario, L=Toronto, O=Libreswan, OU=Test Department, CN=Libreswan test CA for mainca, E=testing@libreswan.org' TIMESTAMP, 3072 RSA Key AwXXXXXXX (has private key), until TIMESTAMP ok ID_USER_FQDN 'user-west@testing.libreswan.org' Issuer 'C=CA, ST=Ontario, L=Toronto, O=Libreswan, OU=Test Department, CN=Libreswan test CA for mainca, E=testing@libreswan.org' TIMESTAMP, 3072 RSA Key AwXXXXXXX (has private key), until TIMESTAMP ok ID_FQDN '@west.testing.libreswan.org' Issuer 'C=CA, ST=Ontario, L=Toronto, O=Libreswan, OU=Test Department, CN=Libreswan test CA for mainca, E=testing@libreswan.org' TIMESTAMP, 3072 RSA Key AwXXXXXXX (has private key), until TIMESTAMP ok ID_USER_FQDN 'west@testing.libreswan.org' Issuer 'C=CA, ST=Ontario, L=Toronto, O=Libreswan, OU=Test Department, CN=Libreswan test CA for mainca, E=testing@libreswan.org' TIMESTAMP, 3072 RSA Key AwXXXXXXX (has private key), until TIMESTAMP ok ID_IPV4_ADDR '192.1.2.45' Issuer 'C=CA, ST=Ontario, L=Toronto, O=Libreswan, OU=Test Department, CN=Libreswan test CA for mainca, E=testing@libreswan.org' west # ipsec certutil -L west -n west | grep 'IP Address:' IP Address: 192.1.2.45 IP Address: 2001:db8:1:2::45 west # echo "initdone" initdone west # ipsec whack --impair suppress_retransmits west # # this should succeed west # ipsec auto --up san "san" #1: initiating IKEv2 connection to 2001:db8:1:2::23 using UDP "san" #1: sent IKE_SA_INIT request to [2001:db8:1:2::23]:UDP/500 "san" #1: processed IKE_SA_INIT response from [2001:db8:1:2::23]:UDP/500 {cipher=AES_GCM_16_256 integ=n/a prf=HMAC_SHA2_512 group=DH19}, initiating IKE_AUTH "san" #1: sent IKE_AUTH request to [2001:db8:1:2::23]:UDP/500 "san" #1: initiator established IKE SA; authenticated peer certificate '2001:db8:1:2::23' and 3nnn-bit RSASSA-PSS with SHA2_512 digital signature issued by 'C=CA, ST=Ontario, L=Toronto, O=Libreswan, OU=Test Department, CN=Libreswan test CA for mainca, E=testing@libreswan.org' "san" #2: initiator established Child SA using #1; IPsec tunnel [2001:db8:1:2::45/128===2001:db8:1:2::23/128] {ESP/ESN=>0xESPESP <0xESPESP xfrm=AES_GCM_16_256-NONE DPD=passive} west # echo "done" done west # # confirm the right ID types were sent/received west # grep "ID type" /tmp/pluto.log | sort | uniq | ID type: ID_IPV6_ADDR (0x5) west #