Overview ✨
Beginning with Sophos Firewall OS (SFOS) v22.0, Sophos has relocated the API configuration settings within the firewall's web admin console.
In earlier firmware versions, API access was configured under System > Backup & Firmware > API. In SFOS v22.0, these settings are available under System > Administration > API access.
Partners configuring the Liongard Sophos Firewall Inspector on devices running SFOS v22.0 should follow the updated navigation path and API access configuration outlined in this article.
ℹ️ Important: If you cannot locate the API tab under Backup & Firmware, verify your Sophos Firewall firmware version. For SFOS v22.0, navigate to Administration > API access instead.
Applies To
Area | Details |
Inspector | Sophos Firewall |
Product | Sophos Firewall OS (SFOS) |
Affected Version | v22.0 |
Configuration | API access |
Agent Type | Self-Managed |
Scenario | Unable to locate API configuration settings during inspector setup |
API Configuration Changes
Sophos has updated both the location and configuration options for API access in SFOS v22.0.
Setting | SFOS v21.5 and earlier | SFOS v22.0 |
Navigation Path | System > Backup & Firmware > API | System > Administration > API access |
Enable API Access | API configuration | API access |
Allowed Sources | Allowed IP address | Allowed IP hosts |
In SFOS v22.0, API access restrictions are configured using IP host objects. These objects can represent individual IP addresses, IP address ranges, or networks.
Sophos supports up to 64 allowed IP host entries for API access.
Steps to Configure API Access
Step 1: Identify the Liongard Agent IP Address
Step 1: Identify the Liongard Agent IP Address
Log in to your Liongard instance.
Navigate to Admin > Agents > Self-Managed.
Locate the Agent that will run the Sophos Firewall Inspector.
Identify the Agent's IP address.
⚠️ Ensure that the IP address configured in Sophos Firewall corresponds to the actual source IP address from which the Agent connects to the firewall.
Step 2: Enable API Access in Sophos Firewall v22.0
Step 2: Enable API Access in Sophos Firewall v22.0
Log in to the Sophos Firewall web admin console using an administrator account with the required permissions.
Navigate to System > Administration > API access.
Enable API access.
Under Allowed IP hosts, select or configure the IP host object corresponding to the Liongard Agent's source IP address.
Click Apply to save the configuration.
‼️ Security Note: Restrict API access to the trusted IP addresses required for the Liongard integration. Avoid allowing unrestricted access or unnecessarily broad network ranges.
Step 3: Verify Device Access and Authentication
Step 3: Verify Device Access and Authentication
Before configuring or rerunning the Liongard Inspector, verify the following:
The dedicated Liongard service account has the read-only permissions outlined in the Sophos Firewall Inspector Setup Guide.
HTTPS access is permitted from the network zone used by the Liongard Agent under Administration > Device access.
The Liongard Agent can reach the firewall through its configured HTTPS administration port.
The firewall IP address, port, username, and password configured in Liongard are correct.
ℹ️ The default administration port for the Sophos Firewall Inspector is 4444. If your firewall uses a custom administration port, configure the inspector accordingly.
Step 4: Configure or Rerun the Inspector
Step 4: Configure or Rerun the Inspector
For new deployments, complete the remaining configuration steps outlined in the Sophos Firewall Inspector Setup Guide.
For existing deployments:
Open the affected Sophos Firewall Inspector in Liongard.
Verify the inspector configuration and assigned Agent.
Save any necessary configuration changes.
Manually run the inspector.
Confirm that the inspection completes successfully.
Additional Troubleshooting
Additional Troubleshooting
If the Sophos Firewall Inspector fails after enabling API access or upgrading the firewall firmware, verify the following:
API Access: Confirm that API access is enabled.
Allowed IP Hosts: Ensure the Liongard Agent's source IP address is authorized.
Device Access: Verify that HTTPS access is permitted from the appropriate network zone.
Network Connectivity: Confirm that the Agent can reach the firewall IP address and configured administration port.
Service Account: Verify that the configured account is active and has the required read-only permissions.
Credentials: Ensure the username and password meet the requirements outlined in the Liongard setup guide.
Migrated IP Host Objects: If the firewall was recently upgraded, confirm that the migrated objects contain the correct source IP addresses.
Considerations When Upgrading to SFOS v22.0
When upgrading to SFOS v22.0 or later, Sophos automatically converts previously configured allowed API IP addresses into IP host objects.
The migrated objects are assigned names beginning with the apiconfig prefix.
For example: apiconfig_1_ajgy5q
If the Sophos Firewall Inspector was configured before the firmware upgrade, review the migrated IP host objects to ensure that the Liongard Agent's source IP address remains authorized for API access.
⚠️ Note: The change in navigation path alone does not require an existing Liongard Inspector to be recreated or reconfigured, provided the necessary API access, credentials, and connectivity remain in place.
Best Practices
Verify the Sophos Firewall firmware version before following configuration instructions.
Use a dedicated read-only service account for the Liongard integration.
Restrict API access to trusted Liongard Agent source IP addresses.
Review API access and device access settings following firmware upgrades.
Run the inspector after making configuration changes to validate connectivity and authentication.
When to Contact Liongard Support 🦁
If the Sophos Firewall Inspector continues to fail after completing the configuration and troubleshooting steps, contact Liongard Support for further assistance.
Include the following information in your support request:
Affected Environment and Sophos Firewall Inspector name.
Sophos Firewall model and firmware version.
Complete inspection error message.
Assigned Liongard Agent name.
Relevant screenshots of the API access and device access settings.
A summary of the troubleshooting steps already performed.
Related Articles and References ⭐️
Liongard Documentation
Sophos Documentation
🚨 Note : We may occasionally provide links to third-party tools or resources for additional reference. These resources are offered for convenience only, and Liongard does not control, maintain, or guarantee their functionality, accuracy, or availability. Please review and use any third-party resources at your own discretion.