user-defined-flow

Function

The user-defined-flow command configures a user-defined flow.

The undo user-defined-flow command deletes the configuration.

By default, no user-defined flow is configured.

Format

user-defined-flow flow-id ipv6 acl { acl-number | name acl-name }

user-defined-flow flow-id acl { acl-number | name acl-name } [ prior ]

undo user-defined-flow flow-id

Parameters

Parameter Description Value
flow-id

Specifies the number of a user-defined flow.

A smaller number indicates a higher priority.

The value is an integer that ranges from 1 to 64.

ipv6

Sets rules for the IPv6 user-defined flow. If this parameter is not specified, the rules are set for the IPv4 user-defined flow.

-

acl acl-number

Specifies the number of an ACL.

The value is an integer that ranges from 2000 to 3999.

name acl-name

Specifies the name of an ACL.

The value is a string of 1 to 64 case-sensitive characters, spaces not supported.

prior

Configures the highest priority for a user-defined flow in the whitelist, blacklist, and user-defined flows.

This function currently applies only to BGP IPv4 packets.

-

Views

Attack defense policy view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
cpu-defend write

Usage Guidelines

Usage Scenario

You can add packets matching specific ACL rules to a user-defined flow and then impose restrictions on these packets as required. Types of data flows restricted by the whitelist and blacklist are limited. When unknown attacks occur on the network, you can flexibly configure ACL rules to add packets to the user-defined flow and then impose restrictions as required.

When an ACL is bound to a user-defined flow, the rules containing NEQ, time-range, or vpn-instance in the ACL do not take effect. The other rules can take effect.

Prerequisites

ACL rules are configured.

Precautions

If both the user-defined-flow acl prior and process-sequence commands are configured in an attack defense policy, the process-sequence command configuration does not take effect for user-defined flows configured with prior.

If a CAR value has been configured for a user-defined flow, you need to consider the impact on the configured CAR when binding an ACL rule.

In VS mode, this command is supported only by the admin VS.

Example

# Add packets matching ACL 2001 to user-defined flow 30.
<HUAWEI> system-view
[~HUAWEI] acl 2001
[*HUAWEI-acl4-basic-2001] quit
[*HUAWEI] cpu-defend policy 8
[*HUAWEI-cpu-defend-policy-8] user-defined-flow 30 acl 2001
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >