Load Balancing the CCP - Configure Allowed Machines authentication using X-Forwarded-For on Microsoft Application Request Router IIS Extension

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

Welcome Idira to LIVEcommunity!

Our community just got stronger! Explore new identity security resources, connect with experts, and discover more ways to learn and collaborate.

Meet Idira

Secrets Management Articles
3 min read
L1 Bithead
No ratings

If the load balancer replaces the source IP of the routed packets with its own IP, the Central Credential Provider will not be able to IP-authenticate the machine that initiated the password request. To enable the Central Credential Provider to resolve the IP of the machine that initiated the request, apply one of the following configurations:

  • Define the load balancer as a Transparent Proxy to preserve the source IP of the originator. This way the load balancer does not modify the packet and the Central Credential Provider is not aware that the load balancer is managing the network traffic.

  • Set the load balancer to attach the X-Forwarded-For header to the routed packets with the specification of the original source IP. This requires configuration in both the load balancer and the Central Credential Provider.

The following example uses ARR but, use any load balancer /proxy that supports adding X-Forwarded-For:

Steps

  1. Install the Central Credential Provider on the Windows machines included in the load balancing environment. Verify that each web service is properly installed and working before you start configuring the load balancer server.

     

    Note: Use the same AppID on all load balanced Central Credential Providers.

  2. On the IIS machine that will serve as the load balancer server, install Microsoft Application Request Router IIS Extension. You can download the installation files from here.

     

    Note: This machine cannot be one of the servers where the Central Credential Provider Web Service is installed.

  3. On the Central Credential Provider server, in the folder where the web service is installed, open web.config. Add a list of trusted-proxy IPs (TrustedProxies).

    The Central Credential Provider looks up an X-Forwarded-For header for this list of proxy servers in an attempt to resolve the true originating IP address of the request. If the request is received from a server that is NOT on this list of proxy servers, it will use the IP of the proxy server and not the originating IP.

    <!-- Set Trusted proxies ip list, range or subnet in CIDR format  (Part of a feature that support ip-auth for machines behind proxies )-->
    <add key="TrustedProxies" value="1.2.3.4, 5.6.7.8-5.6.7.20, 7.8.9.10/24"/>
     

    The X-Forwarded-For header must specify only one IP.

  4. Configure the proxy to support the X-Forwarded-For header with the originating IP address to resolve address-based authentication.

  5. For the ARR example, define a server farm.

  6. Define the routing rules for the server farm. For detail, see HTTP Load Balancing using Application Request Routing.

    Verify that the default connection between the load balancer server and the Central Credential Provider servers is secure.

  7. In the PVWA / Privilege Cloud portal, in the AIMWebService application, add the address of all the machines in the load balancing environment to the Allowed Machines tab.

    1. In the AIMWebService’s Application Details page, display the Allowed Machines tab.

    2. Click Add; the Add allowed machine window is displayed.

    1. Specify the IP/hostname/DNS of the machine where the application will run and will request passwords, and click Add. The IP address is listed in the Allowed Machines tab.

      ka3Ht0000009YXrIAM__eid=ka3Ht0000009YXr&feoid=00N2J000009R3kv&refid=0EMHt000006kPGd.png

    1. Repeat these steps to list the address of every machine in the load balancing environment.
Rate this article:
  • 2565 Views
  • 0 comments
  • 0 Likes
Article Dashboard
Version history
Last Updated:
‎03-21-2024 03:11 AM
Updated by: