BLUEMAX IPS

Download 64
Last updated Apr 20, 2026

bluemax-ips-add-blacklist-rule-batch

Add new blacklist IP to the BLUEMAX IPS device in batch.

The attributes are read from each input row. After processing all rows, invoke bluemax-ips-blacklist-commit to apply pending changes. 'src_port', 'dst_port' fields are read from each row (optional, 1-65535). expiry, protocol, and description can be specified as command options. Per-row result is written to '_result' ('success' or 'fail') and '_error' fields.

Valid field combinations by block type:

  1. src_ip - Source IP block
  2. dst_ip - Destination IP block
  3. src_ip + dst_ip - IP pair block
  4. src_ip + dst_port + protocol - Source service block
  5. dst_ip + dst_port + protocol - Destination service block
  6. src_ip + dst_ip + dst_port + protocol - IP pair service block
  7. src_ip + src_port + dst_ip + dst_port + protocol - Full session block
bluemax-ips-add-blacklist-rule-batch profile=VALUE expiry=VALUE [protocol=VALUE] [description=VALUE]
profile=VALUE
Required. Connect profile name of BLUEMAX IPS
expiry=VALUE
Required. Expiry period using s(second), m(minute), h(hour), d(day), mon(month) time unit. For example, 12h means 12 hours. Maximum 10 years. Applied to all rows if specified.
protocol=VALUE
Optional. TCP, UDP, or ICMP. Applied to all rows if specified.
description=VALUE
Optional. Rule description. Applied to all rows if specified.

Output Fields

FieldTypeNameDescription
idIntegerRule IDID of the created blacklist rule.
ip_verIntegerIP versione.g. 4 or 6
block_typeStringBlock typeBlocking method (e.g. src_ip_block, dst_ip_block, session_block).
src_ipIPSource IPSource IP address to be blocked.
src_portIntegerSource portSource port to be blocked.
dst_ipIPDestination IPDestination IP address to be blocked.
dst_portIntegerDestination portDestination port to be blocked.
protocolStringProtocolProtocol (TCP/UDP/ICMP).
expiryDateExpiry dateBlock sessions until expiry date.
descriptionStringDescriptionBlacklist description.
_resultStringResult'success' when the rule is added, 'fail' otherwise.
_errorStringErrorError message when _result is 'fail'.