How to allow Client IP to show when connecting in a load-balanced environment?

How to allow Client IP to show when connecting in a load-balanced environment?

87
Created On 11/10/26 11:03 AM - Last Modified 11/10/26 16:00 PM


Objective


How to allow Client IP to show when connecting in a load-balanced environment?
 


Environment


14.6

Procedure



Configure the parameter in web.config of PVWA:
 

LoadBalancerClientAddressHeader

The HTTP Header field's name from which the PVWA should read the client IP. This parameter should be used when the PVWA is behind a load balancer. If the PVWA is behind a load balancer and this parameter is not used, or the specified value does not exist in the HTTP Header, the Vault will log incoming requests as if their source is the load balancer and not the real client IP.

Acceptable Values: String

After adding the paramter, perform iisreset to restart PVWA to live the changes. 

There are several cases which configured:
<add key="LoadBalancerClientAddressHeader" value="X-Forwarded-For" />
But it does not work, as it was shared that PVWA does not support "X-Forwarded-For"

Tested and supported configuration is:
<add key="LoadBalancerClientAddressHeader" value="HTTP_X_Forwarded_For" />
 


Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000001BO9CAM&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail