How to allow a specific file when its File Type is set to "block"
86075
Created On 09/26/20 00:44 AM - Last Modified 05/02/24 20:34 PM
Objective
- Create an exception for file types that are configured to be blocked in File Blocking.
- The File Blocking profile does not provide with the ability to configure exceptions, however, the URN to the file can be used to configure an exception leveraging the "Service/URL Category" field in a Security Policy rule.
Environment
- A File Blocking is configured to block the file-type that needs to be transferred.
- A specific file in the blocked File Type needs to be excepted.
- The file transfer protocol used is HTTP.
Procedure
1. Attempt the file transfer that is getting blocked. In this example the File Type is a .jar file.
2. Browse to the [Monitor > Data Filtering] logs and identify the Security Policy rule name that was declared as blocking the file. In our example it is a Security Policy rule named "BLOCKJAR".
3. Go to [Objects > Custom Objects > URL Category] and create a new category that will be used for File Blocking exceptions. In this example it's named "ALERTJAR". Click on Add and specify the URN to the file. (Do not prepend http:// for the entry).
4. Clone the current Security Policy rule so that it precedes the currently matched Security Policy rule.
5. Open the newly cloned Security Policy rule for editing. Define a new name for it. In this example it is named "ALERTJAR".
6. Select the "Service/URL Category" tab, and define the URL Category created in Step 3.
7. Go to the Actions tab. Make sure that the newly cloned Security Policy either has no File Blocking profile defined (None), or that the one selected does not block the File Type that needs to be allowed.
8. This is what the Security Policy rules would look like.
9. Commit your changes. After Commit succeeds, access to the otherwise blocked file will now be allowed.
Additional Information
Lab verification
In our lab test for Step 7, we used a File Blocking profile called ALERTJAR configured to alert on JAR files.After the Commit completed and a new file download was attempted, we can verify that the download of the otherwise blocked file-type is now properly being allowed.