Skip to content

Why does IPsec/Phase 2 for Site-to-Site VPN fail to establish a connection?

3 minute read
0

I want to troubleshoot an AWS Site-to-Site VPN Internet Protocol security (IPsec)/Phase 2 connection that fails.

Resolution

If an IPsec/Phase 2 connection fails, then check the following configurations:

Debug encryption algorithm errors

Check for encryption algorithm errors. If you encounter encryption algorithm errors, then use the Site-to-Site VPN Tunnel activity logs for your tunnel to debug them. Tunnel activity logs include IKE logs, by default. View your Tunnel activity logs in the Amazon CloudWatch console.

The following example IKE log entries show the proposals for encryption algorithm AES256:

  • For Phase 1 SA encryption:
    ""details": "Selected proposals for Phase 1 SA: Encryption: AES256 Hash: SHA2-256 PRF: SHA2-256 DH Group(s): 14"
  • For Phase 2 SA encryption:
    ""details": "Selected proposals for Phase 2 SA: Encryption: AES256 Hash: SHA2-256 DH Group(s): None PFS: None"

In the details field, check that the listed encryption algorithm matches the expected configuration on both the AWS VPN tunnel and the customer gateway device. If the algorithms don't match, then update your customer gateway configuration to match your AWS VPN tunnel settings. Or, update the VPN tunnel options to match the customer gateway.

Related information

Downloadable dynamic routing configuration files for Site-to-Site VPN customer gateway device

Downloadable static routing configuration files for an Site-to-Site VPN customer gateway device