Created on
03-11-2025
08:55 AM
Edited on
03-12-2025
01:15 AM
By
Jean-Philippe_P
Description |
This article describes an issue when blocking files based on file size bya DLP filter in flow mode. |
Scope | FortiGate. |
Solution |
This issue occurs when blocking a file using a DLP file size filter in flow mode.
Starting FortiOS firmware v7.4.4, lower-end models with 2GB memory would not support proxy features. This was done to improve memory utilization in lower-end firewall models.
For lower-end models, the DLP filter will be functioning in flow mode. Therefore, blocking files based on file size would not work if the file size were larger than 10 MB, which is the default.
To overcome this limitation, the maximum oversize threshold of file scanning has to be increased by using the 'set oversize-limit' command within the protocol options profile.
config firewall profile-protocol-options
Where:
As in the example above, the DLP filter would not be able to block any file larger than 186 MB.
On mid to low-end FortiGates, the maximum file size for scanning in memory (maximum oversize threshold) is 10% of FortiGate's RAM. The remaining RAM is reserved for system use. FortiGates automatically calculates the maximum oversized threshold for scanning.
Related documents: |