< Home

direction (file blocking rule view)

Function

The direction command configures the transfer direction of the files to be blocked.

The undo direction command restores the default transfer direction of the files to be blocked. The default value is upload.

Format

direction { both | download | upload }

undo direction

Parameters

Parameter Description Value
both Indicates file blocking in both the upload and download directions. -
download Indicates file blocking in the download direction. -
upload Indicates file blocking in the upload direction. -

Views

File blocking rule view

Default Level

2: Configuration level

Usage Guidelines

The default transfer direction for file blocking is upload.

upload indicates that a user uploads data to a security zone. download indicates that a user downloads data from a security zone.

Example

# Configure file blocking for the files of the specified type in the download direction in the file blocking rule def.

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