This section describes how to change the size of a compressed file for virus detection on the FW.
When detecting viruses in a compressed file, the FW decompresses the compressed file to obtain the original file and then checks whether the file is infected with viruses.
Large compressed files are often transmitted over the network. When detecting viruses in these files, the FW decompresses the files to obtain the original file, which affects the processing performance.

The FW allows you to set the maximum size of a compressed file for virus detection, According to the configured maximum size of a compressed file for virus detection, the FW can implement antivirus detection only for a file whose size equals the maximum size of a compressed file for virus detection. If a virus is detected, the file is processed based on the action defined in the antivirus profile. If no virus is detected, the file is permitted.
By default, the maximum size of a compressed file for virus detection is 100 MB. The administrator of the enterprise network can set the maximum size of a compressed file for virus detection by considering the virus detection effect and processing performance.
Compress the EICAR test file and a normal 80M file into a ZIP file and use FTP to transmit the file. When the traffic carrying the file passes through the FW, the FW detects a virus and generates a log. The ZIP file cannot be properly transmitted.
Compress the EICAR test file and a normal 80M file into a ZIP file and use FTP to transmit the file (compress the normal file and add the EICAR file to the compression package) and use FTP to transmit the ZIP file. When the traffic carrying the file passes through the FW, the FW does not detect any virus and forwards the ZIP file.
The configuration script related to the example is as follows:
# file-frame decompress size 80 # security-policy rule name policy1 source-zone trust destination-zone untrust source-address 192.168.0.0 mask 255.255.255.0 profile av default action permit #