- Newest
- Most votes
- Most comments
Based on the information provided, there are several potential issues that could be causing your Client VPN endpoint to remain in a "pending associate" state for an extended period. Let's address your concerns and provide some guidance:
-
Server Certificate: While the server certificate could potentially cause issues, it's unlikely to be the sole reason for the "pending associate" state. However, it's important to ensure that the certificate is valid and properly imported into AWS Certificate Manager (ACM).
-
Certificate Creation: The command you used to create the server certificate (./easyrsa --nopass build-server-full my-vpn) is correct. The "my-vpn" in the domain field is indeed the Common Name (CN) you specified, and this should not cause issues with the VPN setup.
-
Client Endpoint Range: It's correct that the client endpoint range should not overlap with your target VPC. This is not likely to be the cause of the "pending associate" state.
-
Subnet Association: For your goal of allowing access to resources in private subnets, you should associate the private subnets with the Client VPN endpoint. The subnets you associate must have a route to the internet gateway, which can be through a NAT gateway for private subnets. This allows the VPN clients to access the internet and AWS services.
-
Route Table: The "NAT" type shown in the route table for associated public subnets is normal. This indicates that the traffic is being routed through a NAT gateway, which is expected for internet access from private subnets.
To troubleshoot the "pending associate" state:
-
Check the status of your server certificate in the AWS Certificate Manager console or using the AWS CLI. Ensure it hasn't expired.
-
Verify that the firewall rules for the Client VPN endpoint are not blocking TCP or UDP traffic on ports 443 or 1194.
-
Confirm that the configuration file contains the correct client key and certificate.
-
Ensure that the Client Certificate Revocation List (CRL) is still valid if you're using one.
-
Review the VPC and subnet configurations to ensure they are correctly set up and have the necessary routes.
-
Check AWS CloudTrail logs or VPC Flow Logs for any error messages or issues related to the Client VPN endpoint.
If the issue persists after verifying these points, you may need to contact AWS support for further assistance, as there could be an underlying issue with the AWS infrastructure or your account configuration.
Sources
Troubleshooting AWS Client VPN: Client software returns a TLS error when trying to connect to Client VPN - AWS Client VPN
Troubleshooting common AWS Client VPN problems - AWS Client VPN
disassociate-client-vpn-target-network — AWS CLI 2.18.6 Command Reference
Troubleshooting AWS Client VPN connections with macOS clients - AWS Client VPN
As per the AI, you need to complete all the steps before its complete..
Private subnets is fine as its a CLIENT VPN Service you do not connect over the internet to your VPC, but to the VPN Client endpoint via Network interfaces into your VPC.
Relevant content
- AWS OFFICIALUpdated 3 years ago
