<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>article Load Balancing the CCP - Configure Allowed Machines authentication using X-Forwarded-For on Microsoft Application Request Router IIS Extension in Secrets Management Articles</title>
    <link>https://live.paloaltonetworks.com/t5/secrets-management-articles/load-balancing-the-ccp-configure-allowed-machines-authentication/ta-p/1428736</link>
    <description>&lt;P&gt;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:&lt;/P&gt;
&lt;UL&gt;&lt;LI&gt;
&lt;P&gt;Define the load balancer as a&amp;nbsp;&lt;B&gt;Transparent Proxy&lt;/B&gt;&amp;nbsp;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.&lt;/P&gt;
&lt;/LI&gt;&lt;LI&gt;
&lt;P&gt;Set the load balancer to attach the&amp;nbsp;&lt;B&gt;X-Forwarded-For&lt;/B&gt;&amp;nbsp;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.&lt;/P&gt;
&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;The following example uses ARR but, use any load balancer /proxy that supports adding&amp;nbsp;&lt;B&gt;X-Forwarded-For&lt;/B&gt;:&lt;/P&gt;
&lt;H3&gt;Steps&lt;/H3&gt;
&lt;OL&gt;&lt;LI&gt;
&lt;P&gt;&lt;A href="https://docs-er.cyberark.com/credential-providers/latest/en/Content/CCP/Load-Balancing-the-Central-Credential-Provider.htm#" target="_blank"&gt;Install the&amp;nbsp;Central Credential Provider&lt;/A&gt;&amp;nbsp;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.&lt;/P&gt;
&lt;TABLE cellspacing="0"&gt;&lt;COLGROUP&gt;&lt;COL /&gt;&lt;COL /&gt;&lt;/COLGROUP&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD colspan="1" rowspan="1"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD colspan="1" rowspan="1"&gt;
&lt;P&gt;Note: Use the same AppID on all load balanced Central Credential Providers.&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;
&lt;/LI&gt;&lt;LI&gt;
&lt;P&gt;On the IIS machine that will serve as the load balancer server, install&amp;nbsp;Microsoft Application Request Router IIS Extension. You can download the installation files from&amp;nbsp;&lt;A href="http://blogs.iis.net/erez/archive/2013/11/27/installing-arr-manually-without-webpi.aspx" target="_blank"&gt;here&lt;/A&gt;.&lt;/P&gt;
&lt;TABLE cellspacing="0"&gt;&lt;COLGROUP&gt;&lt;COL /&gt;&lt;COL /&gt;&lt;/COLGROUP&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD colspan="1" rowspan="1"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD colspan="1" rowspan="1"&gt;
&lt;P&gt;Note: This machine cannot be one of the servers where the Central Credential Provider Web Service is installed.&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;
&lt;/LI&gt;&lt;LI&gt;
&lt;P&gt;On the&amp;nbsp;Central Credential Provider&amp;nbsp;server, in the folder where the web service is installed, open&amp;nbsp;web.config. Add a list of trusted-proxy IPs (TrustedProxies).&lt;/P&gt;
&lt;P&gt;The&amp;nbsp;Central Credential Provider&amp;nbsp;looks up an&amp;nbsp;&lt;B&gt;X-Forwarded-For&lt;/B&gt;&amp;nbsp;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.&lt;/P&gt;
&lt;PRE&gt;
&amp;lt;!-- Set Trusted proxies ip list, range or subnet in CIDR format&amp;nbsp;&amp;nbsp;(Part of a feature that support ip-auth for machines behind proxies )--&amp;gt;
&amp;lt;add key="TrustedProxies" value="1.2.3.4, 5.6.7.8-5.6.7.20, 7.8.9.10/24"/&amp;gt;&lt;/PRE&gt;
&lt;TABLE cellspacing="0"&gt;&lt;COLGROUP&gt;&lt;COL /&gt;&lt;COL /&gt;&lt;/COLGROUP&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD colspan="1" rowspan="1"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD colspan="1" rowspan="1"&gt;
&lt;P&gt;The X-Forwarded-For header must specify only one IP.&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;
&lt;/LI&gt;&lt;LI&gt;
&lt;P&gt;Configure the proxy to support the&amp;nbsp;&lt;B&gt;X-Forwarded-For&lt;/B&gt;&amp;nbsp;header with the originating IP address to resolve address-based authentication.&lt;/P&gt;
&lt;/LI&gt;&lt;LI&gt;
&lt;P&gt;For the ARR example, define a&amp;nbsp;server farm.&lt;/P&gt;
&lt;UL&gt;&lt;LI&gt;Include all the&amp;nbsp;Central Credential Provider&amp;nbsp;web service servers.&lt;/LI&gt;&lt;LI&gt;Define a load balancing algorithm for this server farm. For details, see&amp;nbsp;&lt;A href="http://www.iis.net/learn/extensions/configuring-application-request-routing-(arr)/define-and-configure-an-application-request-routing-server-farm" target="_blank"&gt;Define and Configure an Application Request Routing Server Farm&lt;/A&gt;.&lt;/LI&gt;&lt;/UL&gt;
&lt;/LI&gt;&lt;LI&gt;
&lt;P&gt;Define the routing rules for the server farm. For detail, see&amp;nbsp;&lt;A href="http://www.iis.net/learn/extensions/configuring-application-request-routing-(arr)/http-load-balancing-using-application-request-routing" target="_blank"&gt;HTTP Load Balancing using Application Request Routing&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;Verify that the default connection between the load balancer server and the&amp;nbsp;Central Credential Provider&amp;nbsp;servers is secure.&lt;/P&gt;
&lt;/LI&gt;&lt;LI&gt;
&lt;P&gt;In the PVWA /&amp;nbsp;Privilege Cloud&amp;nbsp;portal, in the&amp;nbsp;AIMWebService&amp;nbsp;application, add the address of all the machines in the load balancing environment to the&amp;nbsp;Allowed Machines&amp;nbsp;tab.&lt;/P&gt;
&lt;OL&gt;&lt;LI&gt;
&lt;P&gt;In the&amp;nbsp;AIMWebService’s Application Details page, display the Allowed Machines tab.&lt;/P&gt;
&lt;/LI&gt;&lt;LI&gt;
&lt;P&gt;Click&amp;nbsp;Add; the Add allowed machine window is displayed.&lt;/P&gt;
&lt;/LI&gt;&lt;/OL&gt;
&lt;OL&gt;&lt;LI&gt;
&lt;P&gt;Specify the IP/hostname/DNS of the machine where the application will run and will request passwords, and click&amp;nbsp;Add. The IP address is listed in the Allowed Machines tab.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="ka3Ht0000009YXrIAM__eid=ka3Ht0000009YXr&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EMHt000006kPGd.png"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/98657i98670D37C1422A99/image-size/large?v=v2&amp;amp;px=999" role="button" title="ka3Ht0000009YXrIAM__eid=ka3Ht0000009YXr&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EMHt000006kPGd.png" alt="ka3Ht0000009YXrIAM__eid=ka3Ht0000009YXr&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EMHt000006kPGd.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/LI&gt;&lt;/OL&gt;
&lt;OL&gt;&lt;LI&gt;Repeat these steps to list the address of every machine in the load balancing environment.&lt;/LI&gt;&lt;/OL&gt;
&lt;/LI&gt;&lt;/OL&gt;</description>
    <pubDate>Thu, 21 Mar 2024 10:11:25 GMT</pubDate>
    <dc:creator>CyberArkAlumni</dc:creator>
    <dc:date>2024-03-21T10:11:25Z</dc:date>
    <item>
      <title>Load Balancing the CCP - Configure Allowed Machines authentication using X-Forwarded-For on Microsoft Application Request Router IIS Extension</title>
      <link>https://live.paloaltonetworks.com/t5/secrets-management-articles/load-balancing-the-ccp-configure-allowed-machines-authentication/ta-p/1428736</link>
      <description>&lt;P&gt;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:&lt;/P&gt;
&lt;UL&gt;&lt;LI&gt;
&lt;P&gt;Define the load balancer as a&amp;nbsp;&lt;B&gt;Transparent Proxy&lt;/B&gt;&amp;nbsp;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.&lt;/P&gt;
&lt;/LI&gt;&lt;LI&gt;
&lt;P&gt;Set the load balancer to attach the&amp;nbsp;&lt;B&gt;X-Forwarded-For&lt;/B&gt;&amp;nbsp;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.&lt;/P&gt;
&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;The following example uses ARR but, use any load balancer /proxy that supports adding&amp;nbsp;&lt;B&gt;X-Forwarded-For&lt;/B&gt;:&lt;/P&gt;
&lt;H3&gt;Steps&lt;/H3&gt;
&lt;OL&gt;&lt;LI&gt;
&lt;P&gt;&lt;A href="https://docs-er.cyberark.com/credential-providers/latest/en/Content/CCP/Load-Balancing-the-Central-Credential-Provider.htm#" target="_blank"&gt;Install the&amp;nbsp;Central Credential Provider&lt;/A&gt;&amp;nbsp;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.&lt;/P&gt;
&lt;TABLE cellspacing="0"&gt;&lt;COLGROUP&gt;&lt;COL /&gt;&lt;COL /&gt;&lt;/COLGROUP&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD colspan="1" rowspan="1"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD colspan="1" rowspan="1"&gt;
&lt;P&gt;Note: Use the same AppID on all load balanced Central Credential Providers.&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;
&lt;/LI&gt;&lt;LI&gt;
&lt;P&gt;On the IIS machine that will serve as the load balancer server, install&amp;nbsp;Microsoft Application Request Router IIS Extension. You can download the installation files from&amp;nbsp;&lt;A href="http://blogs.iis.net/erez/archive/2013/11/27/installing-arr-manually-without-webpi.aspx" target="_blank"&gt;here&lt;/A&gt;.&lt;/P&gt;
&lt;TABLE cellspacing="0"&gt;&lt;COLGROUP&gt;&lt;COL /&gt;&lt;COL /&gt;&lt;/COLGROUP&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD colspan="1" rowspan="1"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD colspan="1" rowspan="1"&gt;
&lt;P&gt;Note: This machine cannot be one of the servers where the Central Credential Provider Web Service is installed.&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;
&lt;/LI&gt;&lt;LI&gt;
&lt;P&gt;On the&amp;nbsp;Central Credential Provider&amp;nbsp;server, in the folder where the web service is installed, open&amp;nbsp;web.config. Add a list of trusted-proxy IPs (TrustedProxies).&lt;/P&gt;
&lt;P&gt;The&amp;nbsp;Central Credential Provider&amp;nbsp;looks up an&amp;nbsp;&lt;B&gt;X-Forwarded-For&lt;/B&gt;&amp;nbsp;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.&lt;/P&gt;
&lt;PRE&gt;
&amp;lt;!-- Set Trusted proxies ip list, range or subnet in CIDR format&amp;nbsp;&amp;nbsp;(Part of a feature that support ip-auth for machines behind proxies )--&amp;gt;
&amp;lt;add key="TrustedProxies" value="1.2.3.4, 5.6.7.8-5.6.7.20, 7.8.9.10/24"/&amp;gt;&lt;/PRE&gt;
&lt;TABLE cellspacing="0"&gt;&lt;COLGROUP&gt;&lt;COL /&gt;&lt;COL /&gt;&lt;/COLGROUP&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD colspan="1" rowspan="1"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD colspan="1" rowspan="1"&gt;
&lt;P&gt;The X-Forwarded-For header must specify only one IP.&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;
&lt;/LI&gt;&lt;LI&gt;
&lt;P&gt;Configure the proxy to support the&amp;nbsp;&lt;B&gt;X-Forwarded-For&lt;/B&gt;&amp;nbsp;header with the originating IP address to resolve address-based authentication.&lt;/P&gt;
&lt;/LI&gt;&lt;LI&gt;
&lt;P&gt;For the ARR example, define a&amp;nbsp;server farm.&lt;/P&gt;
&lt;UL&gt;&lt;LI&gt;Include all the&amp;nbsp;Central Credential Provider&amp;nbsp;web service servers.&lt;/LI&gt;&lt;LI&gt;Define a load balancing algorithm for this server farm. For details, see&amp;nbsp;&lt;A href="http://www.iis.net/learn/extensions/configuring-application-request-routing-(arr)/define-and-configure-an-application-request-routing-server-farm" target="_blank"&gt;Define and Configure an Application Request Routing Server Farm&lt;/A&gt;.&lt;/LI&gt;&lt;/UL&gt;
&lt;/LI&gt;&lt;LI&gt;
&lt;P&gt;Define the routing rules for the server farm. For detail, see&amp;nbsp;&lt;A href="http://www.iis.net/learn/extensions/configuring-application-request-routing-(arr)/http-load-balancing-using-application-request-routing" target="_blank"&gt;HTTP Load Balancing using Application Request Routing&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;Verify that the default connection between the load balancer server and the&amp;nbsp;Central Credential Provider&amp;nbsp;servers is secure.&lt;/P&gt;
&lt;/LI&gt;&lt;LI&gt;
&lt;P&gt;In the PVWA /&amp;nbsp;Privilege Cloud&amp;nbsp;portal, in the&amp;nbsp;AIMWebService&amp;nbsp;application, add the address of all the machines in the load balancing environment to the&amp;nbsp;Allowed Machines&amp;nbsp;tab.&lt;/P&gt;
&lt;OL&gt;&lt;LI&gt;
&lt;P&gt;In the&amp;nbsp;AIMWebService’s Application Details page, display the Allowed Machines tab.&lt;/P&gt;
&lt;/LI&gt;&lt;LI&gt;
&lt;P&gt;Click&amp;nbsp;Add; the Add allowed machine window is displayed.&lt;/P&gt;
&lt;/LI&gt;&lt;/OL&gt;
&lt;OL&gt;&lt;LI&gt;
&lt;P&gt;Specify the IP/hostname/DNS of the machine where the application will run and will request passwords, and click&amp;nbsp;Add. The IP address is listed in the Allowed Machines tab.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="ka3Ht0000009YXrIAM__eid=ka3Ht0000009YXr&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EMHt000006kPGd.png"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/98657i98670D37C1422A99/image-size/large?v=v2&amp;amp;px=999" role="button" title="ka3Ht0000009YXrIAM__eid=ka3Ht0000009YXr&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EMHt000006kPGd.png" alt="ka3Ht0000009YXrIAM__eid=ka3Ht0000009YXr&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EMHt000006kPGd.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/LI&gt;&lt;/OL&gt;
&lt;OL&gt;&lt;LI&gt;Repeat these steps to list the address of every machine in the load balancing environment.&lt;/LI&gt;&lt;/OL&gt;
&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Thu, 21 Mar 2024 10:11:25 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/secrets-management-articles/load-balancing-the-ccp-configure-allowed-machines-authentication/ta-p/1428736</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2024-03-21T10:11:25Z</dc:date>
    </item>
  </channel>
</rss>

