destination-port (user-defined signature rule view)
Function
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.
Parameters
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. | - |
Example
# Create user-defined signature rule hello in user-defined signature 1 and set the destination port range to a range from 80 to 8080.
<AC6605> system-view [AC6605] ips signature-id 1 [AC6605-ips-signature-1] protocol TCP [AC6605-ips-signature-1] rule name hello [AC6605-ips-signature-1-rule-hello] destination-port 80 8080