< Home

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.

Format

destination-port { start-port end-port | any }

undo destination-port

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.

-

Views

User-defined signature rule view

Default Level

2: Configuration level

Usage Guidelines

All destination ports are checked by the user-defined signature rule by default.

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.

<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
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >