Technical Tip: Using file-filter to block unwanted file type from being downloaded
| Description | This article describes how the FortiGate File filter blocks unwanted file types. A number of tests are presented for demonstration purposes. |
| Scope | Tested on: FortiGate v. 6.4.10 |
| Solution | The following LAB tests involve FortiGate as a Firewall with a File-filter security profile applied. These were simulated on a Windows PC Client.
The following conditions were used:
1) A Firewall policy (flow and proxy-based, tested separately) 2) A file-filter security profile (flow and proxy-based, tested separately) 3) ssl-ssh-profile deep inspection (not covered in this KB, refer to related KB or document)
Test 1 with flow-based policies:
This test used a flow-based firewall policy with a flow-based file-filter security profile:
The flow-based file-filter security profile was configured as follows (blocked file types are underlined):
FortiGate was configured to only log blocked files or monitored file types:
In the client simulation on Windows 8 with a flow-based rule, as seen here, .dat and .csv files could be downloaded successfully:
However, the .exe and .gzip files could not be downloaded due to the blocking rule:
The following was exported under GUI -- Log & report - > File Filter:
Test 2 with proxy-based policies:
This test used a proxy-based firewall policy with a proxy-based file-filter security profile:
The proxy-based file-filter security profile was configured as follows (blocked file types are underlined):
In the client simulation on Windows 8 with a proxy-based rule, as seen here, .dat and .csv files could be downloaded successfully:
The .exe and .zip files could not be downloaded due to the blocking rule:
The following was exported under GUI -- Log & report - > File Filter:
Conclusion:
Related Fortinet Documentation File filter | Fortinet Document Library SSL & SSH Inspection | Fortinet Document Library Basic deep SSL inspection configuration |












