SpinTheMic
Pro

Interview practice question

Application logs show the load balancer's IP for every user

Cloud & DevOps · Networking Fundamentals · Intermediate

After putting a load balancer in front of your app, all requests in logs appear to come from the same internal IP. How do you get the real client IP?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • LB replaces source IP.
  • X-Forwarded-For header (L7).
  • Proxy protocol for L4 LBs.
  • Configure app/web server to trust LB.
  • Don't trust header from arbitrary sources.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics