Ends in
00
days
00
hrs
00
mins
00
secs
SHOP NOW

$2 OFF in ALL Azure Practice Exams & NEW AZ-500 Microsoft Azure Security Engineer Associate Practice Exams at $10.99!

Find answers, ask questions, and connect with our
community around the world.

Home Forums AWS AWS Certified Advanced Networking – Specialty NLB Client IP preservation vs Proxy protocol V2

  • NLB Client IP preservation vs Proxy protocol V2

  • Huskyz

    Member
    January 17, 2023 at 2:00 am

    Hi,

    For NLB it seems that both Client IP preservation & Proxy protocol V2 can be used to retrieve the client IP address. What is the difference and which would be suitable what kind of circumstance?

    Thanks!

  • Huskyz

    Member
    January 29, 2023 at 1:57 am

    Hi, just bumping this thread in case this is missed out.

  • Tutorials-Dojo

    Administrator
    February 20, 2023 at 3:59 am

    Hi,

    Thank you for your email. Yes, You can use both the Client IP preservation and Proxy Protocol V2 on your NLBs. The usage depends on the type of Target Group you’ll be configuring for your load balancer, which can be an:

    • Instance type target group

    • IP type target group

    • IP type target group (TCP, TLS)

    Another consideration is the health check connection. If you enabled the proxy protocol, the proxy protocol header is also included in health check connections from the network load balancer by default but with health check connections, the client convection information is not sent in the proxy protocol header.


    The client IP preservation is enabled by default. There are cases where kt can’t be disabled such as for instance and IP type target groups with UDP and TCP_UDP protocols. However, you can enable or disable client IP preservation for TCP and TLS target groups using the: preserve_client_ip.enabled target group attribute.

    I highly recommend reading this official AWS documentation for full reference:

    Client IP Preservation https://docs.aws.amazon.com/elasticloadbalancing/latest/network/load-balancer-target-groups.html#client-ip-preservation

    Proxy Protocol

    https://docs.aws.amazon.com/elasticloadbalancing/latest/network/load-balancer-target-groups.html#proxy-protocol

Viewing 1 - 3 of 3 replies

Log in to reply.

Original Post
0 of 0 posts June 2018
Now