Zum Hauptinhalt springen

Sophos XG / XGS

The Sophos adapter uses the Sophos Firewall REST API to terminate guest WiFi sessions. Sophos XG and XGS firewalls expose a management API for session control.

Prerequisites

  • Sophos XG/XGS with firmware v18 or later.
  • API access enabled on the firewall (disabled by default on some firmware versions).
  • An API admin account or API token with session management permissions.
  • HTTPS access from the Atrium Agent to the firewall's management interface (typically port 4444).

Enabling the API

  1. Log in to the Sophos web admin interface.
  2. Navigate to Backup & Firmware → API.
  3. Enable the API and note the allowed IP ranges.
  4. Add the Atrium Agent's IP to the allowed list.
  5. Create an API admin account or generate an API token.

Agent configuration

VariableValue
FIREWALL_ADAPTERsophos
FIREWALL_HOSTIP or hostname of the Sophos management interface
FIREWALL_API_PORT4444 (default Sophos admin port)
FIREWALL_API_KEYAPI token or credentials
FIREWALL_VERIFY_TLStrue (set to false for self-signed certificates)

How termination works

When a visit ends, the adapter:

  1. Queries the firewall's session table via the REST API for sessions matching the visitor's IP address.
  2. Sends a session disconnect command via the API.
  3. Verifies the session was terminated.

The exact API endpoints used depend on the Sophos firmware version. The adapter handles version differences internally.

Troubleshooting

IssuePossible cause
API connection refusedAPI not enabled, or Agent IP not in the allowed list.
401 / Authentication failedAPI credentials incorrect or expired.
Session not foundThe visitor's IP is not in the firewall's session table (session may have already timed out, or IP tracking is incomplete).
Port 4444 blockedDefault admin port for Sophos. Verify network connectivity from the Agent.