Mikrotik Tools

MIKROTIK QUEUE QOS PRIORITY GENERATOR

Youtube, TikTok, Facebook, WhatsApp, & More

1Fetch Configuration
## STEP 1 - Fetch Filter Rules from Cloud
/file remove "Mikrotik-Youtube.rsc"
/tool fetch url="https://raw.githubusercontent.com/mikrotik-tools/mikrotik-routeros-rsc/refs/heads/main/tls-host/Mikrotik-Youtube.rsc" dst-path="Mikrotik-Youtube.rsc"
2Import & Apply QoS
## STEP 2 - Import Script & Create Rules
/import file-name="Mikrotik-Youtube.rsc"
/file remove "Mikrotik-Youtube.rsc"

/queue simple
add priority=8/8 max-limit="20M/20M" name="-> YOUTUBE" packet-marks="Youtube-Up,Youtube-Down" target="192.168.0.0/16,172.16.0.0/12,10.0.0.0/8"

/ip firewall mangle
add action=mark-connection chain=prerouting new-connection-mark="Youtube-conn" dst-address-list="Mikrotik-Youtube" passthrough=yes src-address-list=LOCAL-IP comment="Youtube Mangle - Mua.lat"
add action=mark-packet chain=prerouting connection-mark="Youtube-conn" src-address-list=LOCAL-IP new-packet-mark="Youtube-Up" passthrough=no
add action=mark-packet chain=postrouting connection-mark="Youtube-conn" dst-address-list=LOCAL-IP new-packet-mark="Youtube-Down" passthrough=no

/ip firewall address-list
add address=192.168.0.0/16 list=LOCAL-IP comment="LOCAL IP - Mua.lat"
add address=172.16.0.0/12 list=LOCAL-IP comment="LOCAL IP - Mua.lat"
add address=10.0.0.0/8 list=LOCAL-IP comment="LOCAL IP - Mua.lat"