You are on page 1of 3

5/21/2015 Restricts and Limiting Video Streaming with Mikrotik | Mikrotik How To

Home

MIKROTIK HOW TO
Mikrotik Network Tutorial | Mikrotik How To | Laern
Mikrotik

Home / mikrotik firewall / Restricts and Limiting Video Streaming with Mikrotik Popular Posts

Restricts and Limiting Video Streaming with Mikrotik Mikrotik MTCNA Sample Exam Chapter III
1. Two hosts, A and B, are connected to a broadcast
Posted by Ragam Kuliner Monday, June 18, 2012 1 comments LAN. Select all the answers showing pairs of IP
address/mask which would allow IP c...
If you have a proxy server, you can restrict  video  streaming  access  using  access  control  list  or  using
contents filtering program such as squidGuard, DansGuardian, etc. But there  are  many  websites  with Mikrotik MTCNA Sample Exam Chapter I

embedded  video  that  has  not  been  filtered  yet.  Mikrotik  can  help  you  overcome  this  problem  and 1. Action=redirect is applied in A. chain=srcnat B.
restrict access to embedded streaming video with ease. chain=dstnat C. chain=forward 2. You have 802.11b/g
wireless card. What frequenc...
Mikrotik MTCNA Sample Exam Chapter II
1. If you need to make sure that one computer in your
HotSpot network can access the Internet without
HotSpot authentication, which men...
Tunning Wireless Interface To Increase Throughput
Tunning Wireless Interface To Increase Throughput ­ To
increase the troughput of the mikrotik wireless link, i
have did this way. Enter in...
Mikrotik Layer 7 Firewall Setup
Restrict bandwidth usage for embedded video streaming Mikrotik Layer 7 Firewall Setup ­ Layer 7 is the
application layer of the OSi system model and allows
You can use the following script to limit bandwidth usage for sites that embedding video streaming such
the Mikrotik router to analyze each a...
YouTube, Metacafe, Tube8, etc. I’m personally already tested this script and works fine.
The scenario  is  using  mikrotik  built­in  Layer7  Protocol  to  detects  embedded  video  streaming  on  any Mikrotik Load Balancing With NTH For 3 Line
websites, marking the data packets, then defining bandwidth limit using Simple Queue rule. Internet Source
First, add a video content filter at Layer7 protocol: This is my firewall mangle, Nat, and Routing Rules for
Load Balance with NTH metod at mikrotik 3.x. With This
Rules, we can optimize if we ...

/ip firewall layer7­protocol add name=http­video regexp="http/(0.9|1.0|1.1)[x09­x0d ][1­5][0­9][0­9] Mikrotik + Squid Web Proxy
[x09­x0d ­~]*(content­type: video)" Mikrotik + Squid Web Proxy ­ Ip Addrees Configuration :
1. IP Mikrotik: ­ 192.168.10.15 = to local ­ 192.168.12.15
= to squid proxy ­ ...
Second, marking data packets using firewall mangle:
Powered by Blogger.

/ip firewall mangle add action=mark­packet chain=prerouting comment="http­video mark­packet"
disabled=no layer7­protocol=http­video new­packet­mark=http­video passthrough=no

Then  finally,  add  new  rule  in  simple  queue  to  limit  bandwidth  usage  for  http­video  packets  (in  this
example, download for embedded video streaming was capped at 64kbps, you can define this to suite
your needs).

/queue simple add max­limit=0/64000 name=http­video packet­marks=http­video

 Blocking embedded video streaming with mikrotik

We previously able to apply bandwidth restrictions for embedded streaming video, how about block any

http://mikrotikz.blogspot.com/2012/06/restricts-and-limiting-video-streaming.html 1/3
5/21/2015 Restricts and Limiting Video Streaming with Mikrotik | Mikrotik How To
embedded streaming videos so clients will not able to play embedded video streaming. In this scenario,
any websites that is embedding streaming video can still be accessed and browsed as usual, but when
playing streaming video, it will not be in loaded at all.
This useful when implemented at the office environment, where users can browse internet, but cannot
watch video streaming at all :)
The scenario is similar as above, but with a little adjustment : all embedded video streaming packets
will be dropped.
First, add a video content filter at Layer7 protocol:

/ip firewall layer7­protocol add name=http­video regexp="http/(0.9|1.0|1.1)[x09­x0d ][1­5][0­9][0­9]
[x09­x0d ­~]*(content­type: video)"

Second, marking data packets using firewall mangle:

/ip firewall mangle add action=mark­packet chain=prerouting comment="http­video mark­packet"
disabled=no layer7­protocol=http­video new­packet­mark=http­video passthrough=no

Finally, drop all http­video packets :)

/ip firewall filter add action=drop chain=forward comment="http­video blocking" packet­mark=http­
video

 Just give  a  try  :  open  any  video  on  Youtube,  and  see  what  happens.  All  videos  should  not  able  to
loaded properly since the data packets is dropped at mikrotik firewall.

(fazar.net)

Categories: firewall, layer 7 protocol, mangle, mikrotik firewall

If You Like This Post, Share it With Your Friends

                     

1 comments:

Sanket Bijlani said...

what is the configuration if we want to allow some users to watch streaming video??

June 3, 2014 at 2:11 PM

Post a Comment

Enter your comment...

Comment as:  Stelios Agapiou (Google) Sign out

 
Publish Preview   Notify me

http://mikrotikz.blogspot.com/2012/06/restricts-and-limiting-video-streaming.html 2/3
5/21/2015 Restricts and Limiting Video Streaming with Mikrotik | Mikrotik How To

Newer Post » Home « Older Post

Labels Stats About Blog Archive

mikrotik (16) Mikrotikz is Router OS that based in ►  2014 (6)


Linux kernel
mikrotik firewall (6) ►  2013 (2)

mikrotik wireless (5) ▼  2012 (15)

router mikrotik (8) ►  July (1)

routerboard (17) ▼  June (4)

wireless (13) Mikrotik New Product
RB2011L

Restricts and Limiting Video
Streaming with Mikrot...

Mikrotik RouterBoard RB800
Review

Mikrotik V5.17 Router OS
Release

►  May (2)

►  March (1)

►  February (3)

►  January (4)

►  2011 (38)

►  2010 (14)

Copyright © Mikrotik How To. All rights reserved.

http://mikrotikz.blogspot.com/2012/06/restricts-and-limiting-video-streaming.html 3/3

You might also like