We recently updated our Microsoft RRAS server security to meet the latest Apple AES 256 VPN standards in order to connect however we have a problem where an IKEv2 VPN disconnects after exactly 8 minutes on the Monterey or Catalina macOS. During the eight minute period everything works great. https://developer.apple.com/documentation/devicemanagement/vpn/ikev2/ikesecurityassociationparameters
We don't have any problems with an iPhone IKEv2 VPN on iOS 14.8 or a PC (after VPN policy update).
On the Microsoft Server 2019 I used this powershell command to update the IKEv2 security:
Set-VpnServerConfiguration -CustomPolicy -AuthenticationTransformConstants SHA256128 -CipherTransformConstants AES256 -DHGroup Group14 -EncryptionMethod AES256 -IntegrityCheckMethod SHA256 -PFSgroup PFS2048 -SALifeTimeSeconds 28800 -MMSALifeTimeSeconds 86400 -SADataSizeForRenegotiationKilobytes 1024000
and of course restarted the RRAS server for the change to take effect,
Restart-Service RemoteAccess -PassThru
I also enabled IKEv2 fragmentation
New-ItemProperty -Path “HKLM:\SYSTEM\CurrentControlSet\Services\RemoteAccess\Parameters\Ikev2\” -Name EnableServerFragmentation -PropertyType DWORD -Value 1 -Force
But still having the same disconnect issue even after rebooting the RRAS server.
For reference, if you make this change you also have to update the Windows PCs to avoid a "policy match error" when connecting your VPN (change "IKEv2-VPN" to the name of the VPN you want to update):
Set-VpnConnectionIPsecConfiguration -ConnectionName "IKEv2-VPN" -AuthenticationTransformConstants SHA256128 -CipherTransformConstants AES256 -DHGroup Group14 -EncryptionMethod AES256 -IntegrityCheckMethod SHA256 -PFSgroup PFS2048 -Force
Side note: that this configuration change does not affect SSTP connections.
Update: We also tried manually changing the MTU to 1400 and checked to make sure that iCloud Private Relay was off which it already was.
FINAL SOLUTION:
Set-VpnServerConfiguration -CustomPolicy -AuthenticationTransformConstants SHA256128 -CipherTransformConstants AES256 -DHGroup Group14 -EncryptionMethod AES256 -IntegrityCheckMethod SHA256 -PFSgroup None -SALifeTimeSeconds 28800 -MMSALifeTimeSeconds 86400 -SADataSizeForRenegotiationKilobytes 1024000
Matching Windows Client VPN update (change "IKEv2-VPN" to the name of your VPN connection):
Set-VpnConnectionIPsecConfiguration -ConnectionName "IKEv2-VPN" -AuthenticationTransformConstants SHA256128 -CipherTransformConstants AES256 -DHGroup Group14 -EncryptionMethod AES256 -IntegrityCheckMethod SHA256 -PFSgroup None -Force