Technical Tip: Oversize function for the AntiVirus Scan threshold considerations
| Description | This article describes the Oversize-limit function for the AntiVirus Scan threshold considerations. | ||||||||
| Scope | FortiGate. | ||||||||
| Solution | To limit the in-memory file size that a FortiGate can scan, the oversize threshold can be defined. If a file size is larger than this size threshold, the FortiGate unit will either pass or block the file.
How the Oversized Function Works:
To set the threshold in the profile-protocol-options:
config firewall profile-protocol-options
This is an example of a FortiGate model with a total of 2700 MB of RAM.
HTTP compression (widely known as Content Encoding) is a method to compress original data. Based on the original data type, the compression ratio can be as much as 1/4 of its original size. Considering that some files that are actually greater than the oversize threshold (yet far smaller when compressed and passed using Content-Encoding method, such as gzip, deflate, or compress), the FortiGate calculates a threshold of 1/3 of the actual threshold defined to prevent such encoded files from getting through. |