IMPORTANT ANNOUNCEMENT: On May 6, 2024, Carbon Black User eXchange (UeX) and Case Management will move to a new platform!
The Community will be in read-only mode starting April 19th, 7:00 AM PDT. Check out the blog post!
You will still be able to use the case portal to create and interact with your support cases until the transition, view more information here!

Carbon Black Cloud: How to Set a Proxy for Linux Sensor Post Install

Carbon Black Cloud: How to Set a Proxy for Linux Sensor Post Install

Environment

  • Carbon Black Cloud Sensor: 2.11.1 and higher
  • Linux: All Supported Versions

Objective

To set a proxy for a linux sensor post installation

Resolution

  1. Create a separate configuration directory /etc/systemd/system/cbagentd.service.d
  2. Create a file /etc/systemd/system/cbagentd.service.d/custom.conf with the following contents:
    [Service]
    EnvironmentFile=/etc/environment
  3. Add the following contents to /etc/environment:
    all_proxy=<ip_address_of_proxy>:<port number> or
    https_proxy=<ip_address_of_proxy>:<port number>
    
    Note that you can use the FQDN if the hostname is used instead of the IP address.
  4. After making configuration changes, the sensor must be restarted; for example:
    'systemctl
    daemon-reload'; systemctl restart cbagentd

Additional Notes

  • Proxy environment variables are not supported in CentOS 6
  • This will set a proxy at the system level. To set a proxy for only the sensor:
    1. Point custom.conf file a custom file location (instead of /etc/environment)
    2. Add the contents of step 3, to the custom file.

Related Content


Was this article helpful? Yes No
100% helpful (1/1)
Article Information
Author:
Creation Date:
‎09-09-2020
Views:
2813
Contributors