Closed NerdOfLinux closed 6 years ago
On Mon, 8 Oct 2018, NerdOfLinux wrote:
When I follow the instructions to setup IKEv2, I always get a timeout error on the client(iOS). The output of service ipsec status is:
42 nerdoflinux.com pluto[16210]: "l2tp-psk"[1] x.x.x.x #1: sending unencrypted notification v2N_INVALID_SYNTAX to x.x.x.x:500
So it tells you here it is going to send an error. Before that in logs you did not share, will it say what problem it encountered for which it is giving this error.
Oct 08 16:58:45 nerdoflinux.com pluto[16210]: "l2tp-psk"[1] x.x.x.x #1: missing payload(s) (ISAKMP_NEXT_v2AUTH). Message dropped. Oct 08 16:58:45 nerdoflinux.com pluto[16210]: | ikev2_parent_inI2outR2_tail returned STF_FAIL with v2N_INVALID_SYNTAX Oct 08 16:58:45 nerdoflinux.com pluto[16210]: "l2tp-psk"[1] x.x.x.x #1: sending unencrypted notification v2N_INVALID_SYNTAX to x.x.x.x:500 Oct 08 16:58:48 nerdoflinux.com pluto[16210]: "l2tp-psk"[1] x.x.x.x #1: missing payload(s) (ISAKMP_NEXT_v2AUTH). Message dropped. Oct 08 16:58:48 nerdoflinux.com pluto[16210]: | ikev2_parent_inI2outR2_tail returned STF_FAIL with v2N_INVALID_SYNTAX Oct 08 16:58:48 nerdoflinux.com pluto[16210]: "l2tp-psk"[1] x.x.x.x #1: sending unencrypted notification v2N_INVALID_SYNTAX to x.x.x.x:500
This is noise that we fixed in later releases. It usually happens when an error message was received that is missing "required" payloads based on the non-error version of the expected answer packet.
Paul
The client is iOS 12 with the server and remote ID set to my server's IP address, and the User Authentication set to certificate with the imported p12 file generated from the IKEv2 tutorial..
Make sure your certificate for the server has a SubjectAltName entry for the IP address if that is the ID you are using. It is a lot more common to use a FQDN as the ID, with the FQDN listed as SAN on the certificate.
Paul
Running service ipsec status
earlier on reveals:
Oct 08 17:23:25 nerdoflinux.com pluto[19581]: packet from x.x.x.x:500: l2tp-psk IKE proposals for initial responder: 1:IKE:ENCR=3DES;PRF=HMAC_SHA1;INTEG=HMAC_SHA1_96;DH=MODP2048 2:IKE:ENCR=3DES;PRF=HMAC_SHA1;INTEG=HMAC_SHA1_96;DH=MODP1536 3:IKE:ENCR=3DES;PRF=HMAC_SHA2_256;INTEG=HMAC_SHA2_256_128;DH=MODP2048 4:IKE:ENCR=3DES;PRF=HMAC_SHA2_256;INTEG=HMAC_SHA2_256_128;DH=MODP1536 5:IKE:ENCR=AES_CBC_256,AES_CBC_128;PRF=HMAC_SHA1;INTEG=HMAC_SHA1_96;DH=MODP2048 6:IKE:ENCR=AES_CBC_256,AES_CBC_128;PRF=HMAC_SHA1;INTEG=HMAC_SHA1_96;DH=MODP1536 7:IKE:ENCR=AES_CBC_256,AES_CBC_128;PRF=HMAC_SHA2_256;INTEG=HMAC_SHA2_256_128;DH=MODP2048 8:IKE:ENCR=AES_CBC_256,AES_CBC_128;PRF=HMAC_SHA2_256;INTEG=HMAC_SHA2_256_128;DH=MODP1536
Oct 08 17:23:25 nerdoflinux.com pluto[19581]: packet from x.x.x.x:500: proposal 1:IKE:ENCR=AES_CBC_256;PRF=HMAC_SHA2_256;INTEG=HMAC_SHA2_256_128;DH=MODP2048 chosen from: 1:IKE:ENCR=AES_CBC_256;PRF=HMAC_SHA2_256;INTEG=HMAC_SHA2_256_128;DH=MODP2048[first-match] 2:IKE:ENCR=AES_CBC_256;PRF=HMAC_SHA2_256;INTEG=HMAC_SHA2_256_128;DH=ECP_256 3:IKE:ENCR=AES_CBC_256;PRF=HMAC_SHA2_256;INTEG=HMAC_SHA2_256_128;DH=MODP1536 4:IKE:ENCR=AES_CBC_128;PRF=HMAC_SHA1;INTEG=HMAC_SHA1_96;DH=MODP1024 5:IKE:ENCR=3DES;PRF=HMAC_SHA1;INTEG=HMAC_SHA1_96;DH=MODP1024
Oct 08 17:23:25 nerdoflinux.com pluto[19581]: "l2tp-psk"[1] x.x.x.x #1: STATE_PARENT_R1: received v2I1, sent v2R1 {auth=IKEv2 cipher=aes_256 integ=sha256_128 prf=sha2_256 group=MODP2048}
Oct 08 17:23:25 nerdoflinux.com pluto[19581]: "l2tp-psk"[1] x.x.x.x #1: missing payload(s) (ISAKMP_NEXT_v2AUTH). Message dropped.
When I follow the instructions to setup IKEv2, I always get a timeout error on the client(iOS). The output of
service ipsec status
is:and
ipsec verify
:ipsec.conf
:The only thing changed from the tutorial is the DNS servers.
My client and server IP addresses have been replaced with
x.x.x.x
for privacy reasons.The client is iOS 12 with the server and remote ID set to my server's IP address, and the User Authentication set to certificate with the imported p12 file generated from the IKEv2 tutorial..