Allow YouTube while blocking Multimedia content of other sites.
10/14/2021 66 People found this article helpful 487,074 Views
Description
This article describes how to allow YouTube streaming content while blocking multimedia content of other sites. The method described here uses App Rules policies with App Control Advanced signatures.
Resolution
Resolution for SonicOS 6.5
This release includes significant user interface changes and many new features that are different from the SonicOS 6.2 and earlier firmware. The below resolution is for customers using SonicOS 6.5 firmware.
Note: The solution described here is for HTTP traffic. This article does not claim to block HTTPS traffic. For this solution to work over HTTPS requires Client DPI-SSL.
Procedure:
- Login to the SonicWall management GUI.
- Navigate to the Manage | Objects | Match Objects page.
- Click on Add New Match Object to open the Add/Edit Match Object window.
- Enter a name for this Match Object. For example, YouTube Signatures
- Under Match Object Type, select Application List.
- Under Application Category, select MULTIMEDIA
- Under Application, select MULTIMEDIA YouTube
- Click on the Add button on the right to add this application to the List box.
- Click on OK to save.
|
|
Now we create another match object, this time for multimedia content.
- Click on Add New Match Object to open the Add/Edit Match Object window.
- Enter a name for this Match Object. For example, Multimedia Signatures
- Under Match Object Type, select Application Category List.
- Under Application Categories, select MULTIMEDIA
- Click on the Add button on the right to add this application to the List box.
- Click on OK to save
| |
We have created two match objects and are now ready to create two App Rule policies referencing each of the above match objects. In order for this to work, the policies must be created in the exact order described here. This is due to the way App Rule policies are prioritized which is, the first policy created has a higher priority than (and therefore above) the subsequent policies. For our particular purpose, we first create the policy to allow YouTube and then the policy to block multimedia content of other sites.
- Navigate to the Manage | Rules | Application Control page.
- Click on Add New Policy to open the Edit App Control Policy window.
- Enter a name for this policy. For example, Allow YouTube.
- Under Policy Type, select App Control Content.
- Set Address to Any. (Note: This field is for including IP addresses, inside or outside)
- Set Exclusion Address to None.
- Under Match Object select the match object created earlier - YouTube Signatures
- Under Action Object select Bypass DPI.
- Under Users/Groups > Included, select a user group to be included under this policy.
- Under Users/Groups > Excluded, select a user group to be excluded from this policy.
- The remaining setting could be left as it is.
- Click on OK to save.
| |
We create now a policy to block multimedia content.
- Click on Add New Policy to open the Edit App Control Policy window.
- Enter a name for this policy. For example, Block Multimedia.
- Under Policy Type, select App Control Content.
- Set Address to Any. (Note: This field is for including IP addresses, inside or outside)
- Set Exclusion Address to None.
- Under Match Object select the match object created earlier - Multimedia Signatures
- Under Action Object select Reset/Drop.
- Under Users/Groups > Included, select a user group to be included under this policy.
- Under Users/Groups > Excluded, select a user group to be excluded from this policy.
- The remaining setting could be left as it is.
- Click on OK to save.
| |
Testing
From a host behind the SonicWall, access YouTube and play a video. If you have configured the policies as recommended above, the video will play. Here is a screenshot of the log message generated when one of the App Rule policy is triggered. To know whether the Allow YouTube policy is being triggered, hover the mouse over the details icon of the log message.
Once you have ascertained that the correct policy is being applied for YouTube traffic, access another streaming website and play multimedia content. If all is well, the second policy will be applied and the content will be blocked. Shown here is a screenshot of the log message generated when Vimeo.com was accessed. By hovering the mouse over the details icon of the log message we know the policy applied was "af_policy=Block Multimedia".
Resolution for SonicOS 6.2 and Below
The below resolution is for customers using SonicOS 6.2 and earlier firmware. For firewalls that are generation 6 and newer we suggest to upgrade to the latest general release of SonicOS 6.5 firmware.
Note: The solution described here is for HTTP traffic. This article does not claim to block HTTPS traffic. For this solution to work over HTTPS requires Client DPI-SSL.
Procedure:
- Login to the SonicWall management GUI.
- Navigate to the Firewall > Match Objects page.
- Click on Add New Match Object to open the Add/Edit Match Object window.
- Enter a name for this Match Object. For example, YouTube Signatures
- Under Match Object Type, select Application List.
- Under Application Category, select MULTIMEDIA
- Under Application, select MULTIMEDIA YouTube
- Click on the Add button on the right to add this application to the List box.
- Click on OK to save.
|
|
Now we create another match object, this time for multimedia content.
- Click on Add New Match Object to open the Add/Edit Match Object window.
- Enter a name for this Match Object. For example, Multimedia Signatures
- Under Match Object Type, select Application Category List.
- Under Application Categories, select MULTIMEDIA
- Click on the Add button on the right to add this application to the List box.
- Click on OK to save
| |
We have created two match objects and are now ready to create two App Rule policies referencing each of the above match objects. In order for this to work, the policies must be created in the exact order described here. This is due to the way App Rule policies are prioritized which is, the first policy created has a higher priority than (and therefore above) the subsequent policies. For our particular purpose, we first create the policy to allow YouTube and then the policy to block multimedia content of other sites.
- Navigate to the Firewall > App Rules page.
- Enable check box Enable App Rules
- Click on Add New Policy to open the Edit App Control Policy window.
- Enter a name for this policy. For example, Allow YouTube.
- Under Policy Type, select App Control Content.
- Set Address to Any. (Note: This field is for including IP addresses, inside or outside)
- Set Exclusion Address to None.
- Under Match Object select the match object created earlier - YouTube Signatures
- Under Action Object select Bypass DPI.
- Under Users/Groups > Included, select a user group to be included under this policy.
- Under Users/Groups > Excluded, select a user group to be excluded from this policy.
- The remaining setting could be left as it is.
- Click on OK to save.
| |
We create now a policy to block multimedia content.
- Click on Add New Policy to open the Edit App Control Policy window.
- Enter a name for this policy. For example, Block Multimedia.
- Under Policy Type, select App Control Content.
- Set Address to Any. (Note: This field is for including IP addresses, inside or outside)
- Set Exclusion Address to None.
- Under Match Object select the match object created earlier - Multimedia Signatures
- Under Action Object select Reset/Drop.
- Under Users/Groups > Included, select a user group to be included under this policy.
- Under Users/Groups > Excluded, select a user group to be excluded from this policy.
- The remaining setting could be left as it is.
- Click on OK to save.
| |
Testing
From a host behind the SonicWall, access YouTube and play a video. If you have configured the policies as recommended above, the video will play. Here is a screenshot of the log message generated when one of the App Rule policy is triggered. To know whether the Allow YouTube policy is being triggered, hover the mouse over the details icon of the log message.
Once you have ascertained that the correct policy is being applied for YouTube traffic, access another streaming website and play multimedia content. If all is well, the second policy will be applied and the content will be blocked. Shown here is a screenshot of the log message generated when Vimeo.com was accessed. By hovering the mouse over the details icon of the log message we know the policy applied was "af_policy=Block Multimedia".
Related Articles
Categories