Access official resources from Carbon Black experts
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 [::]:443 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 [::]:8443 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; }
NginxWebApiHttpPort=443 Change to... NginxWebApiHttpPort=8443 And if minion port was also changed (recommended, see additional notes) MinionApiPort=443 change to... MinionApiPort=8443
return 301 https://$host$request_uri; Change to... return 301 https://$host:8443$request_uri;
#listen [::]80 ipv6only=off;
proxy_set_header Host $host;
proxy_set_header Host $host:$server_port;
iptables -I INPUT 5 -p tcp -m state --state NEW -m tcp --dport 8443 -j ACCEPT service iptables save service iptables reload
firewall-cmd --permanent --add-port=8443/tcp firewall-cmd --reload
cb.conf.default cb.multihome.conf
/usr/share/cb/cbcheck firewall -l (Lists missing rules) /usr/share/cb/cbcheck firewall -a (Applies missing rules)