Configure ACC to use a proxy for all traffic
Configure the Agent Client Collector (ACC) to use a proxy for all traffic by setting environment variables. Using a proxy helps you enhance security, monitor and control internet usage, improve performance through caching, protect privacy, and enforce compliance with your organization's policies.
Before you begin
Consider the following aspects before configuration.
- Ports, protocols, and firewall/proxy configurations required to enable ACC to reach the ServiceNow cloud
- Network-based security tools (IDS, proxy, SSL interception, NAC) that might block ACC connectivity
- DNS resolution and routing for stable connectivity and failover support
- Support of WebSockets by the proxy
- Firewall rules that prohibit access to ITOM gateway
Role required: admin
About this task
Proxy setup is needed in the following use cases:
- You're using ACC for DEX or ACC-V without a MID Server.
- You must route traffic through an internal proxy to reach the ServiceNow cloud.
Procedure
- Run diagnostics to verify that the endpoint can reach ServiceNow before making changes.
| Option | Command |
|---|---|
| Windows | PowerShell: `.\servicenow-net-check.ps1` |
| macOS | |
Open the acc.yml file from the following location.
Option Path Windows C:\ProgramData\ServiceNow\agent-client-collector\configmacOS /Library/Application\ Support/servicenow/agent-client-collector/configIn acc.yml with a version of ACC greater than 4.3.0, set the proxy as shown in the following example:
https-proxy: "http://intproxy0.your-corp.com:8080"Set up proxy authentication by setting the user name and password in the environment variable itself:
HTTPS_PROXY="http://username:password@intproxy0.your-corp.com:8080"Set the NO_PROXY environment using a comma-separated list of hosts to not proxy.
For example,
localhost.Test connectivity using a proxy server with mTLS used by ITOM Cloud Services.
You need the following files from your local endpoint:
cacert.pem- Certificate Authority certificate file used to validate the server identity (downloaded from ServiceNow with openssl)Windows:
openssl s_client -showcerts -connect itomcnc-prod-gateway-amer.sncapps.service-now.com:443 <NUL | findstr /B /C:"-----BEGIN CERTIFICATE-----" /C:"-----END CERTIFICATE-----" > cacert.pemmacOS:
openssl s_client -showcerts -connect itomcnc-prod-gateway-amer.sncapps.service-now.com:443 </dev/null | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > cacert.pem
cnc_chain.crt- client certificate file to present to the server for mutual TLS authentication (agent-client-collector/cert/cnc).priv_key.pem- private key associated with the client certificate (agent-client-collector/cert/cnc).- Fetch assets using a proxy with mTLS.
# Will attempt to fetch an asset used by ACC-V using a proxy. The file is not saved. # Remember, replace intproxy0.your-corp.com:8080 with your internal host and port. curl -v --proxy http://intproxy0.your-corp.com:8080 --cacert cacert.pem --cert cnc_chain.crt --key priv_key.pem --request GET --output NUL https://itomcnc-prod-gateway-amer.sncapps.service-now.com:443/content/v1/assets/afaa52edc32f7150f640f2ff050131c8/a4ef65d00adbab1659f460f8d4e311d8db65f519994f63d176951ce1e0297e08Inspect the output of the cURL to see if the command succeeded using the proxy.
Parent Topic:Advanced configuration