Description | This article describes how to configure a DLP rule to block .BAK file extensions. |
Scope | FortiGate v7.2.x and FortiGate v7.4.x. |
Solution |
Follow these steps to block .BAK files using a DLP profile.
Configuration via CLI:
Open the FortiGate CLI console. See this article.
Create a DLP filepattern. DLP file patterns match selected file types and filename patterns. Since '.bak' files can have many possible true file types, it is necessary to block based on the name of the file. Ensure there are no other file pattern rules with the number 10. If one exists, use a different number.
config dlp filepattern edit 10 set name "bak" config entries edit "*.bak" next end next end
Create a DLP profile:
conf dlp profile edit "DLP_BAK" config rule edit 1 set proto http-get http-post set file-type 10 set action block next end next end
conf dlp profile edit "DLP_BAK" config rule edit 1 append proto ? smtp SMTP. Create a firewall policy with proxy inspection, enable the DLP profile, and configure deep inspection within the SSL profile. Ensure the firewall policy is configured according to the network topology.
config firewall policy edit 100 set name "DLP_policy" next end
After applying this configuration, .BAK files can be blocked by the DLP profile.
The page is also visible by appending '/utm/dlp' to the URL or IP address used to access FortiGate i.e: 'https://x.x.x.x/utm/dlp'.
|