For the complete documentation index, see llms.txt. This page is also available as Markdown.
Cortex XSOAR 6.13

Use NGINX as a Reverse Proxy to the Server

Use NGINX as a reverse proxy for the Cortex XSOAR 6.13 server.

NGINX can act as a reverse proxy that sits between internal applications and external clients, forwarding client requests to the appropriate application. Using NGINX as a reverse proxy in front of the Cortex XSOAR server enables you to provide network segmentation where the proxy can be put on a public subnet (DMZ) while the Cortex XSOAR server can be on a private subnet, only accepting traffic from the proxy. Additionally, NGINX provides a number of advanced load balancing and acceleration features that you can utilize.

The following topics describe how to install NGINX, how to use a Self-Signed Certificate for non-production environments, and how to configure NGINX.

Use Engines Through the NGINX Reverse Proxy

If you want to use a Cortex XSOAR Engine (d1) through the reverse proxy, you need to modify the following entry in the d1.conf file to point to the host and port the NGINX server is listening on: EngineURLs

Install NGINX on the Server

You can install NGINX on the Red Hat/Amazon (yum) and Ubuntu Linux distributions. For full instructions and available distributions, see NGINX documentation.

  1. Run one of the following commands according to your Linux system:

    • RedHat/Amazon: sudo yum install nginx

    • Ubuntu: sudo apt-get install nginx

  2. (Optional) Verify the NGINX installation by running the following command:

    sudo nginx -v

Generate a Certificate for NGINX

You should not use self-signed certificates for production systems. It is recommended to use a properly signed certificate for production systems. These instructions are intended only for non-production setups.

  1. To use OpenSSL to generate a self-signed certificate, run the following command:

    sudo openssl req -x509 -nodes -days 3650 -newkey rsa:2048 -keyout /etc/nginx/cert.key -out /etc/nginx/cert.crt

  2. When prompted, complete the on-screen instructions for the required fields.

Configure NGINX

Follow these instructions to configure NGINX on Cortex XSOAR.

Note

For multi-tenant deployments, replace location ~ ^/(websocket|d1ws|d2ws) { with location ~ ^/(acc_\S+/|host_\S+/)?(websocket|d1ws|d2ws) { in the configuration template below.

  1. Open the following NGINX configuration file with your preferred editor:

    /etc/nginx/conf.d/demisto.conf

  2. Use the following configuration template:

    Replace DEMISTO_SERVER with the appropriate hostname.

  3. Restart the NGINX server, by typing the following command:

    sudo service nginx restart

  4. Verify you can access Cortex XSOAR by browsing to the NGINX server host.

Last updated

Was this helpful?