Code: Select all
/ip firewall layer7-protocol
add comment="" name=Youtube regexp="o-o.preferred.pttelkom-|a.youtube.com|b.y\
outube.com|c.youtube.com|d.youtube.com|e.youtube.c om|f.youtube.com|g.yout\
ube.com|h.youtube.com|i.youtube.com|j.youtube.kom| l.youtube.com"
/ip firewall mangle
add action=mark-packet chain=prerouting comment=Youtube disabled=no \
layer7-protocol=Youtube new-packet-mark="Limit YouTube" passthrough=no
/queue type
add burst-limit=0/0 burst-threshold=0/0 burst-time=0s/0s comment="" \
direction=both disabled=no dst-address=0.0.0.0/0 interface=all limit-at=\
0/0 max-limit= 64k/64k name=Youtube packet-marks="Limit YouTube" \
parent=none priority=8 queue=default-small/default-small total-queue=\
default-small