Untuk kali ini kami mencoba sharing pengaturan bandwitdh untuk koneksi warnet menggunakan Queue Tree. DImana queue tree terbilang handal dalam membagi bandwitdh. Oke kami langsung saja bagikan pengaturan yang kami aplikasikan di warnet: icalnet
Pertama kita terlebih dulu menandai paket dari koneksi warnet, misal di awarnet sini, ada 4 client yah,,, client 1 - client 4. Pengaturan mangle seperti dibawah ini:
/ip firewall mangle
add action=mark-packet chain=prerouting comment=client1 new-packet-mark=\
client1-up passthrough=no src-address=192.168.137.4
add action=mark-packet chain=postrouting dst-address=192.168.137.4 \
new-packet-mark=client1-down
add action=mark-packet chain=prerouting comment=client2 new-packet-mark=\
client2-up src-address=192.168.137.5
add action=mark-packet chain=postrouting dst-address=192.168.137.5 \
new-packet-mark=client2-down
add action=mark-packet chain=prerouting comment=client4 new-packet-mark=\
client4-up passthrough=no src-address=192.168.137.7
add action=mark-packet chain=postrouting dst-address=192.168.137.7 \
new-packet-mark=client4-down
add action=mark-packet chain=prerouting comment=c3 new-packet-mark=c3up \
src-address=192.168.137.6
add action=mark-packet chain=postrouting dst-address=192.168.137.6 \
new-packet-mark=c3down
asumsi diatas, ip client menggunakan 192.168.137.4 - 192.168.137.7 . Harus dimangle 1/1 , termasuk koneksi download dan upload.
Pengaturan queue type
/queue type
add kind=pcq name=pcq-down pcq-classifier=dst-address pcq-dst-address6-mask=\
64 pcq-rate=80k pcq-src-address6-mask=64
add kind=pcq name=pcq-up pcq-classifier=src-address pcq-dst-address6-mask=64 \
pcq-rate=40k pcq-src-address6-mask=64
add kind=pcq name=pcq-net-dwon pcq-classifier=dst-address \
pcq-dst-address6-mask=64 pcq-rate=200k pcq-src-address6-mask=64
add kind=pcq name=pcq-net-up pcq-classifier=src-address \
pcq-dst-address6-mask=64 pcq-rate=64k pcq-src-address6-mask=64
Untuk pengaturan queue tree
/queue tree
add max-limit=150k name="Warnet Koneksi" packet-mark="" parent=global-out
add name=client1 packet-mark=client1-down parent="Warnet Koneksi"
add name=client2 packet-mark=client2-down parent="Warnet Koneksi"
add name=client4 packet-mark=client4-down parent="Warnet Koneksi"
add name=clinet3 packet-mark=c3down parent="Warnet Koneksi"
Diatas kecepatan maksimal 150, jika hanya 1 client yang konek artinya mendapat kecepatan 150kbps, jika 2 client artinya 150kbps dibagi 2 = 75kbps, begitu seterusnya.
tampilan warnet koneksi queue di queue tree |
tampilan koneksi tiap client |