1. Mikrotik Unlimit Browsing But Limit Download + Youtube




Here is a script:
/ip firewall layer7-protocol
add name=L7-Youtube regexp=youtube.com|googlevideo.com

/ip firewall mangle
add action=mark-connection chain=prerouting connection-bytes=\
262146-4294967295 in-interface=ether1-gateway new-connection-mark=\
All_Download protocol=tcp src-port=21,80
add action=mark-packet chain=prerouting connection-mark=All_Download \
in-interface=ether1-gateway new-packet-mark=All_Download passthrough=no
add action=mark-packet chain=forward comment=youtube layer7-protocol=\
L7-Youtube new-packet-mark=Youtube-Packet

/queue simple
add max-limit=3M/3M name=Youtube packet-marks=Youtube-Packet queue=\
default/default target=""
add max-limit=1M/1M name=Download packet-marks=All_Download queue=\
default/default target=""
Previous
Next Post »

2 comments

Write comments
Ali
AUTHOR
October 24, 2017 at 9:05 AM delete

what is "connection-bytes=262146-4294967295" and "src-port=21,80"
can be add port 443 to src-port?

Reply
avatar
May 12, 2018 at 7:49 AM delete

another similar script which is in youtube video

Reply
avatar