> For the complete documentation index, see [llms.txt](https://docs.octoxlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.octoxlabs.com/adapters/f/forcepoint-ngfw.md).

# Forcepoint NGFW

Forcepoint NGFW is a next-generation firewall whose firewall, IPS and Layer 2 engines are managed centrally through the Security Management Center (SMC). OctoXLabs connects to the SMC API and adds every managed NGFW engine to the device inventory.

## Use cases

* List every managed firewall engine in one place and compare it with other sources.

```
Adapters = forcepoint-ngfw
```

* Find engines that no vulnerability scanner reports, so they can be added to scan scope.

```
Adapters = forcepoint-ngfw AND NOT Adapters = tenable-sc
```

## Before you begin

### Network

| Source              | Destination                     | Port                         | Protocol                                                   |
| ------------------- | ------------------------------- | ---------------------------- | ---------------------------------------------------------- |
| OctoXLabs connector | SMC Management Server (SMC API) | 8082 (default, configurable) | HTTP, or HTTPS when TLS Credentials are set on the SMC API |

The SMC API runs on the Management Server, not on the individual engines. If a firewall sits between the connector and the SMC, add an Access rule that allows the SMC API port.

### Required permissions

| Scope or role               | Permission                               | Needed for              |
| --------------------------- | ---------------------------------------- | ----------------------- |
| API Client, Permissions tab | Viewer on All Simple Elements (at least) | Reading engine elements |

The SMC API must also be enabled on the Management Server. See the steps below.

## Create credentials in Forcepoint NGFW

{% stepper %}
{% step %}

### Enable the SMC API on the Management Server

1. In the Management Client, select **Home**.
2. Browse to **Others** > **Management Server**.
3. Right-click the Management Server and select **Properties**.
4. Open the **SMC API** tab and select **Enable**.
5. Leave **Host Name** empty, or enter the exact host name OctoXLabs will use. When it is filled in, requests to any other host name are not served.
6. Keep the listening port at the default, **8082**.
7. To use encrypted connections, click **Select** and choose the **TLS Credentials** and **Cryptography Suite Set** elements.
8. Click **OK**.
   {% endstep %}

{% step %}

### Create an API Client

1. Select **Configuration**, then browse to **Administration** > **Access Rights**.
2. Right-click **Access Rights** and select **New** > **API Client**.
3. Enter a unique name for the API Client.
4. Use the initial authentication key, or click **Generate Authentication Key** to create a new one.
5. On the **Permissions** tab, set at least the **Viewer** permission to **All Simple Elements**.
6. Click **OK**.

{% hint style="info" %}
The authentication key is shown only once. Record it before you close the dialog.
{% endhint %}
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter | Required | Type             | Default | Description                                                                                                                          |
| --------- | -------- | ---------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------ |
| Ip        | Yes      | Text             | None    | Host name or IP address of the SMC Management Server.                                                                                |
| Port      | No       | Integer          | 8082    | Port the SMC API listens on.                                                                                                         |
| Api key   | Yes      | Text (sensitive) | None    | Authentication key of the API Client.                                                                                                |
| Is secure | No       | Boolean          | False   | Use HTTPS. Turn it on only if TLS Credentials are set on the SMC API tab, because the SMC API serves plain HTTP otherwise. Advanced. |
| Proxy     | No       | Text             | Empty   | HTTP proxy in `host:port` format. Advanced.                                                                                          |
| Timeout   | No       | Integer          | 30      | Seconds to wait for API responses. Advanced.                                                                                         |

## Troubleshooting

| Error message                                                                                                               | Cause                                                                               | Fix                                                                                     |
| --------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- |
| `No SMC API version found at <url>. Make sure the SMC API is enabled on the Management Server and the IP/port are correct.` | The `/api` endpoint returned no versions.                                           | Enable the SMC API on the Management Server and check the IP and port.                  |
| `<METHOD> <url> failed after 5 attempts.`                                                                                   | The SMC kept returning HTTP 502, 503 or 504, or the connection failed or timed out. | Check SMC availability and the network path, then run the test again.                   |
| `Skipping engine '<name>': detail request failed (...)` (log warning)                                                       | The detail request for one engine failed.                                           | Check the API Client permissions on that engine. The other engines are still collected. |

## Change history

{% hint style="info" %}
Available starting from version 6.9.0.
{% endhint %}
