< Home

source-port (user-defined signature rule view)

Function

The source-port command specifies the source port to be checked by a user-defined signature rule.

The undo source-port command deletes the source port to be checked by a user-defined signature rule.

Format

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

undo source-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 source ports are checked by the user-defined signature rule.

-

Views

User-defined signature rule view

Default Level

2: Configuration level

Usage Guidelines

All source 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 source 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] source-port 80 8080
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >