DEV Community

Damien Gallagher
Damien Gallagher

Posted on

Global Accelerator Now Keeps Client IPs for NLBs With TLS Listeners

For years the rule has been simple: if you want the real client IP behind Global Accelerator, you don't terminate TLS on the NLB. On 23 November AWS removed that trade-off.


What changed

Per the announcement, Global Accelerator now preserves the client IP for traffic sent to Network Load Balancer endpoints with TLS listeners. Previously you couldn't add an NLB with a TLS listener to an accelerator that had client IP preservation turned on. You had to choose.

Now you can terminate TLS at the NLB and your application still sees the original client IP.


Why it's useful

AWS lists the things that depend on the real IP: security groups, geo-blocking, rate limiting, fraud detection, audit logging, allowlists and compliance controls. If your backend only ever saw the accelerator or NLB address, those controls were weaker or needed a workaround such as Proxy Protocol handling.

The post positions this for workloads that need TLS at Layer 4: non-HTTP TCP protocols, apps that need static or Elastic IPs, and high-throughput traffic where a Layer 7 balancer isn't the right fit.


How to enable it

No new setting. Add an NLB with a TLS listener as an endpoint to an accelerator that already has client IP preservation on, the same way you'd add any NLB. AWS says no additional configuration is required.

Cost: no additional charge, standard Global Accelerator pricing applies. It's available in all commercial regions, excluding GovCloud (US) and China.


What I'd check

  • Existing accelerators. If you worked around this limit with a different design, such as TLS passthrough to the targets, decide whether moving TLS termination to the NLB is actually better for you. Certificate management is the main difference.
  • Security group rules. With client IPs now arriving at targets, your target security groups see real client addresses. Check that rules written for the old pattern still do what you intend.
  • Logs. Anything that logged the NLB's address as the source may change its output.
  • Docs. The announcement points to the client IP preservation section of the Global Accelerator Developer Guide for the exact constraints. I only read the announcement, so read that page before changing production.

I haven't tested this. It's a small change that removes an awkward design constraint, and those are the ones that tend to save the most rework. What workaround are you running today that this makes redundant?


Sources

Drafted with AI assistance. I review and edit every post.

Top comments (0)