Monday, August 4, 2014

Youtube Limit/Full Access Mikrotik


/ip firewall layer7-protocol
add name=streaming regexp=videoplayback|video

/ip firewall mangle
add action=mark-connection chain=prerouting comment="Youtube_ Client" \
    disabled=no layer7-protocol=streaming new-connection-mark=youtube \
    passthrough=no src-address-list=256kbps+
add action=mark-packet chain=output connection-mark=youtube disabled=no \
    new-packet-mark=youtube passthrough=no protocol=tcp


 /queue type
add kind=pcq name=PCQ_Upload pcq-burst-rate=0 pcq-burst-threshold=0 \
    pcq-burst-time=10s pcq-classifier=src-address pcq-dst-address-mask=32 \
    pcq-dst-address6-mask=64 pcq-limit=50 pcq-rate=1024k \
    pcq-src-address-mask=32 pcq-src-address6-mask=64 pcq-total-limit=2000



I have set 1024kbps for Youtube, for limitation set 1024k to 1k or so.

/queue tree
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
    max-limit=0 name=Youtube_Up packet-mark=youtube parent=global-out \
    priority=8 queue=PCQ_Upload



12 comments:

  1. Please start with introduction of the topics. Explain details then everybody can use and apply this.

    ReplyDelete
  2. My Question :
    MT = RouterBoard 750UP
    Ether1: 200.200.201.100/29 (WAN)
    Ether2: 192.168.1.100 (LAN network)

    I want PC1- 192.168.1.150/24 get only 1Mbps traffic while he requesting for browsing internet, but PC1 get 10M speed while it's request for youtube streaming.


    I am using this script to achieve this task.

    /ip firewall mangle add action=add-dst-to-address-list address-list=Youtube address-list-timeout=10m chain=prerouting comment=youtube content=youtube.com dst-port=80,443 protocol=tcp
    /ip firewall mangle add action=mark-packet chain=forward comment=youtube new-packet-mark=Youtube passthrough=no src-address-list=Youtube

    but i don't know how to create separates parent queue to match.

    Thanks
    Abbas

    ReplyDelete
    Replies
    1. http://radiusm.blogspot.com/2016/01/different-youtube-bandwidth-for.html

      you can view here

      Delete
  3. Hi, many thanks...
    It works to limit streaming on youtube website

    ReplyDelete
  4. chain output for mark-packet doesnt work for me, need to change to forward. thanks.

    ReplyDelete
  5. I found your this post while searching for some related information on blog search...Its a good post..keep posting and update the information youtube downloader

    ReplyDelete
  6. Have you noticed the news has changed its approach recently? What once seemed like a never discussed issue has become more prevelant. It’s that time to chagnge our stance on this though. online youtube video downloader

    ReplyDelete
  7. Good Post, I am a big believer in writing comments on weblogs to let the blog writers know that theyĆ¢€™ve added some thing of great benefit to the world wide web! online youtube video downloader

    ReplyDelete
  8. I’m not sure where you’re getting your information, but great topic. I needs to spend some time learning more or understanding more. Thanks for fantastic information I was looking for this information for my mission. youtube video downloader

    ReplyDelete