Configuring the Unified Agent to communicate through a proxy
If your firewall rules do not allow transparent outbound HTTPS connections to external hosts, you can configure the Unified Agent to send traffic to a proxy by editing the Unified Agent conf file.
The forward proxy must be able to resolve the hostname of the IBM Cloud Pak for Multicloud Management ingress.
If you use a reverse proxy, you need to use the Ingress URL in the configuration, and the Unified Agent must have the port defined in the setupenv.sh
script file.
Configuring the forward proxy
- Go to the
conf
directory where theicam.conf
file is located, for example,opt/ibm/apm/ua/conf/icam.conf
. - Open
icam.conf
for editing. - Search for http_proxy to navigate to the place where the following line is located:
#http_proxy = "http://xxxx:yy"
- Uncomment the line and add the host and port information into proxy address. For example,
http_proxy = "http://HostA:8091"
- Save conf file and restart the Unified Agent.
Configuring the reverse proxy
- Go to the
conf
directory where thesetupenv.sh
file is located, for example,opt/ibm/apm/ua/conf/setupenv.sh
. - Open
setupenv.sh
for editing. - Search for IBM_APM_SERVER_INGRESS_URL to navigate to the place where the IBM_APM_SERVER_INGRESS_URL is located.
- Input the ingress url and the port number.
- Save conf file and restart the Unified Agent.