Membatasi download extensi tertentu pada mikrotik

Ada beberapa trik yang bisa membatasi download yang sering menghabiskan bandwidth. Bisa menggunakan Squid Proxy dengan fitur delay_pools, bisa juga dengan menggunakan mikrotik. Tetapi menurut saya yang paling ampuh menggunakan squid proxy.

Ini beberapa tahap setting firewall pada mikrotik untuk membatasi download file extensi tertentu:

LIMIT EXTENSION ——————–

ip firewall mangle
add chain=forward action=mark-connection new-connection-mark=limitfile passthrough=yes content=.mp3
add chain=forward action=mark-connection new-connection-mark=limitfile passthrough=yes content=.iso
add chain=forward action=mark-connection new-connection-mark=limitfile passthrough=yes content=.exe
add chain=forward action=mark-connection new-connection-mark=limitfile passthrough=yes content=.rar
add chain=forward action=mark-connection new-connection-mark=limitfile passthrough=yes content=.avi
add chain=forward action=mark-connection new-connection-mark=limitfile passthrough=yes content=.wmv
add chain=forward action=mark-connection new-connection-mark=limitfile passthrough=yes content=.mpeg
add chain=forward action=mark-connection new-connection-mark=limitfile passthrough=yes content=.mpg
add chain=forward action=mark-connection new-connection-mark=limitfile passthrough=yes content=.dat
add chain=forward action=mark-connection new-connection-mark=limitfile passthrough=yes content=.tar.gz
add chain=forward action=mark-connection new-connection-mark=limitfile passthrough=yes content=.tar.bz2
add chain=forward action=mark-connection new-connection-mark=limitfile passthrough=yes content=.zip
add chain=forward action=mark-connection new-connection-mark=limitfile passthrough=yes content=.3gp
add chain=forward action=mark-connection new-connection-mark=limitfile passthrough=yes content=.mp4
add chain=forward action=mark-packet new-packet-mark=down passthrough=no connection-mark=limitfile

QUEUE ———————

queue tree
add name=”downlimit” parent=global-out packet-mark=down limit-at=512k queue=default-small priority=4 max-limit=512k burst-limit=0 burst-threshold=0 burst-time=0s

This article was written by: Arief Budiman

  1. 4 Comments

    • Makasih bos atas scriptnya… namun kalo untuk video streaming kok belunm kelimit ya?? tapi untuk file yg lain sudah bekerja…

      Ok. trima kasih atas scriptnya..

    • pdr says:

      striming *.flv

      add chain=forward action=mark-connection new-connection-mark=limitfile passthrough=yes content=.flv

    • irsyad says:

      Gan scriptnya kok belum berhasil ya saya coba?

      • Arief says:

        Dear Mas irsyad, coba dech di cek lagi apa ada yg salah saat penulisanya… seharusnya seh jalan script itu

Leave a Reply

Your email address will not be published. Required fields are marked *

*


three × 5 =