Lesson 4 of 5 Network Troubleshooting and Monitoring

Troubleshooting Hybrid and Private Connectivity

This lesson explains the characteristic failure modes of hybrid connections, which add tunnels, BGP routing and DNS forwarding, and of private connectivity, which adds endpoints and private DNS.

Learning outcomes

After completing this lesson, you will be able to:

  • Troubleshoot Site-to-Site VPN tunnels and routing.
  • Troubleshoot Client VPN and DNS.
  • Troubleshoot interface endpoints and private DNS.

Site-to-Site VPN problems

Start with the tunnel status in the console and the TunnelState CloudWatch metric (1 up, 0 down), plus TunnelDataIn and TunnelDataOut. Site-to-Site VPN logs, published to CloudWatch Logs, record IKE and IPsec negotiation and BGP events. The following table lists common problems.

SymptomLikely causeFix
Tunnel down, phase 1 failsMismatched IKE version, encryption, pre-shared key or customer gateway IPAlign settings with the downloaded configuration
Tunnel up, no trafficNo route propagation or static routes in VPC/TGW route tables, or SG/NACL blocksEnable propagation or add routes; check filters
BGP session downASN mismatch, inside tunnel IPs wrong, firewall blocking TCP 179Correct BGP configuration
Tunnel drops when idleNo traffic to keep the security association aliveConfigure DPD/keepalive or startup action
Some prefixes unreachableOverlapping CIDRs, or more than 100 prefixes advertised over BGP to a virtual private gatewaySummarise routes; fix overlap
Only one tunnel ever used and outage during maintenanceSecond tunnel not configuredConfigure both tunnels

The following diagram compares route tables with propagation disabled and enabled.

Why a VPN with both tunnels up can carry no traffic. BGP advertises the on-premises prefix, but if route propagation is disabled on the subnets' route tables, the instances have no route back to on premises. Enabling propagation for the virtual private gateway, or adding a static route, fixes it.
A healthy tunnel says nothing about the VPC's routes; check both sides of the path.
Troubleshooting scenario

VPN problems

Exam skills 5.3.4

Fix Site-to-Site VPN problems.

Log in to try this activity Interactive activities are free with an account.

Client VPN and DNS

With Client VPN, users who connect but cannot reach resources usually lack an authorisation rule for the destination CIDR (for their group), a route in the endpoint route table, or a security group rule on the destination allowing the endpoint's associated subnet or security group. Internet access through the VPN needs a 0.0.0.0/0 route, an authorisation rule and a NAT path from the associated subnet. Hybrid DNS failures show up as name resolution errors even when IP connectivity works; check Resolver inbound and outbound endpoints, forwarding rules and their VPC associations, endpoint security groups for port 53, and on-premises conditional forwarders, using Resolver query logs.

Private connectivity problems

Interface endpoints fail when their security group does not allow HTTPS from clients, private DNS is disabled (so names resolve to public IPs that are unreachable without NAT), the VPC's DNS attributes are off, or the endpoint policy denies the action. On-premises clients reach interface endpoints only with a Resolver inbound endpoint or the endpoint-specific DNS names. Gateway endpoints fail when the subnet's route table is not associated with the endpoint, when traffic comes from another Region or from on premises (which gateway endpoints do not support), or when bucket policies require a different aws:SourceVpce. PrivateLink endpoint services fail when the consumer's connection is pending acceptance or the provider's NLB targets are unhealthy.

Select all that apply

Interface endpoint checks

Exam skills 5.3.4 · 5.1.2

Identify what to check when instances cannot reach a service through an interface endpoint.

Log in to try this activity Interactive activities are free with an account.
Worked example

VPN up, nothing works

A new Site-to-Site VPN to a virtual private gateway shows both tunnels UP and BGP sessions established, but on-premises servers cannot reach instances. Flow logs on the instances' ENIs show no records from on-premises addresses, so traffic is not reaching them. BGP is advertising the on-premises prefix 192.168.0.0/16, but the private subnets' route tables have route propagation disabled for the virtual private gateway, so responses would have no route back and the instances' security groups only allow the VPC CIDR. Enabling route propagation on the private route tables and allowing 192.168.0.0/16 in the security group restores connectivity.

Check yourself

Client VPN connects, but users cannot reach a subnet. Which settings should be checked?

Show answer

Authorisation rules, routes and the destination's security group rules.

Exam Tips

Remember for the exam

  • TunnelState shows tunnel health; VPN logs show IKE, IPsec and BGP events.
  • Tunnel up but no traffic: route propagation, static routes or SG/NACL rules.
  • Client VPN needs authorisation rules, routes and destination SG rules.
  • Interface endpoint issues: endpoint SG 443, private DNS, endpoint policy.
  • Gateway endpoints do not work from on premises or other Regions.