Limit Download Berdasarkan ukuran file
Jika anda ingin membatasi client anda yang suka mendonlod file-file yang ukurannya besar, anda dapat menggunakan scrip berikut ini
Misalkan
Ether1 = Publik
Ether2 = Lokal
1. Buat Connection Mark
/ip firewall mangle
add chain=forward action=mark-connection new-connection-mark=download-con passthrough=yes protocol=tcp in-interface=Publik out-interface=Lokal connection-bytes=662146-4294967295
ket. file dengan ukuran 256kb ke atas akan kena limit
2. Buat Connection Mark
/ip firewall mangle
add chain=forward action=mark-packet new-packet-mark=download-pak passthrough=no protocol=tcp in-interface=Publik out-interface=Lokal connection-mark=download-con
3. Buat queue type
add name=shape kind=pcq pcq-rate=64000 pcq-limit=50 pcq-classifier=dst-address pcq-total-limit=2000
ket. 64000 kecepatan dibatasi 64 kbps
4. Buat queue Tree
add name="queue3" parent=global-out packet-mark=download-pak limit-at=0 queue=shape priority=8 max-limit=64k burst-limit=0 burst-threshold=0 burst-time=0s
ket. 64000 kecepatan dibatasi 64 kbps
Saturday, July 28, 2012
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment