bluemax-ips-add-blacklist-rule
Add new blacklist rule to the BLUEMAX IPS device.
bluemax-ips-add-blacklist-rule profile=VALUE ip-ver=VALUE [src-ip=VALUE] [dst-ip=VALUE] [src-port=VALUE] [dst-port=VALUE] [protocol=VALUE] expiry=VALUE [description=VALUE]
- profile=VALUE
- Required. Connect profile name of BLUEMAX IPS
- ip-ver=VALUE
- Required. 4 or 6
- src-ip=VALUE
- Optional. Source IP address to block. At least one of src-ip or dst-ip is required.
- dst-ip=VALUE
- Optional. Destination IP address to block. At least one of src-ip or dst-ip is required.
- src-port=VALUE
- Optional. Source port to block (1-65535).
- dst-port=VALUE
- Optional. Destination port to block (1-65535).
- protocol=VALUE
- Optional. TCP, UDP, or ICMP.
- expiry=VALUE
- Required. Expiry period using s(second), m(minute), h(hour), d(day), mon(month) time unit. For example,
12hmeans 12 hours. Maximum 10 years. - description=VALUE
- Optional. Rule description.
Output Fields
| Field | Type | Name | Description |
|---|---|---|---|
| id | Integer | Rule ID | ID of the created blacklist rule. |
| ip_ver | Integer | IP version | e.g. 4 or 6 |
| block_type | String | Block type | Blocking method (e.g. src_ip_block, dst_ip_block, session_block). |
| src_ip | IP | Source IP | Source IP address to be blocked. |
| src_port | Integer | Source port | Source port to be blocked. |
| dst_ip | IP | Destination IP | Destination IP address to be blocked. |
| dst_port | Integer | Destination port | Destination port to be blocked. |
| protocol | String | Protocol | Protocol (TCP/UDP/ICMP). |
| expiry | Date | Expiry date | Block sessions until expiry date. |
| description | String | Description | Rule description. |