Sunday, October 16, 2016

MikroTik | Video Streaming Drop

I have been blocked video streaming, but not the webpage. It have been done on experiment of some streaming website like youtube, facebook, cnn and many more. After testing I found that result is good. When enter the website youtube, facebook it doesn't run the video (take a lot of time).

Follow the below script  --------------
/ip firewall layer7-protocol
add comment="" name=streaming regexp="videoplayback|video"
 
/ip firewall mangle
add action=mark-packet chain=prerouting comment="Mark Packet Streaming" \
    layer7-protocol=streaming new-packet-mark=streaming passthrough=no
 
/queue simple
add max-limit=64k/64k name=streaming packet-marks=streaming target=\
    192.168.0.3/32,192.168.0.4/32

Note: 192.168.0.3 or 192.168.0.4 is local host ip address, which blocked video steaming. Also noted that the video streaming drop technique didn't drop live tv streaming.

END