AWS Gateway Load Balancer (GWLB) helps deploy and scale fleets of virtual network appliances, such as third-party firewalls and intrusion detection or prevention systems. It sits in the traffic path and distributes flows across appliance targets while preserving the network transparency needed for inspection architectures.
The architecture: GWLB and GWLBE
Gateway Load Balancer is deployed in a service-provider VPC with a target group containing virtual appliances. A Gateway Load Balancer Endpoint (GWLBE), powered by AWS PrivateLink, is created in the consumer VPC. Route tables direct selected traffic to the endpoint, which forwards traffic to the GWLB and its appliance fleet. This allows inspection without placing the appliances directly inside every consumer subnet.
How traffic is handled
- A route in the workload VPC sends selected traffic to a Gateway Load Balancer Endpoint.
- The endpoint forwards the traffic to the associated Gateway Load Balancer service.
- GWLB distributes flows to healthy appliance targets in its target group.
- The appliance inspects the traffic and returns it through the GWLB path.
- The traffic continues toward its destination according to the VPC routing design.
GENEVE encapsulation and flow stickiness
GWLB uses the GENEVE protocol on UDP port 6081 to encapsulate packets and carry metadata between the load balancer and appliances. GWLB supports flow stickiness so packets belonging to a flow are consistently directed to the same appliance target, which is important for stateful inspection. Appliance targets must support the required GENEVE behavior and be configured for the GWLB deployment model.
GWLB vs. other load balancers
| Load balancer | Primary purpose | Exam clue |
|---|---|---|
| Gateway Load Balancer | Scale and manage virtual network appliances | Transparent third-party firewall or inspection fleet |
| Network Load Balancer | Layer 4 TCP/UDP/TLS traffic distribution | High-performance transport-level load balancing |
| Application Load Balancer | Layer 7 HTTP/HTTPS routing | Host, path, header, or application-aware routing |
Design considerations
- Use route tables to steer only the traffic that must be inspected through the endpoint.
- Deploy appliance targets across Availability Zones and configure health checks and scaling to meet availability requirements.
- Plan symmetric routing for stateful appliances so forward and return traffic traverse the expected inspection path.
- Use GWLB endpoints to consume the inspection service from other VPCs or supported connected environments.
- Check appliance compatibility with GENEVE and the GWLB target requirements before deployment.
Exam traps
- GWLB is designed for virtual appliances, not ordinary HTTP application routing.
- GWLBE is the endpoint placed in the consumer VPC; it is not the appliance itself.
- GENEVE encapsulation uses UDP port 6081.
- Flow stickiness matters for stateful inspection appliances.
- GWLB does not replace security groups or network ACLs; it provides a scalable traffic-inspection architecture.
Test yourself
Question 1
A company wants to insert a fleet of third-party firewalls into traffic flows across multiple VPCs and scale the appliances transparently. Which service is designed for this architecture?
- Application Load Balancer
- Gateway Load Balancer
- Amazon Route 53
- Network Load Balancer
Reveal answer
Correct answer: B. Gateway Load Balancer distributes traffic to virtual network appliances and supports centralized inspection architectures.
Question 2
Which protocol does Gateway Load Balancer use to encapsulate traffic between the load balancer and appliance targets?
- GRE over TCP 443
- GENEVE over UDP 6081
- IPsec over UDP 500
- HTTP/2 over TCP 80
Reveal answer
Correct answer: B. GWLB uses GENEVE encapsulation over UDP port 6081.
Key takeaway
When a scenario needs a scalable fleet of third-party firewalls or inspection appliances, think Gateway Load Balancer. Remember the consumer-side GWLBE, GENEVE over UDP 6081, flow stickiness, and correct routing symmetry.
Related topics
AWS PrivateLink · AWS Network Firewall · Network Load Balancer
Ready for the AWS Solutions Architect Associate (SAA-C03) exam?
Turn what you learned in this topic into exam-ready skills with original, scenario-based practice questions and detailed explanations.
Original practice questions. No dumps. No shortcuts.