The firewall identity mapper Docker container (fw-id-mapper)
In this topic, you will learn what the fw-id-mapper Docker container does, its requirements, as well as how to deploy and configure it.
Overview
A user’s IP address changes as they move between Wi-Fi, wired, VPN, hot desk, and DHCP-assigned connections, which makes it difficult or even impossible to apply firewall rules correctly. The fw-id-mapper Docker container tracks these changes and reports them to the firewall, covering authentication, IP changes, DHCP changes, roaming, VPN transitions, disconnects, deauthentication, and session expiration.
The container supports Palo Alto Networks, Fortinet FortiGate, and Check Point firewalls.
The container is available in the public Docker repository as portnox/fw-id-mapper. It has no virtual machine equivalent.
Examples:
Policy:
-
Without identity mapping:
Allow 10.10.20.0/24 to Salesforce
-
With identity mapping:
Allow Finance users to Salesforce
Allow Domain Administrators to SSH to servers
-
Log:
-
Without identity mapping:
10.22.45.18 downloaded malware
-
With identity mapping:
kosh@vorlon.com downloaded malware
-
Requirements
The container can run on Linux, or on Windows or macOS via Docker Desktop. If running in a VM environment, we recommend Linux for the best results, since Windows and macOS would require double virtualization.
The Docker host needs outbound HTTPS (TCP port 443) connectivity to Portnox Cloud and the Portnox firewall integration gateway. Follow the general firewall rules in the following topic: How to set up the firewall for Portnox Docker containers to connect to Portnox Cloud.
The Docker host also needs connectivity to each firewall:
- Palo Alto Networks: HTTPS (TCP 443 by default) to the management interface
- Fortinet FortiGate: RADIUS accounting (UDP 1813 by default) to the RSSO agent interface
- Check Point: HTTPS (TCP 443 by default) to the Identity Web API on the gateway
You need a Portnox organization ID, a Portnox connector instance ID, and a Portnox connector API key. Portnox Cloud supplies all of these values when you add the integration.
Each firewall vendor has its own configuration requirements. For details, see the following section below: Firewall connections.
Deployment
We recommend getting the deployment command from Portnox Cloud rather than copying the example below. In Portnox Cloud, go to and click on the Add Docker container button. Portnox Cloud generates the complete command for you, already containing your organization ID, instance ID, and API key, along with the API token that authenticates the container.
After deployment, we recommend that you monitor the container’s logs to confirm it registered and authenticated with the Portnox gateway:
Docker:
docker logs -f portnox-fw-id-mapperDocker Compose:
docker compose logs -f fw-id-mapper
Configuration
Configure the container using either environment variables or a configuration file, appsettings.json, inside the container. If you use both methods, environment variables take priority.
Environment variable Config file setting |
Default |
Description |
|---|---|---|
OrgId |
Required |
Portnox organization ID |
InstanceId |
Required |
Unique identifier for this connector instance |
ApiKey |
Required |
API key used to authenticate with the Portnox gateway |
GatewayUrl |
https://extfwint-local-gw.portnox.com |
Portnox firewall identity mapping gateway URL. Set this only if Portnox Cloud gave you a separate test environment URL, for example https://extfwint-local-gw-test.portnox.com. |
SyncInterval |
00:00:30 |
Interval at which the connector polls the gateway for firewall connection changes |
FwReachabilityCheckTimeout |
00:00:10 |
TCP timeout used when checking firewall reachability |
SbListener__MinRetryDelay SbListener:MinRetryDelay |
00:00:02 |
Minimum service bus listener retry delay |
SbListener__MaxRetryDelay SbListener:MaxRetryDelay |
00:01:00 |
Maximum service bus listener retry delay |
SbListener__SettingsPollInterval SbListener:SettingsPollInterval |
00:00:02 |
Interval used to poll service bus listener settings |
SbListener__TokenExpiryMargin SbListener:TokenExpiryMargin |
00:05:00 |
Margin used when handling service bus authentication token expiration |
PaloAltoUserId__MaxAttempts PaloAltoUserId:MaxAttempts |
3 |
Maximum attempts for Palo Alto User-ID operations |
PaloAltoUserId__RetryBaseDelay PaloAltoUserId:RetryBaseDelay |
00:00:00.250 |
Initial retry delay for Palo Alto User-ID operations. Doubles after each retry. |
MappingEventAggregation__Window MappingEventAggregation:Window |
00:00:05 |
Time window used to aggregate mapping events that occur in rapid succession, such as during roaming or reconnects |
TLS and certificate configuration
The container communicates with Palo Alto Networks and Check Point firewalls over HTTPS. By default, it validates the firewall’s certificate against the standard system trust store. You only need the settings below if your firewall’s certificate comes from a private or internal CA that isn’t in that trust store.
These settings don’t apply to Fortinet FortiGate. The container sends RADIUS accounting messages to FortiGate, which use a shared secret instead of TLS.
Variable |
Description |
|---|---|
FwCaCertificatePaths |
One or more certificate file paths, separated by semicolons |
FwCaCertificatesBase64 |
One or more Base64-encoded certificates, separated by semicolons |
FwCaCertificatesDir |
A directory inside the container containing .pem, .crt,
or .cer files. Recommended for container deployments. Mount your host’s
certificate directory to this path, for example: |
If IgnoreFwRemoteCertificateValidation is true, the container ignores any CA certificate configuration, since validation is already disabled. Keep validation enabled in production and provide the CA certificate instead.
Firewall connections
The container supports the following firewalls:
- Palo Alto Networks, through the User-ID XML API
- Fortinet FortiGate, through the RADIUS Single Sign-On (RSSO) agent
- Check Point, through the Identity Awareness Web API
Currently, the only available integration type for all vendors is User ID.
Palo Alto Networks
The container sends user-to-IP mappings to Palo Alto Networks User-ID through the Palo Alto XML API rather than syslog parsing. Each mapping gets an explicit accept or reject response. This avoids problems that syslog-based integrations commonly have: incorrect message formatting, parser changes, username or IP address extraction errors, messages sent but not accepted, and silent synchronization failures.
The Palo Alto User-ID API supports login and logout operations. A login operation creates a user-to-IP mapping, and a logout operation removes it. The container issues these based on Portnox authentication and accounting events, so the firewall’s identity state tracks users as they connect and disconnect.
Fortinet FortiGate
The container sends user-to-IP mappings to the FortiGate RADIUS Single Sign-On (RSSO) agent as RADIUS accounting messages. A Start message adds the user to the FortiGate list of authenticated firewall users. A Stop message removes the user from that list.
Each message carries the user’s Portnox Cloud group name in the Class attribute. FortiGate matches this name to an RSSO user group. FortiGate policies can use RSSO groups but not individual users.
Before you add the connection, configure the following on the FortiGate:
RADIUS accounting access: In , edit the interface closest to the Docker host. In the Administrative Access section, enable RADIUS Accounting.
RSSO agent: In , create a RADIUS Single Sign-On Agent connector. Enable Use RADIUS Shared Secret, define a shared secret, and enable Send RADIUS Responses.
Username attribute: From the FortiGate CLI, set the RSSO agent to read the username from the User-Name attribute:
config user radius edit "rsso_agent_name" set rsso-endpoint-attribute User-Name next endRSSO user groups: In , create a group of type RADIUS Single-Sign-On (RSSO) for each Portnox Cloud group that you want to use in policies. In the RADIUS Attribute Value field, enter the group name exactly as it appears in Portnox Cloud.
Check Point
The container sends user-to-IP mappings to the Check Point Identity Awareness Web API over HTTPS. Check Point matches the user’s Portnox Cloud group name to a user group with the same name.
Before you add the connection, configure the following in Check Point SmartConsole:
Docker host object: Create a host object with the IP address of the Docker host.
Identity Web API: In the gateway object, enable Identity Awareness and the Identity Web API identity source. In the Identity Web API Settings window, add the Docker host object as an authorized client and copy the Selected Client Secret.
User groups and access roles: Create a user group for each Portnox Cloud group that you want to use in policies, with the name exactly as it appears in Portnox Cloud. Create access roles that contain these groups, then use the access roles in policy rules.
Policy: Install the policy on the gateway.
Troubleshooting
To collect Docker container logs for troubleshooting, see the following topic: How to collect Portnox Docker container logs for support.
Updates
-
If you use a Docker container running on a local Docker host, it does not update automatically, unless you also use the autoupdate container. The autoupdate container updates all Portnox Docker containers when new versions are available. Updating requires recreating the Docker container, so there may be a short service interruption.
-
If you deploy the Docker container in a cloud environment, you cannot use the autoupdate container, because it requires direct access to the local Docker engine, which these managed cloud services do not expose. You must update containers deployed this way manually by redeploying them with the latest image.