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

🐰 25% OFF Easter Sale! Use code TDPLAYCLOUD-04022026 for 10% OFF ALL PlayClouds Subscription & 5% OFF gift cards!

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

  • jersyogg

    Member
    August 11, 2025 at 6:31 pm

    Client IP Preservation lets your backend see the real client IP without extra setup, and it works by default on AWS NLB for TCP targets. Proxy Protocol V2 adds a header with client info but requires your backend to support parsing it. Use Client IP Preservation when possible and enable Proxy Protocol only if needed (e.g., cross-VPC).

    • Nikee-TutorialsDojo

      Administrator
      August 13, 2025 at 8:58 am

      Hi jersyogg,

      Thank you for your message and for sharing your thoughts on Client IP Preservation and Proxy Protocol v2. Could you kindly confirm which specific item you’re referring to in your note? Knowing whether you mean Client IP Preservation, Proxy Protocol v2, or a combination of both will help us give you a precise answer.

      If possible, please also share a short snippet of the question item. This will allow us to check the details on our end and confirm if the feature is working as expected.

      We appreciate your patience and look forward to your reply so we can help you resolve this quickly.

      Cheers,

      Nikee @ Tutorials Dojo

  • jersyogg

    Member
    August 14, 2025 at 10:40 pm

    Client IP Preservation shows the original client IP by default on AWS NLB for TCP targets, while Proxy Protocol V2 adds headers that require backend parsing. Use Client IP Preservation when possible, and Proxy Protocol only if needed. For consistent outbound IPs or whitelisting, an ipv6 proxy from LightningProxies offers large subnet pools, static or rotating sessions, unlimited bandwidth, and global coverage.

    • This reply was modified 7 months, 4 weeks ago by  jersyogg.
    • Nikee-TutorialsDojo

      Administrator
      August 18, 2025 at 8:56 am

      Hi jersyogg,

      Apologies for the confusion earlier, and thank you for sharing your thoughts on Client IP Preservation and Proxy Protocol v2. Please share a short snippet of the practice exam question item to ensure we fully understand and can provide the most accurate clarification. This will help us check the details on our end and confirm whether the explanation aligns correctly with the intended answer.

      We appreciate your patience and look forward to your reply so we can help resolve this quickly.

      Cheers,
      Nikee @ Tutorials Dojo

Viewing 1 - 5 of 5 replies

Log in to reply.

Original Post
0 of 0 posts June 2018
Now
Skip to content