r/aws•
pythonpoole

Global Accelerator — Client IP Preservation on NLB?

networking

Is there some sort of a technical limitation which prevents the client IP from being preserved when using Global Accelerator with a Network Load Balancer endpoint?

It seems to me that client IP preservation would be a very important feature and if AWS operates both the Global Accelerator edge servers and the NLB endpoint, I'm a bit confused why AWS is unable to preserve the client IP on the NLB.

Posted Mar 2, 2020, 8:22 PM UTC

12
1000PiecesPlus•

Not that it helps you, but they can do it for ALBs and for EC2 instances, though I assume you already knew that. See https://docs.aws.amazon.com/global-accelerator/latest/dg/preserve-client-ip-address.html

1
pythonpooleOP•

Yes, thanks I was aware.

It's just that my use case necessitates the use of a Network Load Balancer for a few different reasons—one of which being I would like UDP support, another being that I would like to keep latency as low as possible, and finally I have a situation where I would be operating a SaaS with custom domain support so I would have potentially tens of thousands of customers requiring their own SSL/TLS certificates and the ALB certificate limits (default 25 certificates per ALB) do not make this practical to accomplish at scale.

It's particularly annoying because if you set an EC2 instance as the accelerator endpoint then you can preserve the client IP (and have all the benefits of UDP, low latency, self-provisioned certificates etc.) but if you set a Network Load Balancer as an endpoint and the NLB's target is an EC2 instance then you can't preserve the client IP (even though it seems like it should be possible to do). It's very frustrating because I can't just have the accelerator point to one EC2 instance, I need to be able support high availability.

Another issue is that client IP preservation—even for an ALB—is only supported in specific regions, and one of the regions I want to operate in apparently is not supported. I don't really understand why such a core feature is region-specific, especially given that it is marketed as a 'global' accelerator.

1