HOSTSWRULE UPDT


By using the UPDT function, you can create and update host sweeping rules.

Rule syntax

HOSTSWRULE UPDT <ID> <host name> <port> <inclusion | exclusion> <priority>

Rule parameters

Parameter

Value range

Is required

Description

<ID>

32-bits, unsigned (0 through 4 294 967 295)

Y

A globally unique identifier for the rule. For creating a rule, provide an ID that is not in use. If you provide an existing ID, the parameters of this rule will be overridden.

<host name>

URL-encoded, case-insensitive

Y

A host name to filter traffic on

<port>

16-bits, unsigned (0 through 65635)

"-1" — catch-all

Y

A TCP port to filter traffic on

<inclusion | exclusion>

"1" — traffic inclusion

"2" — traffic exclusion

Y

An action to perform on the packet that matches the rule

<priority>

1 to the total number of existing rules

"0" — the highest priority

Y

Rule priority; rule's position in the rules list. Rules are applied in the order they appear in the list.

Example

A rule that excludes traffic from the www.bmc.com domain and its associated port 80: 

HOSTSWRULE UPDT 17 www.bmc.com 80 2 0

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*