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

Right after a new partner VPN came up, part of your VPC (10.0.8.0/22) became unreachable from your own office.

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

Likely causes → The partner advertises an overlapping, more specific prefix over BGP (e.g. 10.0.8.0/24). Longest prefix match wins everywhere those routes propagate (VGW/TGW route tables, on-prem routers), so traffic for that range now goes to the partner.

Diagnose →

aws ec2 describe-route-tables --route-table-ids <rtb> --query 'RouteTables[0].Routes[?Origin==`EnableVgwRoutePropagation`]'
aws ec2 search-transit-gateway-routes --transit-gateway-route-table-id <rtb> --filters Name=route-search.longest-prefix-match,Values=10.0.8.10/32

Fix → Filter what you accept from the partner (prefix lists, separate TGW route table for partner attachments with no propagation into internal tables), and ask the partner to advertise only agreed prefixes. Where overlap is permanent, use NAT (private NAT gateway) to translate.

Prevent → Isolate third-party connectivity in its own TGW route domain and maintain an IPAM registry of all allocated ranges.

All Networking questions Roadmap: Networking for DevOps

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