Home / AWS

AWSTroubleshootingAdvanced

AWS Client VPN users can't connect or reach resources: certificates, authorization rules and routes

Split AWS Client VPN faults into can't connect or can't reach, then fix expired certificates and CRLs, missing authorization rules, uneven routes, DNS and MTU.

Deepak Bhardwaj6 min read

Applies toAWS Client VPN endpoints (mutual, Active Directory and SAML authentication), AWS CLI v2

Symptom

Users report "the VPN is down". That covers two separate faults:

  • Can't connect: TLS, certificate, sign-in or DNS lookup of the endpoint name.
  • Connected but can't reach something: authorization rules, endpoint routes, security groups, DNS or MTU.

Ask for the exact client error and whether the client shows Connected. Then follow one half of this post.

Symptom Likely cause Fix
TLS key negotiation failed to occur within 60 seconds Expired CRL or server certificate, or a blocked port Steps 2 and 3
Cannot resolve the endpoint name Missing random prefix, or expired SAML signing certificate Step 3
Sign-in fails after MFA was enabled Old configuration file has no MFA prompt Export and redistribute the file
The credentials received were incorrect with SAML SAML response has no attributes Map at least one attribute in the IdP
Connected, reaches nothing No authorization rule, or security group Steps 4 and 6
Works for some users or only sometimes Routes missing for some associated subnets Step 5
IP address works, name doesn't Endpoint DNS servers Step 7
Small requests work, large ones hang MTU Step 7

Step 1: check the endpoint and logs

CVPN=cvpn-endpoint-0123456789abcdef0

aws ec2 describe-client-vpn-endpoints --client-vpn-endpoint-ids $CVPN \
  --query "ClientVpnEndpoints[0].{Status:Status,Cidr:ClientCidrBlock,Split:SplitTunnel,Dns:DnsServers,Proto:TransportProtocol,Port:VpnPort,Cert:ServerCertificateArn,Auth:AuthenticationOptions,Log:ConnectionLogOptions}"

aws ec2 describe-client-vpn-target-networks --client-vpn-endpoint-id $CVPN \
  --query "ClientVpnTargetNetworks[].{Subnet:TargetNetworkId,Status:Status.Code,SGs:SecurityGroups}"

Each target network should be associated. With no associations, the endpoint can't accept connections.

If connection logging is on, search CloudWatch Logs Insights:

fields @timestamp, username, `common-name`, `device-ip`,
  `connection-attempt-status`, `connection-attempt-failure-reason`
| filter `connection-log-type` = "connection-attempt"
| filter `connection-attempt-status` = "failed"
| sort @timestamp desc
| limit 50

Failed mutual authentication attempts are not logged. No log entry therefore does not prove the client never reached the endpoint. The AuthenticationFailures metric helps too:

aws cloudwatch get-metric-statistics --namespace AWS/ClientVPN \
  --metric-name AuthenticationFailures \
  --dimensions Name=Endpoint,Value=$CVPN \
  --start-time 2026-11-25T06:00:00Z --end-time 2026-11-25T12:00:00Z \
  --period 300 --statistics Sum

Can't connect

Step 2: certificates and the revocation list

Everybody failing at the same moment usually means something expired. Check the server certificate:

aws acm describe-certificate --certificate-arn <server-cert-arn> \
  --query "Certificate.{Status:Status,NotAfter:NotAfter,Type:Type,Renewal:RenewalEligibility}"

For mutual authentication, check the client certificate revocation list (CRL). An expired CRL stops all certificate users, including those with valid certificates:

aws ec2 export-client-vpn-client-certificate-revocation-list \
  --client-vpn-endpoint-id $CVPN \
  --query CertificateRevocationList --output text > crl.pem

openssl crl -in crl.pem -noout -nextupdate

With easy-rsa, generate a new one from the original CA directory and import it:

./easyrsa gen-crl

aws ec2 import-client-vpn-client-certificate-revocation-list \
  --client-vpn-endpoint-id $CVPN \
  --certificate-revocation-list file://pki/crl.pem

Caution

The import replaces the current list. Generate it from the CA database that holds your full revocation history, or revoked leavers may get access back. Compare the old and new lists with openssl crl -in <file> -noout -text first.

If one user fails, check that user's certificate:

openssl x509 -in client.crt -noout -subject -enddate

Step 3: name resolution and ports

The exported configuration normally includes remote-random-hostname. A client that doesn't support it must put a random label in front of the endpoint name:

nslookup test123.cvpn-endpoint-0123456789abcdef0.prod.clientvpn.eu-west-1.amazonaws.com

For SAML endpoints, an expired IdP signing certificate can make the name return NXDOMAIN while the endpoint still shows available. Refresh the IdP metadata:

aws iam update-saml-provider \
  --saml-provider-arn arn:aws:iam::111122223333:saml-provider/corp-vpn \
  --saml-metadata-document file://idp-metadata.xml

The change can take up to four hours to apply.

If the name resolves and certificates are valid, try a phone hotspot. If that works, the user's network is blocking the endpoint's transport protocol and port, which step 1 shows.

Connected but can't reach

Walk the path in order. Every layer must allow it.

Step 4: authorization rules

aws ec2 describe-client-vpn-authorization-rules --client-vpn-endpoint-id $CVPN \
  --query "AuthorizationRules[].{Cidr:DestinationCidr,Group:GroupId,All:AccessAll,Status:Status.Code}" \
  --output table

Rules use longest-prefix matching. If 10.0.0.0/16 is open to everyone but 10.0.5.0/24 is allowed only for one group, other users are refused in the /24. The broad rule does not act as a fallback.

Add the missing rule, using the group's SID for Active Directory or the group value from the assertion for SAML:

aws ec2 authorize-client-vpn-ingress --client-vpn-endpoint-id $CVPN \
  --target-network-cidr 10.0.5.0/24 \
  --access-group-id <group-id> \
  --description "DB admins"

Step 5: endpoint routes, on every associated subnet

aws ec2 describe-client-vpn-routes --client-vpn-endpoint-id $CVPN \
  --query "Routes[].{Cidr:DestinationCidr,Subnet:TargetSubnet,Status:Status.Code}" \
  --output table

Clients land on any associated subnet. A route that exists for only one of three subnets gives intermittent failures. Add each destination once per subnet:

for s in subnet-0aaa subnet-0bbb subnet-0ccc; do
  aws ec2 create-client-vpn-route --client-vpn-endpoint-id $CVPN \
    --destination-cidr-block 10.20.0.0/16 --target-vpc-subnet-id $s
done

An already existing route returns a duplicate error, which you can ignore. Next, check that the VPC route table of each associated subnet reaches the destination through peering, Transit Gateway or NAT. The far side needs a return route to the associated subnets' CIDRs.

With split tunnel on, endpoint routes are pushed to the client at connection time. Users must reconnect to receive new ones.

Warning

Changing split tunnel on a live endpoint alters all users' internet path. Without it, internet traffic needs an endpoint route, an authorization rule for 0.0.0.0/0, and a NAT or internet gateway path. Change it in a maintenance window.

Step 6: security groups

Security groups applied to the associations control traffic leaving the endpoint's network interfaces. For IPv4, the target sees an address from the associated subnet, not the client CIDR. Allow the association's group on the target:

aws ec2 authorize-security-group-ingress --group-id sg-0target \
  --protocol tcp --port 5432 --source-group sg-0clientvpn

Check network ACLs on both subnets as well. VPC Flow Logs on the associated subnets' interfaces show whether traffic left and what was rejected.

Step 7: DNS and MTU

Set DNS servers on the endpoint. The VPC resolver (VPC base address plus two) lets clients resolve private hosted zones:

aws ec2 modify-client-vpn-endpoint --client-vpn-endpoint-id $CVPN \
  --dns-servers CustomDnsServers=10.0.0.2,Enabled=true

Clients must be authorized to reach that address. Reconnect, then test:

Resolve-DnsName app.internal.example.com -Server 10.0.0.2
Test-NetConnection 10.0.5.20 -Port 5432
ping 10.0.5.20 -l 1400 -f

If large pings fail while small ones work, add mssfix 1328 to the client's .ovpn file.

Prevent it next time

Alarm on CrlDaysToExpiry, and on IdpCertDaysToExpiry for SAML:

aws cloudwatch put-metric-alarm --alarm-name cvpn-crl-expiry \
  --namespace AWS/ClientVPN --metric-name CrlDaysToExpiry \
  --dimensions Name=Endpoint,Value=$CVPN \
  --statistic Minimum --period 3600 --evaluation-periods 1 \
  --threshold 30 --comparison-operator LessThanThreshold \
  --alarm-actions arn:aws:sns:eu-west-1:111122223333:ops-alerts
  • Monitor the server certificate's expiry too. Imported ACM certificates don't renew automatically.
  • Keep connection logging on and set log retention.
  • Manage associations, routes and rules in code, looping over subnets so routes stay even.
  • Size the client CIDR at twice the peak concurrent connections. It can't be changed later.