hi,
I am running version 6.45.7, configured iOS12 IKEv2 to Mikrotik and after 8 minutes I received disconnect. What could be wrong?
log:
23:26:44 ipsec,info new ike2 SA (R): publicIPmikrotik[500]-ip_iphone[4805] spi:d541b057d8dee6f1:82f4ac78771cbdfd
23:26:44 ipsec,info,account peer authorized: publicIPmikrotik[4500]-ip_iphone[4806] spi:d541b057d8dee6f1:82f4ac78771cbdfd
23:26:44 ipsec,info acquired 192.168.89.255 address for ip_iphone, vpn.client
23:34:00 wireless,info 70:EE:50:2A:FE:14@wlan1: connected, signal strength -62
23:34:01 dhcp,info defconf assigned 192.168.88.244 to 70:EE:50:2A:FE:14
23:34:09 dhcp,info defconf deassigned 192.168.88.244 from 70:EE:50:2A:FE:14
23:34:10 wireless,info 70:EE:50:2A:FE:14@wlan1: disconnected, received disassoc: sending station leaving (8)
23:34:45 ipsec,info killing ike2 SA: publicIPmikrotik[4500]-ip_iphone[4806] spi:d541b057d8dee6f1:82f4ac78771cbdfd
23:34:45 ipsec,info releasing address 192.168.89.255
configuration:
/certificate add name=my.ca common-name=my.ca key-usage=key-cert-sign,crl-sign trusted=yes
/certificate sign my.ca
/certificate add name=vpn.server common-name=vpn.server subject-alt-name=DNS:vpn.server
/certificate sign vpn.server ca=my.ca
/certificate set trusted=yes vpn.server
/certificate add name=vpn.client common-name=vpn.client
/certificate sign vpn.client ca=my.ca
/certificate set trusted=yes vpn.client
/certificate export-certificate my.ca
/certificate export-certificate vpn.client export-passphrase=12345678 type=pkcs12
/ip pool add name=vpn ranges=192.168.89.0/24
/ip ipsec mode-config
add address-pool=vpn name=cfg1 static-dns=8.8.8.8 system-dns=no
/ip ipsec proposal add auth-algorithms=sha256 enc-algorithms=aes-256-cbc name=ios-ikev2-proposal pfs-group=none
/ip ipsec profile
add name=iOS hash-algorithm=sha256 enc-algorithm=aes-256,aes-128 dh-group=modp2048 lifetime=1h dpd-interval=1h
/ip ipsec peer
add address=0.0.0.0/0 exchange-mode=ike2 profile=iOS name=iPhone
/ip ipsec identity
add auth-method=digital-signature certificate=vpn.server generate-policy=port-strict match-by=certificate mode-config=cfg1 my-id=fqdn:vpn.server peer=iPhone remote-certificate=vpn.client