The destination-port command specifies the destination port to be checked by a user-defined signature rule.
The undo destination-port command deletes the destination port to be checked by a user-defined signature rule.
| Parameter | Description | Value |
|---|---|---|
start-port |
Specifies the start port of a port range to be checked by the user-defined signature rule. |
The value is an integer ranging from 1 to 65535. |
end-port |
Specifies the end port of a port range to be checked by the user-defined signature rule. |
The value is an integer ranging from 1 to 65535. The value of end-port must be no smaller than that of start-port. |
any |
Indicates that all destination ports are checked by the user-defined signature rule. |
- |
# Create user-defined signature rule hello in user-defined signature 1 and set the destination port range to a range from 80 to 8080.
<sysname> system-view [sysname] ips signature-id 1 [sysname-ips-signature-1] protocol TCP [sysname-ips-signature-1] rule name hello [sysname-ips-signature-1-rule-hello] destination-port 80 8080