The file-set command sets sizes for different types of files to be sent to a local sandbox or a cloud sandbox for detection.
The undo file-set command restores the default setting.
file-set { exe | office | gzip | pdf | picture | web | media | other } max-size max-file-size
undo file-set { exe | office | gzip | pdf | picture | web | media | other }
The FW can select the files to be sent to the local sandbox or the cloud sandbox based on file sizes.
If the size of a file exceeds max-file-size, the FW will not send the file to the local sandbox or the cloud sandbox for detection. Instead, the FW processes or forwards the file.
Changing the max-file-size value affects the detection performance of the local sandbox or the cloud sandbox. You are advised to use the default value of max-file-size for general use.
picture, web, media, and other take effect only for the local sandbox. The cloud sandbox does not support detecting image, web page, media, or other files.
# Set the maximum size to 4096 KB for executable files to be sent to a local sandbox for detection.
<sysname> system-view [sysname] sandbox default [sysname-sandbox-default] file-set exe max-size 4096
# Restore the maximum size to the default value for PDF files to be sent to a local sandbox for detection.
<sysname> system-view [sysname] sandbox default [sysname-sandbox-default] undo file-set pdf
# Set the maximum size to 4096 KB for executable files to be sent to a cloud sandbox for detection.
<sysname> system-view [sysname] sandbox cloud [sysname-sandbox-cloud] file-set exe max-size 4096
# Restore the maximum size to the default value for PDF files to be sent to a cloud sandbox for detection.
<sysname> system-view [sysname] sandbox cloud [sysname-sandbox-cloud] undo file-set pdf