Interview Prep/Networking/Cloud networking: VPC, firewalls, NAT, VPN and proxies

The VPN tunnel is `UP`, but no traffic passes between on-prem and the VPC.

IntermediateTroubleshootingCloud networking: VPC, firewalls, NAT, VPN and proxies
Answer

Likely causes → Routing, not IPsec: VPC route tables don't have the on-prem prefix (route propagation from the VGW off, no static route), BGP isn't advertising the right prefixes, the on-prem side routes the VPC CIDR elsewhere, or a policy-based device has a traffic selector (encryption domain) that doesn't match (TS_UNACCEPTABLE). SGs/NACLs can also block.

Diagnose →

aws ec2 describe-route-tables --filters Name=vpc-id,Values=<vpc> --query 'RouteTables[].PropagatingVgws'
aws ec2 describe-vpn-connections --vpn-connection-ids <vpn> --query 'VpnConnections[0].VgwTelemetry[].[Status,AcceptedRouteCount]'

AcceptedRouteCount: 0 means BGP isn't sending prefixes.

Fix → Enable route propagation or add static routes, advertise the right prefixes via BGP, align traffic selectors (AWS uses 0.0.0.0/0 by default on its side unless you set local/remote network CIDRs), and open SGs for the on-prem CIDR.

Prevent → Use route-based (BGP) VPNs over policy-based ones and monitor TunnelState plus accepted route count.

All Networking questions Roadmap: Networking for DevOps

More on Cloud networking: VPC, firewalls, NAT, VPN and proxies