You are on page 1of 1

/ip firewall layer7-protocol

add comment="File Besar" name=filebesar regexp="^.*get.+\\.(exe|rar|iso|zip|7zip|


0[0-9][1-9]|flv|mkv|avi|mp4|3gp|rmvb|mp3|img|dat|mov).*\$"
add comment="Dokumen" name=dokumen regexp="^.*get.+\\.(pdf|doc|docx|xlsx|xls|rtf|
ppt|ppt).*\$"
add comment="YOUTUBE" name=youtube regexp="http/(0\\.9|1\\.0|1\\.1)[\\x09-\\x0d ]
[1-5][0-9][0-9][\\x09-\\x0d -~]*(content-type: video)"

/ip firewall mangle


add comment="File Besar" chain=prerouting layer7-protocol=filebesar action=mark-
packet new-packet-mark=filebesar passthrough=yes
add comment="DOKUMEN" chain=prerouting layer7-protocol=dokumen action=mark-packet
new-packet-mark=dokumen passthrough=yes
add comment="YOUTUBE" chain=prerouting layer7-protocol=youtube action=mark-packet
new-packet-mark=youtube passthrough=yes

/queue tree
add name=GLOBAL parent=global-out
add name=FILEBESAR parent=GLOBAL packet-mark=filebesar max-limit=1M
add name=DOKUMEN parent=GLOBAL packet-mark=dokumen max-limit=2M
add name=YOUTUBE parent=GLOBAL packet-mark=youtube max-limit=2M

You might also like