Purpose
This guide explains how to configure the Huawei Firewall Response integration in Logsign USO, so that Incidents and Alarms can automatically, or an analyst can manually, block an IP address on a Huawei firewall. This is a Response (action) integration, configured under Settings > Integrations > Responses > +Device.
Known issue: the unblock action does not currently work. In the current release, the unblock-ip (Recovery) method of this integration does not run. The same applies to automatic removal when a block reaches its Expire Time, because that removal uses the same method. Treat every block made through this integration as permanent, and remove blocks manually on the Huawei firewall when they are no longer needed.
Prerequisites
- A Huawei firewall (USG/other Huawei firewall platform) with its management API reachable from the Logsign server over HTTPS (port 443 by default).
- An account with permission to request an API token and to add and remove entries in the firewall blacklist (dynamic list). Logsign calls these endpoints: POST /api/auth/token (HTTP Basic authentication with the user name and password), POST /api/firewall/dynamic-list (block) and DELETE /api/firewall/dynamic-list/<ip> (unblock).
- Use least privilege. Create a dedicated account for this integration scoped to blacklist management, rather than a full system administrator account, if your Huawei firewall platform supports role-restricted accounts.
Step 1: Prepare the Huawei Firewall for API Access
- Log in to the Huawei firewall management interface with an administrator account.
- Create (or designate) a dedicated user account for Logsign to use, with permission to manage the blacklist this integration will use.
- Note the firewall's management hostname/IP, the HTTPS port used for API access, and the username/password for the account.
Menu names and commands can differ between versions; see the Huawei documentation for your release.
Step 2: Configure the Integration in Logsign USO
In Logsign USO, go to Settings > Integrations > Responses, search for Huawei Firewall, click Configure then +Device, and fill in:
| Field | Required | Description |
|---|---|---|
| Device Name | Yes | Free-text label identifying this Huawei Firewall device in Logsign. |
| Host | Yes | Hostname or IP address of the firewall. Logsign connects over HTTPS. |
| Port | Yes | Management API port. The default value is 443. |
| User Name | Yes | The firewall account username from Step 1. |
| Change Password | Yes | Password for that account. Stored encrypted at rest. |
| Insecure Skip Verify | No | When enabled, Logsign does not validate the firewall's TLS certificate. This option is enabled by default. Turn it off when the firewall presents a certificate that the Logsign server trusts. |
Click Create to save the device. This integration has no Test button, so Logsign does not check the connection when you save. The first block action shows whether the credentials and the connection work.
Available Methods
- block_ip (Containment): adds the given IP address to the firewall blacklist with the action deny and the comment "Suspicious activity detected from Logsign". It takes two arguments: Ip Address and Expire Time (30 Minutes, 1 Hour, 3 Hour, 6 Hour, 12 Hour, 1 Day, 1 Week, 1 Month or Permanent). Because of the known issue above, the block stays in place after the selected Expire Time.
- unblock-ip (Recovery): removes the given IP address from the firewall blacklist. This method does not currently work; see the Known Issue above. It is not available in Action Rules.
Troubleshooting
| Symptom | Likely cause | What to check |
|---|---|---|
| authentication failed, reason: ... (for example 401 Unauthorized) | Wrong User Name/Password, or the account cannot request an API token. | Re-enter the User Name and Change Password fields and confirm the account can log in to the firewall directly. |
| block ip failed, reason: ... (for example 403 Forbidden) | The account does not have permission to modify the firewall blacklist. | Confirm the account's role on the firewall includes blacklist management. |
| Unblock action fails or does nothing, or a block stays after its Expire Time | This is the known issue described above, not a credential or permission problem. | Do not spend time troubleshooting credentials for this specific symptom; remove the block manually on the firewall instead. |
| tls: handshake failure on connect | The firewall only offers DHE cipher suites. Logsign's Response integrations use Go's standard crypto/tls library, which supports ECDHE but not DHE (TLS_DHE_*) cipher suites. This is not a Logsign-side configuration option. | Enable ECDHE cipher suites on the Huawei firewall (e.g. TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 / AES_128_GCM_SHA256). |
Notes and Limits
- Until the unblock issue is fixed in a Logsign release, plan to remove every block made through this integration manually on the Huawei firewall.