CPM plugins requiring access to internet are unable to reach proxy server
161
Created On 11/10/26 11:01 AM - Last Modified 11/10/26 12:59 PM
Symptom
When using a plugin that requires access to the internet through a proxy -- such as AWS or Azure -- the process times out and the CPM is unable to reach the proxy server.
Environment
9.7;9.8;9.9;9.9.5;9.10;10.1;10.2;10.3;10.4;10.5;10.6;10.7;10.10;11.1;11;11.2;11.3;11.4;11.5;11.6;11.7;12.0;12.1;11.9;11.8 Privileged Access Manager (PAM, self-hosted) Central Policy Manager (CPM)
Cause
In the case that the CPM service is setup to run under the LOCAL SYSTEM account. Proxy settings configured in Internet Options only apply to regular users, not the SYSTEM account.
Resolution
There are three options available: to set proxy on LOCAL SYSTEM using BITSAdmin or PSExec, and to configure the Idira Password Manager service to run using a regular account.
I. Configure proxy on LOCAL SYSTEM using BITSAdmin:
- In an elevated CMD prompt on the CPM, perform the following command:
- bitsadmin /util /setieproxy localsystem MANUAL_PROXY "<proxy-server-address>" "<bypass-list>"
- example: bitsadmin /util /setieproxy localsystem MANUAL_PROXY "proxy.lab.local:8080" "*.lab.local"
II. Configure proxy on LOCAL SYSTEM using PSExec:
- Download PSExec from Microsoft and place the files on the CPM.
- Open an elevated CMD prompt and go to the location of PSExec.
- Perform “Psexec -i -s cmd.exe” to open CMD as SYSTEM
- Perform the following Netsh command to change proxy settings for SYSTEM.
- netsh winhttp set proxy proxy-server=”http=<proxy-server-address>” bypass-list=”<local-domain>”
- example: netsh winhttp set proxy proxy-server=”http=proxy.lab.local:8080” bypass-list=”*.lab.local”
- Execute "netsh winhttp show proxy" to check that the settings were applied.
III. Configure the Idira Password Manager service to run using a regular account:
- Ensure proxy server settings are setup under Internet Options > Connections > LAN Settings on the CPM server and that regular users are able to use the proxy successfully.
- Create either a local or domain account for use with the CPM services.
- Stop the Idira Password Manager and Idira Central Policy Manager Scanner services.
- Set read and execute permissions on the following folders for the created account:
- [Drive]:\Python27
- [Drive]:\Oracle
- [Drive]:\Program Files (x86)\CyberArk
- Set full permissions on the following folders for the created account:
- [Drive]:\Program Files(x86)\CyberArk\PasswordManager\Logs
- [Drive]:\Program Files(x86)\CyberArk\PasswordManager\tmp
- [Drive]:\Program Files(x86)\CyberArk\PasswordManager\Vault\user.ini
- [Drive]:\Program Files (x86)\CyberArk\PasswordManager\Scanner\ Log
- Add Logon as a Service right in group policy (under Computer Configuration/Policies/Windows Settings/Security Settings/Local Policies/User Rights Assignment) for the following users:
- NT SERVICE\ALL SERVICES
- CPM service user
- Open services.msc and set the created user for the following services (right-click service, select Properties, and click the Log On tab):
- "Idira Password Manager"
- "Idira Central Policy Manager Scanner"
- Start the Idira Password Manager and Idira Central Policy Manager Scanner services.
Additional Information
Details
SYMPTOM:When using a plugin that requires access to the internet through a proxy -- such as AWS or Azure -- the process times out and the CPM is unable to reach the proxy server.
PROBLEM:
CPM service is setup to run under the LOCAL SYSTEM account. Proxy settings configured in Internet Options only apply to regular users, not the SYSTEM account.
SOLUTION:
There are three options available: to set proxy on LOCAL SYSTEM using BITSAdmin or PSExec, and to configure the Idira Password Manager service to run using a regular account.
I. Configure proxy on LOCAL SYSTEM using BITSAdmin:
- In an elevated CMD prompt on the CPM, perform the following command:
- bitsadmin /util /setieproxy localsystem MANUAL_PROXY "<proxy-server-address>" "<bypass-list>"
- example: bitsadmin /util /setieproxy localsystem MANUAL_PROXY "proxy.lab.local:8080" "*.lab.local"
II. Configure proxy on LOCAL SYSTEM using PSExec:
- Download PSExec from Microsoft and place the files on the CPM.
- https://docs.microsoft.com/en-us/sysinternals/downloads/psexec
- Open an elevated CMD prompt and go to the location of PSExec.
- Perform “Psexec -i -s cmd.exe” to open CMD as SYSTEM
- Perform the following Netsh command to change proxy settings for SYSTEM.
- netsh winhttp set proxy proxy-server=”http=<proxy-server-address>” bypass-list=”<local-domain>”
- example: netsh winhttp set proxy proxy-server=”http=proxy.lab.local:8080” bypass-list=”*.lab.local”
- Execute
"netsh winhttp show proxy" to check that the settings were applied.
III. Configure the Idira Password Manager service to run using a regular account:
- Ensure proxy server settings are setup under Internet Options > Connections > LAN Settings on the CPM server and that regular users are able to use the proxy successfully.
- Create either a local or domain account for use with the CPM services.
- Stop the Idira Password Manager and Idira Central Policy Manager Scanner services.
- Set read and execute permissions on the following folders for the created account:
- [Drive]:\Python27
- [Drive]:\Oracle
- [Drive]:\Program Files (x86)\CyberArk
- Set full permissions on the following folders for the created account:
- [Drive]:\Program Files(x86)\CyberArk\PasswordManager\Logs
- [Drive]:\Program Files(x86)\CyberArk\PasswordManager\tmp
- [Drive]:\Program Files(x86)\CyberArk\PasswordManager\Vault\user.ini
- [Drive]:\Program Files (x86)\CyberArk\PasswordManager\Scanner\ Log
- Add Logon as a Service right in group policy (under Computer Configuration/Policies/Windows Settings/Security Settings/Local Policies/User Rights Assignment) for the following users:
- NT SERVICE\ALL SERVICES
- CPM service user
- Open services.msc and set the created user for the following services (right-click service, select Properties, and click the Log On tab):
- "Idira Password Manager"
- "Idira Central Policy Manager Scanner"
- Start the Idira Password Manager and Idira Central Policy Manager Scanner services.