< Home

rule name (file blocking profile view)

Function

The rule name command creates a file blocking rule and displays the file blocking rule view.

The undo rule command deletes an existing file blocking rule.

Format

rule name name

undo rule { name name | all }

Parameters

Parameter Description Value
name name Specifies the name of a file blocking rule. The value is a case-sensitive character string. The length of a name without spaces ranges from 1 to 32 characters. The length of a name with spaces ranges from 3 to 34 characters. If a name contains spaces, the name must be enclosed with quotation marks (for example, "user for test"). The name cannot contain any question marks (?), commas (,), quotation marks ("), or hyphens (-).
all Deletes all existing file blocking rules. -

Views

File blocking profile view

Default Level

2: Configuration level

Usage Guidelines

After you create a file blocking profile, configure file blocking rules to define the applications, file types, direction, and actions for file blocking.

Run the rule name command to create a file blocking rule and access the file blocking rule view. If a data filtering rule already exists, the data filtering rule view is directly displayed. In this view, you can configure the application category, direction, predefined file type, user-defined file type, and action for file blocking.

Example

# Create a file blocking rule def in the file blocking profile abc and access the file blocking rule view.

<sysname> system-view
[sysname] profile type file-block name abc
[sysname-profile-file-block-abc] rule name def
[sysname-profile-file-block-abc-rule-def]
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic