Skip to content
TrungCLN

Break it in the lab, so production never breaks

AWS, networking and cloud security guides from real-world experience: architecture diagrams, working configuration and real measurements of what happens when things fail.

An office connects to AWS over two VPN tunnels. Tunnel-1 fails softly; after about 20 seconds traffic moves to tunnel-2.tunnel-1tunnel-2OfficeAS 65000AWSAS 64512
  1. beforetunnel-1 carries all traffic
  2. 0 stunnel-1 soft failure: link UP, packets lost
  3. 20 sBGP does not know yet, waiting for hold timer
  4. 20 sBGP drops tunnel-1, traffic moves to tunnel-2
Real measurements from the guide VPN with 2 tunnels and BGP.
AWS News 2 Dec 2026EBS gp3 and io2 can now write synchronously to 2 Availability Zones, no DIY cross-AZ replication needed.Read all 9 items

Latest guides

All guides
OfficeAWS Cloudtunnel-1 soft failuretunnel-2 carries trafficOffice LANRouter BGPVPN GatewayVPC

NetworkingIntermediate40 min

VPN with 2 tunnels and BGP: how long does failover really take?

Build two BGP routers over two tunnels like AWS Site-to-Site VPN, measure failover for hard and soft failures, and learn why every config line is there.

Every guide runs on one Linux machine

Virtual routers, VPN and mocked AWS all run in containers. Break something, delete it and rebuild in seconds, with no cloud bill.

  • containerlab + FRR BGP, OSPF, BFD routers
  • strongSwan IPsec VPN
  • Moto mocked AWS: S3, SQS, SNS, IAM
  • Terraform infrastructure as code
Build the same setup

Illustration generated with Gemini

Cao Le Nam Trung

Cao Le Nam Trung

Cloud & Network Engineer · TrungCLN

Designs and runs AWS infrastructure, hybrid networking (VPN, BGP) and cloud security. Every guide on this site is built and run for real before it is written.

LinkedIn YouTube Facebook