惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

人人都是产品经理
人人都是产品经理
MyScale Blog
MyScale Blog
Y
Y Combinator Blog
罗磊的独立博客
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
P
Proofpoint News Feed
Google DeepMind News
Google DeepMind News
V
Vulnerabilities – Threatpost
T
The Blog of Author Tim Ferriss
云风的 BLOG
云风的 BLOG
Recorded Future
Recorded Future
N
News and Events Feed by Topic
B
Blog RSS Feed
阮一峰的网络日志
阮一峰的网络日志
博客园_首页
C
CXSECURITY Database RSS Feed - CXSecurity.com
博客园 - 【当耐特】
N
Netflix TechBlog - Medium
博客园 - 叶小钗
B
Blog
Vercel News
Vercel News
T
Tenable Blog
T
The Exploit Database - CXSecurity.com
Spread Privacy
Spread Privacy
T
Threat Research - Cisco Blogs
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Last Week in AI
Last Week in AI
F
Fortinet All Blogs
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Microsoft Security Blog
Microsoft Security Blog
S
Securelist
Microsoft Azure Blog
Microsoft Azure Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
P
Palo Alto Networks Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
D
DataBreaches.Net
Cyberwarzone
Cyberwarzone
Engineering at Meta
Engineering at Meta
Martin Fowler
Martin Fowler
G
GRAHAM CLULEY
Project Zero
Project Zero
Cisco Talos Blog
Cisco Talos Blog
A
Arctic Wolf
C
CERT Recently Published Vulnerability Notes
L
LangChain Blog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
C
Check Point Blog
A
About on SuperTechFans
W
WeLiveSecurity
The GitHub Blog
The GitHub Blog

AWS for Industries

How Autel Transformed Charging Station Management with AI Agents on AWS | Amazon Web Services How Danone Simplified Kubernetes at Scale with Amazon EKS Auto Mode | Amazon Web Services Build a Multi-Agent Assessment Workbench with Amazon Bedrock AgentCore | Amazon Web Services Sovereign by design: How AWS helps Nigeria’s financial services industry protect data and drive innovation | Amazon Web Services Scaling ML in production: how BBVA accelerated delivery with MLOps | Amazon Web Services Inside BBVA’s MLOps transformation: from data platform to scalable ML on AWS | Amazon Web Services Blazing a Trail: How Peloton Rebuilt the SDLC for the Agentic Era with Amazon Bedrock | Amazon Web Services Accelerate RISC-V Software Development Before Silicon: Virtual Prototyping with MachineWare’s SIM-V on AWS | Amazon Web Services How retailers deliver hyper-personalization in-store with Personalisation Hub, UST, and AWS | Amazon Web Services Deploy diagnostic-quality imaging globally with MedDream and AWS HealthImaging | Amazon Web Services Coins in Motion: Building agentic blockchain payments for in-vehicle experiences | Amazon Web Services Reduce P&ID analysis time by 80% with hybrid AI maintenance planning | Amazon Web Services Deploying industrial AI on AWS: Building the autonomous factory | Amazon Web Services How Atlantic Health cut legal document search time by 42% with Amazon Bedrock metadata filtering | Amazon Web Services Edge-to-Cloud Architecture for Real-Time Surgical Intelligence with AWS and NVIDIA | Amazon Web Services Reimagining B-Pillar DFMEA: Why Ontology-Grounded AI Is the Future of Automotive Engineering | Amazon Web Services Transforming energy trading by managing complexity and driving growth with Cloud ETRM | Amazon Web Services How Multi-Agent AI Turns Supply Chain Data into Decisions and Actions | Amazon Web Services ​​​Deploy Agentic Bidding Without Sacrificing Speed: ARTF Containers with NVIDIA GPU Acceleration on AWS​​ | Amazon Web Services Next-generation programmatic advertising: How AWS RTB Fabric redefines the game | Amazon Web Services Flexible Telecom AI Workload Deployment Across AWS Hybrid Cloud | Amazon Web Services Building a HIPAA-ready generative AI architecture for healthcare on AWS | Amazon Web Services Highlights from the 2026 AWS Life Sciences Symposium: MedTech Track | Amazon Web Services Multi-Agent Systems for Financial Services on Amazon EKS and AgentCore | Amazon Web Services How AI can help developers migrate embedded codebases between Arm SoCs | Amazon Web Services From Connected to Resilient: Cloud-Native Payment Connectivity on AWS | Amazon Web Services Ultra-low-latency cross-Region crypto trading with Avelacom and AWS | Amazon Web Services Build an AI-powered 5G Signaling Trace Analyzer Using Amazon Bedrock | Amazon Web Services Medical Legal Regulatory Review Orchestration with AI Agents on AWS | Amazon Web Services AWS showcases the agentic AI future of advertising and entertainment at Cannes Lions 2026 | Amazon Web Services The Road to 180M GRefs/s: Sizing Epic on AWS with R8ib and Enhanced EBS | Amazon Web Services BridgeWise builds responsible AI in FSI with Amazon Bedrock | Amazon Web Services Rethink Everything: Highlights from the 2026 AWS Financial Services Symposium | Amazon Web Services Improving Defect Analysis and Quality Control with AI Diagnostics | Amazon Web Services Building a cloud-based EV charging monitoring platform with real-time AI analytics | Amazon Web Services Introducing the AWS guide to the ECB Guide on outsourcing cloud services to cloud service providers | Amazon Web Services How a Luxury Retailer Accelerates Customer Experience with Amazon CloudFront | Amazon Web Services The Art of the Possible: Building an Intelligent Wealth Management Platform – Part 1 | Amazon Web Services How We Built Healthcare AI You Can Trust: The Science Behind Amazon Connect Health | Amazon Web Services How Everllence Scaled P&ID Intelligence to Improve Plant Operations | Amazon Web Services Rivian accelerates production with second-generation AWS Outposts: Improving resiliency and reducing costs | Amazon Web Services AI-Driven Development Lifecycle for Financial Services | Amazon Web Services How Agentic AI and Digital Twins on AWS Drive Operational Excellence | Amazon Web Services Modernizing Core Banking Systems: A Strategic Guide for Financial Leaders | Amazon Web Services Highlights from the 2026 AWS Life Sciences Symposium: Research and Drug Discovery | Amazon Web Services Discount Tire Uses Cloud WAN and Buffer VPC to Create a Scalable Enterprise Network Centralized third-party connectivity in AWS: Architecture patterns for highly regulated environments | Amazon Web Services FHIR-powered Care Continuum on AWS HealthLake From code to chemistry: using Kiro to tackle ADME-Tox, a key drug discovery challenge | Amazon Web Services How Toyota securely deployed HiveMQ with mTLS on AWS to power Smart Manufacturing | Amazon Web Services From record to intelligence: How EMR systems on AWS become the foundation for generative AI in healthcare | Amazon Web Services How to Connect AWS HealthOmics to Public and Private Network Sources at Runtime | Amazon Web Services Accelerating Android Builds on AWS: From 3 Hours to Under 5 Minutes with SourceFS | Amazon Web Services Closing the Loop with Amazon Bio Discovery’s Integrated Lab Partners | Amazon Web Services Massive Parallel Processing of Financial Transactions with Amazon EKS and Amazon MSK | Amazon Web Services Submit up to 100,000 Bioinformatics Workflow Runs with a Single API Call in AWS HealthOmics | Amazon Web Services Energy HPC Orchestrator powers collaborative, scalable energy computing | Amazon Web Services Automate Investment Research Using Strands Agents on Bedrock AgentCore | Amazon Web Services How OCC Built a Governed Cloud Foundation and Then Stress-Tested It Executive Insights from the 2026 AWS Life Sciences Symposium How Carlsberg’s Traitomic business leveraged AWS HealthOmics to power genetic trait development | Amazon Web Services CME Group MDP multicast data access on AWS using Transit Gateway | Amazon Web Services How retailers solve the customer identity puzzle with Amperity and AWS | Amazon Web Services Exact Sciences Transforms Bioinformatics Infrastructure with AWS HealthOmics | Amazon Web Services Building a Serverless Supply Chain Management Solution for Automotive Customers with AWS AppSync and Amazon Aurora Serverless | Amazon Web Services Accelerating physical AI with AWS and NVIDIA: building production-ready applications with simulation and real-world learning | Amazon Web Services Modernizing life-saving workloads with AWS serverless | Amazon Web Services Transforming Industrial Operations: How AVEVA and AWS drive Cloud Innovation | Amazon Web Services Introducing Amazon Bio Discovery | Amazon Web Services Accelerate Project Delivery with AI-Native Execution System on Amazon Quick | Amazon Web Services Reinvent Telecom Mediation Systems with Amazon Bedrock AgentCore, Strands Agents, and the Model Context Protocol | Amazon Web Services AWS Cloud Connectivity Patterns for Financial Market Infrastructures | Amazon Web Services Event-Driven Digital Pathology: Governed Whole Slide Image Ingestion to Scalable Inference with Amazon SageMaker | Amazon Web Services How Telefonica Germany achieved a centralized tracing solution with VPC Traffic Mirroring | Amazon Web Services AWS Teams Up with Wingstop to Deliver Wings to Millions During March Hoops Tournament | Amazon Web Services How Amazon Connect Health brings agentic AI to the point of care | Amazon Web Services How Liftoff improved conversion performance and reduced infrastructure costs with Cortex using AWS Graviton | Amazon Web Services From Prompt to Pipeline: AI-Powered Bioinformatics Workflow Development with Kiro and AWS HealthOmics | Amazon Web Services Driving Intelligent Quality in the Software-Defined Vehicle Era | Amazon Web Services How Amazon Devices Eliminated Credential Risk to Scale AI across Engineering Tools | Amazon Web Services The Evolution of BMW Group’s 3D Streaming Experience | Amazon Web Services Build ChatGPT Apps with MCP Servers and AWS Infrastructure | Amazon Web Services
Dynamic Inbound Routing for BYOIP Workloads Using Amazon VPC Route Server | Amazon Web Services
Ammar Latif · 2026-07-16 · via AWS for Industries

Managing large pools of public IPv4 addresses in AWS presents a common operational challenge: how do you route inbound internet traffic reliably through a network appliance — such as a firewall or traffic inspection device — without manual intervention when that appliance fails?

Organizations that use Bring Your Own IP (BYOIP) address pools often need to direct all inbound traffic through a centralized appliance for inspection, policy enforcement, or security monitoring. Amazon Virtual Private Cloud (Amazon VPC) supports this through internet gateway (IGW) ingress routing, which lets you route traffic entering your VPC — destined for a BYOIP pool — to a specific elastic network interface before it reaches its destination. This eliminates the need for complex address translation on inbound connections.

The challenge is resilience. Traditional static routing creates a significant operational risk: when a network appliance fails, static routes continue pointing to the failed instance until an operator manually updates the route table. Recovery can take minutes to hours, increasing downtime and the risk of human error.

Amazon VPC Route Server is a managed service that enables dynamic routing within your VPC using Border Gateway Protocol (BGP). It establishes BGP-speaking endpoints in your VPC subnets, allowing network appliances to peer directly with these endpoints to advertise routes and automatically update VPC route tables. With support for Bidirectional Forwarding Detection (BFD), it provides rapid failure detection and automated traffic rerouting — eliminating the manual configuration overhead and risk of human error associated with static routing.

In this post, we show you how to use Amazon VPC Route Server with dynamic Border Gateway Protocol (BGP) routing to automate failover for BYOIP workloads. This solution is designed for workloads that route large public IP pools through network appliances in AWS, including security inspection pipelines, IoT platforms, media delivery networks, and firewall deployments. Telecommunications operators managing large subscriber IP pools will also find this pattern directly applicable.

Prerequisites

Before you begin, make sure you have the following:

  1. Familiarity with routing concepts and how network appliances process inbound traffic
  2. Experience with AWS networking services, including Amazon VPC, route tables, and elastic network interfaces
  3. AWS Command Line Interface (AWS CLI) installed and configured, or access to the AWS Management Console
  4. Basic knowledge of AWS CloudFormation for deploying and managing infrastructure as code
  5. Important: This walkthrough creates AWS resources that incur costs, including Amazon Elastic Compute Cloud (Amazon EC2) instances, an Amazon VPC Route Server, and Route Server endpoints. For pricing details, see Amazon VPC pricing and Amazon EC2 pricing. Remember to delete all resources after testing to avoid ongoing charges.

Solution Overview

Amazon VPC Route Server provides dynamic routing capabilities within your VPC using Border Gateway Protocol (BGP). Network appliances establish BGP sessions with VPC Route Server endpoints and advertise IP prefixes with specific attributes. When a failure occurs, BGP automatically withdraws routes and reconverges to healthy paths — updating your VPC route tables without manual intervention. Recovery time drops from minutes to seconds.

Key Benefits

  • Automatic failover: Sub-second failure detection with Bidirectional Forwarding Detection (BFD)
  • Reduced operational overhead: No manual route table updates during failures
  • Scalability: Supports multiple IP pools and network appliances
  • Standards-based: Uses industry-standard BGP and BFD protocols

How Dynamic Routing Eliminates Single Points of Failure

This solution deploys two network appliances across separate Availability Zones. Each appliance establishes BGP sessions with VPC Route Server endpoints in their respective subnets. Both appliances advertise the same BYOIP prefixes, but the active appliance uses a shorter AS Path to ensure BGP prefers its routes.

With static routing, the internet gateway route table points directly to a single network appliance elastic network interface:

IGW Route Table (static):
[BYOIP_PREFIX] → eni-xxxxx (active appliance)

If the active appliance fails, this route remains pointing to the failed elastic network interface until someone manually updates it — leaving traffic dropped for minutes to hours.

With dynamic routing through VPC Route Server, this manual step is eliminated. When the active appliance fails, BGP detects the loss and reconverges automatically to the standby appliance — updating the internet gateway route table within seconds.

The following architecture diagram shows active and standby network appliances peering with VPC Route Server endpoints, with automatic route propagation to the internet gateway and VPC route tables:

Figure 1: Architecture diagram — Active and standby appliances peering with VPC Route Server endpoints, IGW association

Figure 1: Architecture diagram — Active and standby appliances peering with VPC Route Server endpoints, IGW association

Key Architecture Components

  1. Two appliances across different AZs (instance-rs-az1, instance-rs-az2)
  2. Four Route Server Endpoints (2 per subnet for redundancy)
  3. BGP peering between appliances and Route Server Endpoints
  4. Automatic route propagation to both VPC route table and IGW route table
  5. AS Path manipulation for path preference (active uses short path, standby uses long path)

How It Works

Active Appliance (AZ1):

  1. Advertises [BYOIP_PREFIX] with AS Path: 65001
  2. Maintains BGP sessions with RSE1 and RSE2

Standby Appliance (AZ2):

  1. Advertises [BYOIP_PREFIX] with AS Path: 65001 65001 (longer path, lower preference)
  2. Maintains BGP sessions with RSE3 and RSE4

VPC Route Server:

  1. Receives both advertisements
  2. Selects the active appliance route (shorter AS Path wins)
  3. Propagates to IGW route table: [BYOIP_PREFIX] → eni-active
  4. Propagates to VPC route table: [BYOIP_PREFIX] → eni-active

Automatic Failover Process

When the active appliance fails, the following sequence occurs automatically:

  1. Failure detection — BGP keepalive timeout or BFD
  2. Route withdrawal — VPC Route Server marks the BGP session as DOWN
  3. Reconvergence — The standby route becomes the best path
  4. Route table update — Both IGW and VPC route tables update automatically
  5. Traffic restoration — Traffic flows to the standby appliance

Deploy the solution

You can deploy this solution using the AWS CloudFormation template available in the aws-samples repository.

Note: This walkthrough uses a private loopback IP address (172.16.1.1/32) to demonstrate inbound routing behavior without requiring a provisioned BYOIP pool. The prefix 198.51.100.0/23, visible in the BGP and Route Server outputs, represents a sample BYOIP prefix to illustrate how a real public IP pool would appear alongside the demo configuration. The routing mechanics — BGP peering, AS Path preference, route propagation, and automatic failover — work identically regardless of whether the advertised prefix is private or public.

To move from this demo to a production BYOIP deployment, you need to:

  1. Provision your BYOIP address pool and advertise it to AWS (see Bring your own IP addresses (BYOIP)).
  2. Associate the BYOIP pool with your internet gateway.
  3. Update the GoBGP configuration (or your network appliance) to advertise your BYOIP CIDR instead of the demo loopback address.

All other components — Route Server, BGP peering, AS Path manipulation, and failover behavior — remain unchanged.

What the template creates

The CloudFormation template deploys the following resources:

  • A VPC (10.0.0.0/16) with three subnets across two Availability Zones
  • An internet gateway with an associated edge route table
  • An Amazon VPC Route Server (Autonomous System Number (ASN) 65000) with four endpoints (two per Availability Zone)
  • Two Amazon EC2 instances (t4g.micro, Amazon Linux 2023) acting as network appliances, each running GoBGP v3.36.0
  • One access instance for testing connectivity
  • BGP peering between each appliance and its local Route Server endpoints
  • Route propagation to both the VPC route table and the internet gateway route table
  • An AWS Identity and Access Management (IAM) role with Session Manager, a capability of AWS Systems Manager access for secure instance connectivity
  • A security group allowing BGP (TCP port 179) and ICMP within the VPC

Launch the stack

You can deploy the stack using either the AWS Management Console or the AWS CLI.

Option 1: AWS Management Console

  1. Sign in to the AWS CloudFormation console.
  2. Choose Create stack.
  3. Choose With new resources (standard).
  4. For Template source, choose Upload a template file.
  5. Choose file.
  6. Select the downloaded template file.
  7. Choose Next.
  8. For Stack name, enter a name such as route-server-byoip-demo.
  9. Choose Next on each remaining configuration page, accepting the default values.
  10. Choose Submit.

Option 2: AWS CLI

aws cloudformation create-stack \
  --stack-name route-server-byoip-demo \
  --template-body file://IR_RS_CF.yaml \
  --capabilities CAPABILITY_IAM

The CAPABILITY_IAM flag is required because the template creates an IAM role for Systems Manager access.

Wait for deployment to complete

The stack takes approximately 5–10 minutes to deploy. You can monitor progress in the CloudFormation console under the Events tab.

When the stack status shows CREATE_COMPLETE, the Outputs tab displays the IP addresses of all four Route Server endpoints. Note these for verification in the next section.

Walkthrough

The steps and screenshots below help in understanding the solution deployed using the sample CloudFormation template.

From the console, navigate to Amazon VPC and select ‘Route Servers’ from the left sidebar. Check the Route Server Endpoints from the VPC Route Server:

Figure 2 VPC Route Server endpoints in the AWS Console

Figure 2: VPC Route Server endpoints in the AWS Console

Open the ‘Routes’ tab and check routes installed by the Route Server:

Figure 3 Routes installed by the Route Server

Figure 3: Routes installed by the Route Server

BGP Peering

The open-source BGP tool GoBGP is used to establish BGP peering between appliances and Route Server. Access the instances using Session Manager. Inspect the GoBGP configuration from one of the appliance instances (/home/ec2-user/gobgpd.conf).

Check the BGP session establishment and advertised routes from the appliance instances.

From network appliance 1:

sh-5.2$ sudo /home/ec2-user/gobgp neighbor
Peer         AS  Up/Down State       |#Received  Accepted
10.0.1.16 65000 02:41:38 Establ      |        0         0
10.0.1.73 65000 02:41:39 Establ      |        0         0

sh-5.2$  sudo /home/ec2-user/gobgp global rib
   Network              Next Hop             AS_PATH           Age        Attrs
*> 198.51.100.0/23      0.0.0.0                               00:03:41   [{Origin: ?}]
*> 172.16.1.1/32        0.0.0.0                               02:41:48   [{Origin: ?}]

From network appliance 2:

sh-5.2$  sudo /home/ec2-user/gobgp neighbor
Peer          AS  Up/Down State       |#Received  Accepted
10.0.2.74  65000 03:00:02 Establ      |        0         0
10.0.2.150 65000 03:00:02 Establ      |        0         0

sh-5.2$ sudo /home/ec2-user/gobgp global rib
   Network              Next Hop             AS_PATH           Age        Attrs
*> 198.51.100.0/23      0.0.0.0              65001 65001      00:03:30   [{Origin: ?}]
*> 172.16.1.1/32        0.0.0.0              65001 65001      03:04:57   [{Origin: ?}]

Figure 4: IGW route table showing BGP-propagated route to active appliance

Ingress Routing

From the IGW Route Table, perform edge association with the IGW as shown below. Verify that the IGW route table does not have any subnets associated from the ‘Subnet associations’ tab.

Figure4 Ingress Routing

Verify that the route table reflects the BGP-propagated route pointing to the active appliance from AZ1:

Figure 5 IGW route table showing BGP-propagated route to active appliance

Figure 5: IGW route table after failover — traffic routed to standby appliance

Failover Verification

When network appliance 1 fails or its connection fails, BGP with BFD detects the failure and the route is immediately withdrawn from the IGW route table. A new route towards the standby appliance is updated automatically. Note the target ENI change in Figure 6 from Figure 5.

Figure 6 IGW route table after failover — traffic routed to standby applianceFigure 6: IGW route table after failover — traffic routed to standby appliance

Cleanup

To avoid ongoing charges, delete the resources you created in this walkthrough.

To delete the CloudFormation stack:

  1. Open the AWS CloudFormation console.
  2. Select the stack you deployed from the aws-samples repository.
  3. Choose Delete.
  4. Confirm the deletion when prompted.

CloudFormation removes the following resources automatically:

  1. VPC and networking components (subnets, route tables, and route table associations)
  2. Amazon EC2 instances (instance-rs-az1, instance-rs-az2, and access instance)
  3. VPC Route Server and associated resources (endpoints, association, propagation, and peers)
  4. Internet Gateway and VPC Gateway Attachment
  5. Security groups
  6. IAM role and instance profile for Systems Manager access

To remove the BYOIP pool association:

If you have associated a BYOIP address pool with the Internet Gateway for this walkthrough, disassociate it before deleting the stack. For instructions, see Bring your own IP addresses (BYOIP) in Amazon EC2.

Note: Verify that all resources have been deleted in the AWS Management Console to confirm no charges continue to accrue.

Conclusion

In this post, you deployed a dynamic ingress routing solution using Amazon VPC Route Server and BGP. You configured two network appliances with AS Path manipulation to establish active-standby failover, and verified that route propagation updates the internet gateway route table automatically when an appliance fails.

You can extend this architecture further by enabling active-active routing with equal-cost paths, tuning BFD timers for sub-second failure detection, or scaling to multiple BYOIP prefixes. Combine Route Server SNS notifications with Amazon CloudWatch alarms and VPC Flow Logs to monitor BGP session health and track traffic shifts during failover events.

To get started, deploy the solution using the aws-samples repository and adapt it to your BYOIP pool configuration.

Have questions or feedback? Leave a comment below or contribute to the repository on GitHub. We’d love to hear how you’re using Amazon VPC Route Server in your environment.