protocol (user-defined application rule view)

Function

The protocol command specifies a transport-layer protocol.

The undo protocol command restores the default setting.

The default transport-layer protocol in a user-defined application rule is any. That is, the rule applies to both TCP and UDP packets.

Format

protocol { tcp | udp }

undo protocol

Parameters

Parameter Description Value
tcp Indicates the Transmission Control Protocol (TCP). -
udp Indicates the User Datagram Protocol (UDP). -

Views

User-defined application rule view

Default Level

2: Configuration level

Usage Guidelines

None.

Example

# Set the transport-layer protocol in a user-defined application rule to TCP.

<sysname> system-view
[sysname] sa
[sysname-sa] user-defined-application name UD_abc
[sysname-sa-user-defined-app-UD_abc] rule name rule1
[sysname-sa-user-defined-app-UD_abc-rule-rule1] protocol tcp

Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.