Enable X-Forwarded-For header on a KEMP LoadMaster

Enable X-Forwarded-For header on a KEMP LoadMaster

Question:

I have my UW relays behind a KEMP LoadMaster.  When I use Web Monitor (with a column added for ipAddress) to see active user sessions, I see all the users coming from the LoadMaster's IP address.


Solution:

The Virtual Service for your UW relays must be set to add the X-Forwarded-For header.

  • Make sure the Service Type is set to HTTP/HTTPS, under the Basic Properties section.
  • Under the Advanced Properties section, set the Add HTTP Headers option to "X-Forwarded-For (No Via)".

It really does not matter if you choose the "+ Via" or "No Via" options, but as UW does not care about the extra information sent with the "+ Via" option, it will save a tiny bit of bandwidth by not having that info added.