Sophos Firewall
Este conteúdo não está disponível em sua língua ainda.
A Sophos Firewall (SFOS) through its XML API: the link of every interface bound to a zone, and which IPsec connections are activated.
That is deliberately all. The XML API is a configuration API: besides the
read-only connectivity status of each interface, it exposes no live state.
<Get><IPSecConnection> returns whether an administrator activated a
connection, not whether the tunnel is up; high availability, licences and
subscriptions and the firmware version are not in it at all. DumbMonit
publishes the activation as such and never presents it as a tunnel state.
Every minute DumbMonit posts two requests to
https://<firewall>:4444/webconsole/APIController (form field reqxml, never
in the URL, where the password would end up in logs): <Get><Interface> and
<Get><IPSecConnection>. Each carries the user name and password of an
account whose device access profile is read-only everywhere: the firewall
enforces that profile on the API too.
Network ports to open
Section titled “Network ports to open”From the DumbMonit server (or its relay agent) to the device:
| Port | Protocol | Purpose |
|---|---|---|
| 4444 | TCP | Administration API (HTTPS, default) |
What it watches
Section titled “What it watches”All metrics are prefixed dumbmonit_sophos_.
| Metric | Labels | Meaning |
|---|---|---|
api_version_info | api_version | Value 1: the API version the firewall announces (2000.2), which follows the SFOS release. |
interface_link_up | interface, zone | 1 when the status reads Connected, 0 when Disconnected; absent when the status is something else. |
interface_enabled | interface, zone | 0 when the interface is switched off. |
interface_down | interface, zone | 1 when the interface is switched on, bound to a zone, and has no link. Free ports (zone None) are left alone. |
interfaces, interfaces_down | Counts. | |
ipsec_connection_activated | connection | 1 when the connection is activated in the configuration. Not the tunnel state. |
ipsec_connections | Count. |
The built-in rule that applies:
- Sophos interface without link: an interface switched on and bound to a zone has had no link for five minutes (Advisory).
For traffic counters, add the firewall as an SNMP device as well: SFOS answers the standard interface MIB.
The monitor page
Section titled “The monitor page”The Firewall panel says whether every interface in a zone has its link, then lists those interfaces and the IPsec connections with their configured activation, labelled as such.
Allow DumbMonit to read the Sophos Firewall XML API
Section titled “Allow DumbMonit to read the Sophos Firewall XML API”-
Profiles → Device access: add a profile named DumbMonit read-only and set every permission to Read-only.
-
Authentication → Users: add a user named dumbmonit, of type Administrator, with that profile and a long random password.
dumbmonit -
Backup & firmware → API (Administration → API access from SFOS 22): turn on the API configuration and add the DumbMonit server’s address to the allowed IP addresses.
-
In DumbMonit, enter the firewall address (sophos.lan) with that user name and password.
Required permissions
Section titled “Required permissions”- Device access profile: Read-only on every permission — The firewall enforces it on the API too
Vendor documentation: https://docs.sophos.com/nsg/sophos-firewall/21.0/API/index.html
The XML API is a configuration API: it reports the link of each interface and whether each IPsec connection is activated, not whether the tunnel is up. High availability, licences and the firmware version are not in it. The address DumbMonit connects from must also be allowed to reach the firewall’s HTTPS administration service, in addition to the API’s allowed IP addresses.
Credentials
Section titled “Credentials”| Credential | Fields |
|---|---|
| User name and password | The dumbmonit user with the read-only device access profile. |
Address: the host name or IP of the firewall, host:port, or a URL. Options:
- Port (4444): the administration port.
- Accept an unverifiable certificate: the firewall’s own certificate is self-signed.
- Timeout per request (15 s).
Troubleshooting
Section titled “Troubleshooting”“Sophos Firewall refused the request (534 …)”: the DumbMonit address is not among the allowed IP addresses of the API configuration.
“Sophos Firewall refused the login”: wrong user name or password, or a password with characters the firewall rejects in API calls; a long password of letters and digits avoids the question.
“Sophos Firewall did not answer in XML”: wrong port, or the API is turned off.