-->

MANAJEMEN BANDWITH WARNET DENGAN SIMPLE QUEUE DI MIKROTIK

Assalamu'alaikum sobat IT semua,gimana kabarnya??nih bagi sobat yang sekarang lagi menjalankan bisnis warnet harus membaca artikel pada kali ini  karena pada kesempatan kali ini saya akan membahas cara membagi bandwith  warnet dengan queue simple.Pada artikel ini dibutuhkan yang namanya syarat dan kondisi ,untuk lebih jelasnya bisa di lihat di bawah ini:

Syarat dan Kondisi

Versi Router OS MikroTik yang digunakan versi 6.x, dan mikrotik sobat harus sudah terhubung ke internet dan komputer klien juga sudah terhubung ke internet. Dan penerapan topologi kurang lebih seperti pola berikut ini, dan pada artikel ini modem terhubung ke port ether1 di mikrotik dan hub/switch tehubung ke port ether2 di mikrotik :

INTERNET (Modem) —> MIKROTIK —> HUB/SWITCH —> KLIEN

Agar konfigurasi-konfigurasi yang akan saya jelaskan bisa diterapkan anda harus menggunakan tool WinBOX,jika sobat belum ada ,nih saya kasih link untuk download winbox dibawah ini:

Terus langkah selanjutnya setelah mendownloadnya adalah membuka terminal mikrotik atau juga bisa dengan meremote mikrotik dengan SSH atau telnet.


Copy Paste Address List Local

Copy pastekan script address list berikut ke terminal mikrotik, address list untuk ip lokal dibawah ini saya buat global, jika ada penyesuaian untuk kondisi ditempat sobat, silahkan sobat sesuaikan terlebih dahulu


/ip firewall address-list
add address=10.0.0.0/8 comment="++ client" list=local
add address=172.16.0.0/12 list=local
add address=192.168.0.0/16 list=local

Copy Paste Script Address List Games

Copy paste script address-list games berikut ke terminal mikrotik, ini nanti berfungsi untuk memisahkan koneksi games online dengan koneksi lainnya. Mungkin ada beberapa ip address games online yang masih belum masuk dalam list ini, jadi silahkan lakukan penambahan jika masih ada yang kurang.


/ip firewall address-list
add address=43.252.184.0/22 comment="++ garena" list=games
add address=203.117.172.0/24 list=games
add address=203.117.155.0/24 list=games
add address=203.117.158.0/24 list=games
add address=203.116.64.0/24 list=games
add address=203.116.23.0/24 list=games
add address=202.73.16.0/21 list=games
add address=125.5.12.0/24 list=games
add address=122.11.128.0/24 list=games
add address=103.248.56.0/22 list=games
add address=49.50.7.0/24 comment="++ kreon" list=games
add address=49.50.6.0/24 list=games
add address=49.50.6.0/23 list=games
add address=49.50.5.0/24 list=games
add address=49.50.4.0/24 list=games
add address=49.50.4.0/23 list=games
add address=49.50.4.0/22 list=games
add address=203.89.147.0/24 list=games
add address=203.89.146.0/24 list=games
add address=202.93.16.0/21 comment="++ lyto" list=games
add address=202.146.176.0/21 comment="++ PT Elektrindo Data Nusantara" list=games
add address=122.102.54.0/24 comment="++ megaxus" list=games
add address=122.102.53.0/24 list=games
add address=122.102.52.0/24 list=games
add address=122.102.51.0/24 list=games
add address=122.102.50.0/24 list=games
add address=122.102.49.0/24 list=games
add address=122.102.48.0/24 list=games
add address=103.8.56.0/24 comment="++ prime link indonesia" list=games
add address=103.8.57.0/24 list=games
add address=103.8.58.0/23 list=games
add address=103.8.58.0/24 list=games
add address=103.8.59.0/24 list=games
add address=110.93.12.0/23 list=games
add address=110.93.12.0/24 list=games
add address=110.93.13.0/24 list=games
add address=110.93.14.0/23 list=games
add address=110.93.14.0/24 list=games
add address=110.93.15.0/24 list=games
add address=202.43.116.0/23 list=games
add address=202.43.116.0/24 list=games
add address=202.43.117.0/24 list=games
add address=116.212.98.0/23 comment="++ lintas data indonesia" list=games
add address=116.212.98.0/24 list=games
add address=116.212.99.0/24 list=games
add address=205.185.194.0/24 comment="++ valve US" list=games
add address=208.78.164.0/22 comment="++ valve corporation" list=games
add address=103.28.54.0/23 comment="++ valve singapure" list=games
add address=143.137.146.0/24 comment=Peru list=games
add address=153.254.86.0/24 comment=Japan list=games
add address=45.121.184.0/23 comment="++ valve japan" list=games
add address=45.121.186.0/23 list=games
add address=146.66.152.0/23 comment="++ valve europe union" list=games
add address=146.66.154.0/24 list=games
add address=155.133.240.0/23 list=games
add address=155.133.242.0/23 list=games
add address=155.133.244.0/24 list=games
add address=155.133.245.0/24 list=games
add address=162.254.192.0/24 list=games
add address=162.254.193.0/24 list=games
add address=162.254.194.0/23 list=games
add address=162.254.196.0/24 list=games
add address=162.254.197.0/24 list=games
add address=162.254.198.0/24 list=games
add address=162.254.199.0/24 list=games
add address=185.25.183.0/24 list=games
add address=122.11.128.0/18 list=games
add address=146.66.155.0/24 list=games
add address=146.66.156.0/23 list=games
add address=146.66.158.0/23 list=games
add address=185.25.180.0/23 list=games
add address=185.25.182.0/24 list=games
add address=155.133.238.0/24 comment="++ valve germany" list=games
add address=155.133.239.0/24 list=games
add address=155.133.246.0/23 list=games
add address=155.133.248.0/24 list=games
add address=155.133.249.0/24 list=games
add address=155.133.250.0/23 list=games
add address=155.133.250.0/24 list=games
add address=155.133.251.0/24 list=games
add address=155.133.252.0/24 list=games
add address=155.133.254.0/24 list=games
add address=205.196.6.0/24 list=games
add address=208.64.200.0/24 list=games
add address=208.64.201.0/24 list=games
add address=208.64.202.0/24 list=games
add address=208.64.203.0/24 list=games
add address=192.69.96.0/22 list=games
add address=63.150.138.0/24 comment="++ valve" list=games
add address=216.111.123.0/24 list=games
add address=103.10.124.0/24 list=games
add address=103.10.125.0/24 list=games
add address=117.18.232.0/24 comment="++ edgecast network" disabled=yes list=\games
add address=205.185.216.0/24 comment="++ valve US" list=games
add address=206.82.192.0/19 comment="++ Latisys-Irvine, LLC" list=games
add address=155.133.253.0/24 comment="++ valve" list=games
add address=190.217.32.0/22 list=games
add address=155.133.233.0/24 list=games
add address=155.133.230.0/23 list=games
add address=155.133.232.0/23 list=games

Copy Paste Script Mangle

Selesai langkah diatas sobat lanjutkan dengan mengcopy paste script mangle berikut ke terminal mikrotik, pada script mangle dibawah ini interface yang terhubung ke modem adalah “ether1” dan yang ke hub/switch adalah “ether2“, jadi sebelum anda copy paste script dibawah ini,anda sesuaikan terlebih dahulu dengan kondisi ditempat sobat. Penyesuaian interface ada pada baris 29,30 dan 32,33,34,35


/ip firewall mangle
add action=mark-connection chain=prerouting comment="++ echo request" new-connection-mark=icmp protocol=icmp
add action=mark-packet chain=prerouting connection-mark=icmp new-packet-mark=icmp_up passthrough=no
add action=mark-packet chain=postrouting connection-mark=icmp new-packet-mark=icmp_down passthrough=no
add action=mark-connection chain=prerouting comment="++ dns resolve" new-connection-mark=dns port=53,2048,5353,123 protocol=udp
add action=mark-packet chain=prerouting connection-mark=dns new-packet-mark=dns_up passthrough=no
add action=mark-packet chain=postrouting connection-mark=dns new-packet-mark=dns_down passthrough=no
add action=mark-connection chain=prerouting comment="++ games online" dst-address-list=games dst-port=!80,182,443,8080,21,81,6861,6851,1970,1935,4500,127,88,8001-8050 new-connection-mark="games online" protocol=tcp src-address-list=local
add action=mark-connection chain=prerouting dst-address-list=games dst-port=!80,182,443,8080,21,81,6861,6851,1970,1935,4500,127,88,8001-8050 new-connection-mark="games online" protocol=udp src-address-list=local
add action=mark-connection chain=prerouting comment="++ other steam servers" dst-port=27000-27150 new-connection-mark="games online" protocol=tcp src-address-list=local
add action=mark-connection chain=prerouting dst-port=27000-27150,4380,3478,4379 new-connection-mark="games online" protocol=udp src-address-list=local
add action=mark-connection chain=prerouting comment="++ games pubg" dst-port=7000-7999 new-connection-mark="games online" protocol=udp src-address-list=local
add action=mark-connection chain=prerouting comment="++ games online ---> touch prodigy" dst-address=103.8.56.0/24 dst-port=!80,443 new-connection-mark="games online" protocol=tcp src-address-list=local
add action=mark-connection chain=prerouting comment="++ games mobile ---> mobile legend" dst-port=5530,30050-30110 new-connection-mark="games online" protocol=tcp src-address-list=local
add action=mark-connection chain=prerouting comment="++ games mobile ---> line get rich" dst-port=10500-10515 new-connection-mark="games online" protocol=tcp src-address-list=local
add action=mark-connection chain=prerouting comment="++ games mobile ---> clash of clans/royale, last empire, zynga poker" dst-port=9330-9340,9933 new-connection-mark="games online" protocol=tcp src-address-list=local
add action=mark-connection chain=prerouting dst-port=9330-9340 new-connection-mark="games online" protocol=udp src-address-list=local
add action=mark-connection chain=prerouting comment="++ games mobile ---> domino qq" dst-port=9122,11000-11150 new-connection-mark="games online" protocol=tcp src-address-list=local
add action=mark-connection chain=prerouting comment="++ games mobile ---> dream league soccer" dst-port=60970-60980 new-connection-mark="games online" protocol=udp src-address-list=local
add action=mark-connection chain=prerouting comment="++ games mobile ---> shinobi heroes" dst-port=10005-10020 new-connection-mark="games online" protocol=tcp src-address-list=local
add action=mark-connection chain=prerouting comment="++ games mobile ---> boya domino qq" dst-port=7020-7030 new-connection-mark="games online" protocol=tcp src-address-list=local
add action=mark-connection chain=prerouting comment="++ games browser ---> league of angels" dst-port=51700-51715 new-connection-mark="games online" protocol=tcp src-address-list=local
add action=mark-connection chain=prerouting comment="++ games browser ---> sword of angels" dst-port=15490-15510 new-connection-mark="games online" protocol=tcp src-address-list=local
add action=mark-connection chain=prerouting comment="++ games browser ---> headshot" dst-port=1800-1810 new-connection-mark="games online" protocol=tcp src-address-list=local
add action=mark-connection chain=prerouting dst-port=1845-1860 new-connection-mark="games online" protocol=udp src-address-list=local
add action=mark-connection chain=prerouting comment="++ games browser ---> others" dst-port="843,4000,8000,8012,8890,9339,9338,10001-10011,7200-7210,7450-7460,23300,4530" new-connection-mark="games online" protocol=tcp src-address-list=local
add action=mark-connection chain=prerouting dst-port=26590-26600,1800-1810,7111,5050,441,29007,64990-65010 new-connection-mark="games online" protocol=tcp src-address-list=local
add action=mark-connection chain=prerouting dst-port=1845-1860 new-connection-mark="games online" protocol=udp src-address-list=local
add action=mark-packet chain=forward comment="++ all games ---> packet" connection-mark="games online" new-packet-mark=games_online_up out-interface="ether1" passthrough=no
add action=mark-packet chain=forward connection-mark="games online" in-interface="ether1" new-packet-mark=games_online_down passthrough=no
add action=mark-connection chain=prerouting comment="++ other connections" connection-mark=no-mark new-connection-mark="OTHER CONN"
add action=mark-packet chain=forward comment="++ qos data < 2 MB" connection-bytes=0-2097152 content=!1935 new-packet-mark=qos_small_up out-interface="ether1" passthrough=no protocol=tcp connection-mark="OTHER CONN"
add action=mark-packet chain=forward connection-bytes=0-2097152 content=!1935 in-interface="ether1" new-packet-mark=qos_small_down passthrough=no protocol=tcp connection-mark="OTHER CONN"
add action=mark-packet chain=forward comment="++ qos data > 2 MB" new-packet-mark=qos_high_up out-interface="ether1" passthrough=no connection-mark="OTHER CONN"
add action=mark-packet chain=forward in-interface="ether1" new-packet-mark=qos_high_down passthrough=no connection-mark="OTHER CONN"

Copy Paste Script Queue Type

Selanjutnya sobat copy paste script queue type dibawah ini, disini kita akan menggunakan metode PCQ pada queue simple dan tentunya dengan penerapan HTB.


/queue type
add kind=pcq name=games pcq-burst-time=1s pcq-classifier=src-address,dst-address,src-port,dst-port pcq-dst-address6-mask=64 pcq-src-address6-mask=64
add kind=pcq name=download pcq-classifier=dst-address pcq-dst-address6-mask=64 pcq-src-address6-mask=64 pcq-rate=2M
add kind=pcq name=upload pcq-classifier=src-address pcq-dst-address6-mask=64 pcq-src-address6-mask=64 pcq-rate=384k

Copy Paste Script Queue Simple

Langkah terakhir adalah mengcopy paste script queue simple dibawah ini, disini saya menggunakan koneksi internet 4 Mbps. Jika sobat menggunakan koneksi internet dengan kapasitas bandwidth berbeda terlebih dahulu silahkan disesuaikan.


/queue simple
add comment="++ global connection" max-limit=1M/4M name="--- packet management" queue=default/default target=ether2
add limit-at=128k/1M max-limit=1M/4M name="--- echo request" packet-marks=icmp_up,icmp_down,dns_up,dns_down parent="--- packet management" priority=1/1 queue=default/default target="0.0.0.0/0"
add limit-at=128k/1M max-limit=1M/4M name="--- games online" packet-marks=games_online_up,games_online_down parent="--- packet management" priority=2/2 queue=games/games target="0.0.0.0/0"
add limit-at=256k/2M max-limit=512k/3M name="--- weight packet" parent="--- packet management" queue=default/default target="0.0.0.0/0"
add comment="           ------------------------------------" limit-at=128k/1M max-limit=512k/3M name="--- data < 2 MB" packet-marks=qos_small_up,qos_small_down parent="--- weight packet" priority=6/6 queue=upload/download target="0.0.0.0/0"
add limit-at=128k/1M max-limit=512k/3M name="--- data > 2 MB" packet-marks=qos_high_up,qos_high_down parent="--- weight packet" queue=upload/download target="0.0.0.0/0"

Kurang lebih hasilnya akan seperti gambar berikut ini :

Script-script diatas sudah saya test sebelumnya, jadi jika langkah sobat benar dan syarat serta kondisi sudah sesuai dengan yang saya jelaskan diawal artikel bisa saya pastikan script-script diatas akan berjalan sebagaimana mestinya.

Pola yang saya bagikan diatas adalah pola dasar untuk pemisahan trafik ICMP, DNS, GAMES ONLINE, BROWSING DAN DOWNLOAD yang sangat efisien untuk diterapkan di warnet sobat, pola diatas masih bisa sobat kembangkan lagi secara detail dalam pemisahan trafik atau akses internet di warnet sobat.

Sekian yang dapat saya sampaikan,mohon ma'af apabila ada kesalahan dalam penulisan artikel kali ini dan semoga bermanfa'at bagi kita semua wabillahi taufiq wal hidayah.


Wassalamu'alaikum wr.wb

Berlangganan update artikel terbaru via email:

0 Response to "MANAJEMEN BANDWITH WARNET DENGAN SIMPLE QUEUE DI MIKROTIK"

Post a Comment

iklan