There have recently been three different (but related) contexts where I have asked or been asked that question:
- When a reverse proxy is adding the client IP to the
X-Forwarded-For
header. - When the client IP is being used for rate limiting.
- When checking if a client IP is contained in a configured list of ranges/prefixes/CIDRs.
As I understood more about zones my opinion on this changed. This is an attempt to capture my understanding and where I ended up.