Fortinet Document Library

Version:

Version:

Version:

Version:

Version:

Version:

Version:


Table of Contents

CLI Reference

file filter

Use this sub-command to configure file filter options, including filtering by file extension type and Multipurpose Internet Mail Extension (MIME) type. File filters define the email attachment file types and file extensions to be scanned and are used in attachment scan rules.

Syntax

config file filter

edit <filter_type>

set description <string>

set extension <string>

set mime-type <string>

end

Variable

Description

Default

<filter_type>

Enter the file attachment executable type to filter by.

 

description <string>

Enter the description of the attachment filter.

 

extension <string>

Enter an extension expressed as a wildcard, for example *.exe, or *.dll.

 

mime-type <string>

Enter a MIME type in the format <nature>/<format>, in order to filter by file nature and format.

For example, to filter by image, and specifically for PNG, enter the following:

set mime-type image/png

To filter for all video formats, enter the following:

set mime-type video/*

 

file filter

Use this sub-command to configure file filter options, including filtering by file extension type and Multipurpose Internet Mail Extension (MIME) type. File filters define the email attachment file types and file extensions to be scanned and are used in attachment scan rules.

Syntax

config file filter

edit <filter_type>

set description <string>

set extension <string>

set mime-type <string>

end

Variable

Description

Default

<filter_type>

Enter the file attachment executable type to filter by.

 

description <string>

Enter the description of the attachment filter.

 

extension <string>

Enter an extension expressed as a wildcard, for example *.exe, or *.dll.

 

mime-type <string>

Enter a MIME type in the format <nature>/<format>, in order to filter by file nature and format.

For example, to filter by image, and specifically for PNG, enter the following:

set mime-type image/png

To filter for all video formats, enter the following:

set mime-type video/*