< Home

ftp-detect (APT defense profile view)

Function

The ftp-detect command enables file reputation detection for FTP.

The undo ftp-detect command disables file reputation detection for FTP.

Format

ftp-detect direction { both | download | upload } [ action { alert | block } ]

undo ftp-detect [ direction ] [ action ]

Parameters

Parameter Description Value
direction

Specifies the transmission direction of the files.

The direction can be one of the following (the default direction is both):
  • both:

    Indicates that files in the upload and download directions are inspected.

  • download:

    Indicates that files in the download direction are inspected.

  • upload:

    Indicates that files in the upload direction are inspected.

action

Specifies the response action.

The response action can be either of the following (the default action is block):
  • alert:

    The system permits files and generates logs.

  • block:

    The system terminates sessions and generates logs.

Views

APT defense profile view

Default Level

2: Configuration level

Usage Guidelines

By default, file reputation detection is enabled for FTP.

The default action is block.

Example

# Create a profile named apt_ftp and set the file inspection direction to upload and action to block.

<sysname> system-view
[sysname] profile type aapt name apt_ftp
[sysname-profile-aapt-apt_ftp] ftp-detect direction upload action block
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >