IPSec Tunnel IKEv1 - invalid ESP packed detected
I was trying to establish a VPN IPSec tunnel against a Cisco Meraki MX90.
We are using FortiOS 7.2.11
Config matched on both sides.
P1
IKEv1 - AES256-SHA256 DH14
P2
AES256-SHA256 DH14
Both P1 and P2 were up, although, P2 was flapping sometimes.
No packets going through.
Found this in the logs:
Invalid ESP packet detected (payload not aligned)
After a Google search - Solved: Invalid ESP packet detected (payload not aligned). - Fortinet Community
When P2 was changed to SHA1 we were able to establish connectivity.
Does anyone know why does this happen?