How to customize the listening port that the EDR uses to communicate with sensor.
Important: These steps should be performed on all Primary and Secondary server nodes before moving the system into production.
Here are the steps post-install to change the sensor communication port:
mv /etc/cb/nginx/conf.d/cb.conf /etc/cb/nginx/conf.d/cb.conf.default
cp /etc/cb/nginx/conf.d/cb.multihome.conf.example /etc/cb/nginx/conf.d/cb.multihome.conf
cp /etc/cb/nginx/conf.d/http.conf /etc/cb/nginx/conf.d/http.conf.default
server
{
# This server configuration is used for communications between the sensors
# and the server.
# IMPORTANT: If this configuration file is used, NginxSensor#### parameters in
# /etc/cb/cb.conf MUST be updated to match this file.
# Port 80 is defined in the http.conf. By default it redirects all trafic
# to the https://$host$request_uri; If this behaviour needs to change update http.conf
listen [::]:8443 ssl ipv6only=off;
include /etc/cb/nginx/conf.d/includes/cb.server.body;
include /etc/cb/nginx/conf.d/includes/cb.server.sensor;
# Include content of custom server configuration file
include /etc/cb/nginx/conf.d/includes/cb.server.custom;
}
server
{
# This server configuration is used for VMware Carbon Black EDR Server's Web UI
# IMPORTANT: If this configuration file is used, NginxWebApi#### parameters in
# /etc/cb/cb.conf MUST be updated to match this file.
# Port 80 is defined in the http.conf. By default it redirects all trafic
# to the https://$host$request_uri; If this behaviour needs to change update http.conf
listen [::]:443 ssl ipv6only=off;
include /var/cb/nginx/props/nginx.runtime.ssl_certificate.prop;
include /var/cb/nginx/props/nginx.runtime.ssl_certificate_key.prop;
include /etc/cb/nginx/conf.d/includes/cb.server.body;
include /etc/cb/nginx/conf.d/includes/cb.server.api;
#include /etc/cb/nginx/conf.d/includes/cb.server.error;
# Include content of custom server configuration file
include /etc/cb/nginx/conf.d/includes/cb.server.custom;
}
NginxSensorHttpPort=443
Change to...
NginxSensorHttpPort=8443
firewall-cmd --permanent --add-port=8443/tcp
firewall-cmd --reload
cb.conf.default cb.multihome.conf