Behind a reverse proxy the backend sees the proxy's address, so the proxy adds X-Forwarded-For, X-Real-IP and X-Forwarded-Proto headers with the original details. The capture shows Nginx forwarding requests with those headers, which is also where spoofing happens: a client can send its own X-Forwarded-For and a misconfigured backend will believe it.
HTTP traffic behind an Nginx reverse proxy: X-Forwarded-For and related headers carrying the original client address to the backend.
Nginx HTTP Traffic with X-Forwarded-For Headers
HTTP requests to Nginx on port 8080 with X-Forwarded-For and X-Real-IP headers simulating reverse proxy traffic. Includes standard requests, 404 errors, and POST data. Shows how Nginx handles forwarded headers common in production deployments.
19412 KB100