19 June 2009

Membatasi Bandwith Download berdasarkan extensionnya di Mikrotik

Membatasi Bandwith Download berdasarkan extensionnya di Mikrotik
/ip firewall filter add chain=forward \
src-address=192.168.0.0/24 protocol=tcp content=.exe \
action=add-dst-to-address-list address-list=cekek \
address-list-timeout=01:00:00
/ip firewall filter add chain=forward \
src-address=192.168.0.0/24  protocol=tcp content=.iso \
action=add-dst-to-address-list address-list=cekek \
address-list-timeout=01:00:00
/ip firewall filter add chain=forward \
src-address=192.168.0.0/24  protocol=tcp content=.mpg \
action=add-dst-to-address-list address-list=cekek \
address-list-timeout=01:00:00
/ip firewall filter add chain=forward \
src-address=192.168.0.0/24 protocol=tcp content=.mp3 \
action=add-dst-to-address-list address-list=cekek \
address-list-timeout=01:00:00

/ip firewall filter add chain=forward \
src-address=192.168.0.0/24 protocol=tcp content=.3gp \
action=add-dst-to-address-list address-list=cekek \
address-list-timeout=01:00:00

/ip firewall filter add chain=forward \
src-address=192.168.0.0/24 protocol=tcp content=.zip \
action=add-dst-to-address-list address-list=cekek \
address-list-timeout=01:00:00

/ip firewall filter add chain=forward \
src-address=192.168.0.0/24 protocol=tcp content=.rar \
action=add-dst-to-address-list address-list=cekek \
address-list-timeout=01:00:00

/ip firewall mangle add chain=forward \
protocol=tcp src-address-list=cekek \
action=mark-packet new-packet-mark=cekek-bw

/queue simple add name=download-files \
max-limit=128000/128000 packet-marks=cekek-bw

No comments: