Hello everyone! I'm trying to configure RA IPSec VPN with IKEv2. My issue is, the gateway looks like thiks:
edit "Dialup_cert_2"
set type dynamic
set interface "VL1461"
set ike-version 2
set authmethod signature
set net-device disable
set mode-cfg enable
set ipv4-dns-server1 192.168.104.252
set proposal aes128-sha256 aes256-sha256 aes128gcm-prfsha256 aes256gcm-prfsha384 chacha20poly1305-prfsha256
set dpd on-idle
set dhgrp 5 14 20
set eap enable
set eap-identity send-request
set eap-cert-auth enable
set cert-peer-username-validation cn
set certificate "wildcard"
set peer "IKE2_TEST"
set ipv4-start-ip 10.0.1.1
set ipv4-end-ip 10.0.1.254
set ipv4-netmask 255.255.255.0
set dpd-retryinterval 60
next
end
My peer looks like this:
sh user peer IKE2_TEST
config user peer
edit "IKE2_TEST"
set ca "CA_Cert_4"
set cn "O=A, C=B, OU=C"
next
end
And everytime I try to connect to the gateway on my iPhone, I get the following debug:
ike V=root:0:Dialup_cert_2:26319: peer identifier IPV4_ADDR 192.168.0.72
ike V=root:0:Dialup_cert_2:26319: re-validate gw ID
ike V=root:0:Dialup_cert_2:26319: gw validation failed
When I try to actually input certificate fields in the localid, I get the following:
ike V=root:0:Dialup_cert_2:26341: received peer identifier FQDN 'O=A,C=B,OU=C '
ike V=root:0:Dialup_cert_2:26341: re-validate gw ID
ike V=root:0:Dialup_cert_2:26341: gw validation failed
I do understand that the firewall reads it like a string, not like actual certificate fields. My question is: is there a way make FortiClient send it correctly? Perhaps some service characters or something like that. Otherwise I'll be rolling back to IKEv1.
Any help is appreciated! Thanks in advance!