How to limit bandwidth usage when playing YouTube videos using App Rules

Description

This article shows how to apply Bandwidth Management (BWM) when playing YouTube videos using App Rules.

Resolution

Add the below configurations to apply BWM when playing YouTube videos.

  1. Login to the SonicWall Management UI.

  2. Block UDP traffic on ports 80 and 443 using access rules from internal zone (LAN) to WAN zone.

    - Create Service objects for UDP port 80 and 443
    - Create Service group and add UDP 80 and 443 objects to the group
    - Add a new Access Rule to block traffic to WAN on UDP port 80 and 443

    Image

  3. Enable Client DPI-SSL and also enable the options for all the features on which you wish to apply DPI-SSL.

    Image

    NOTE: If this is the first time DPI-SSL is being enabled on the firewall then please consult the following KB - Where can I learn more about DPI-SSL?

  4. Create a match object with the following signatures-

    3354 App Feature 3 (Video Play) [Reqs DPI-SSL CI]
    3478 App Feature 4 (Live Video Play) [Reqs DPI-SSL CI]

    Image

    Image

  5. Create a Bandwidth object and specify the required "Guaranteed Bandwidth" and "Maximum Bandwidth". In this example 3000Kbps is used.

    Image

    Image

  6. Create a Bandwidth Management App Rule Action object as show below. Select the object (created in step 5) from the drop down for Bandwidth Object.

    Image

    Image

  7. Enable App Rules under Settings. Specify "Global Log Redundancy Filter" as per your logging requirements.

    Image

  8. Create a new App rule with above created Match object (Step 4) and Action object (Step 6).

    Image 
  9. Event logs should show logs similar to below image when user tries to access YouTube and plays a video.

    Image

Related Articles

  • SonicOS 8.1.0 FAQ
    Read More
  • SonicWall GEN8 TZs and GEN8 NSas Settings Migration
    Read More
  • Getting started with SonicWall firewalls
    Read More
not finding your answers?