Home > LOL, Mikrotik > Step by step memprioritaskan trafic Game Online IIX

Step by step memprioritaskan trafic Game Online IIX

pada tutorial kali ini saya akan memberikan cara untuk memisahkan akses untuk browsing dan untuk game, dengan  memprioritaskan game2 online IIX (lokal), dengan menggunakan mikrotik

Dowload file nice.rsc dari mikrotik.co.id

/tool fetch address=ixp.mikrotik.co.id src-path=/download/nice.rsc mode=http;

Import filenya dengan perintah

import file-name=nice.rsc

Masukan di bagian mangle

/ip firewall mangle
add action=mark-connection chain=prerouting comment=”Ayo Dance” disabled=no dst-address-list=nice dst-port=18900-18910 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=”Seal Online” disabled=no dst-address-list=nice dst-port=1818 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=”Lineage 2″ disabled=no dst-address-list=nice dst-port=7777 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=IDS disabled=no dst-address-list=nice dst-port=2001 new-connection-mark=\
game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=PB-UDP disabled=no dst-address-list=nice dst-port=40000-40010 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=udp
add action=mark-connection chain=prerouting comment=PB-TCP disabled=no dst-address-list=nice dst-port=39000-40000 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=”Ghost Online” disabled=no dst-address-list=nice dst-port=19101 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=RF-Elven disabled=no dst-address-list=nice dst-port=27780 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=”Perfect World” disabled=no dst-address-list=nice dst-port=29000 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=Rohan disabled=no dst-address-list=nice dst-port=22100 new-connection-mark=\
game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=”Zeus RO” disabled=no dst-address-list=nice dst-port=5121 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=DOTA disabled=no dst-address-list=nice dst-port=6000-6125 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=”Crazy Kart” disabled=no dst-address-list=nice dst-port=9600-9602 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=”WOW AMPM” disabled=no dst-address-list=nice dst-port=8085 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=”Drift City” disabled=no dst-address-list=nice dst-port=11011-11041 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=GetAmped disabled=no dst-address-list=nice dst-port=13413 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=Yullgang disabled=no dst-address-list=nice dst-port=19000 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=”RAN Online” disabled=no dst-address-list=nice dst-port=5105 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=”Cross Fire TCP” disabled=no dst-address-list=nice dst-port=\
10009,13008,16666,28012 new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=”Cross Fire UDP” disabled=no dst-address-list=nice dst-port=\
12020-12080,13000-13080 new-connection-mark=game-online-indonesia passthrough=yes protocol=udp
add action=mark-connection chain=prerouting comment=”War Rock” disabled=no dst-address-list=nice dst-port=5340-5352 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=”Fast Black” disabled=no dst-address-list=nice dst-port=6000-6001 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=”Rose Online” disabled=no dst-address-list=nice dst-port=29200 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=”Crazy Kart 2″ disabled=no dst-address-list=nice dst-port=9600 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=”Return of Warrior” disabled=no dst-address-list=nice dst-port=10402 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=”Luna Online” disabled=no dst-address-list=nice dst-port=15000-15002 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=”Runes of Magic” disabled=no dst-address-list=nice dst-port=16400-16502 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=”Fresh Ragnarok PS” disabled=no dst-address-list=nice dst-port=5171 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=”Tantra Online” disabled=no dst-address-list=nice dst-port=3010 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=Atlantica disabled=no dst-address-list=nice dst-port=4300 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=”ECO Online” disabled=no dst-address-list=nice dst-port=12011,12110 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=”Cabal Indonesia” disabled=no dst-address-list=nice dst-port=15000-15002 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=Avalon disabled=no dst-address-list=nice dst-port=9376-9377 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=”X-Shot UDP” disabled=no dst-address-list=nice dst-port=7777-7977,30000 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=udp
add action=mark-connection chain=prerouting comment=”3 Kingdoms” disabled=no dst-address-list=nice dst-port=15000-15002 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=udp
add action=mark-connection chain=prerouting comment=”Grand Chase TCP” disabled=no dst-address-list=nice dst-port=\
9300,9400,9700 new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=”Grand Chase UDP” disabled=no dst-address-list=nice dst-port=9401,9600 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=udp
add action=mark-connection chain=prerouting comment=MAKO disabled=no dst-address-list=nice dst-port=21000-21020 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp

Kemudian bikin mark-packet agar dapat ditangkap di Queue berdasarkan mark-connection yang dibuat tadi (dalam contoh disini nama mark-connection nya adalah “game-online-indonesia”)

/ip firewall mangle add chain=prerouting connection-mark=game-online-indonesia action=mark-packet new-packet-mark=Game

trus bikin satu lagi mark-packet untuk trafic diluar traffic game yang sudah dibuat tadi:

/ip firewall mangle add chain=prerouting connection-mark=!game-online-indonesia action=mark-packet new-packet-mark=Browsing

Terakhir, tinggal buat 2 queue berdasarkan 2 packet-mark tadi yaitu Game dan Browsing… berikut contoh untuk warnet yang punya bandwidth 512kbps downstream/upstream…

/queue simple
add burst-limit=0/0 burst-threshold=0/0 burst-time=0s/0s comment=”” direction=both disabled=no dst-address=0.0.0.0/0 \
interface=all max-limit=512k/512k name=Game packet-marks=”Game” parent=none priority=1 \
queue=default-small/default-small total-queue=default-small
add burst-limit=0/0 burst-threshold=0/0 burst-time=0s/0s comment=”” direction=both disabled=no dst-address=0.0.0.0/0 \
interface=all max-limit=512k/512k name=Browsing packet-marks=”Browsing” parent=none priority=8 \
queue=default-small/default-small total-queue=default-small

Dengan begitu antara traffic game dan yang bukan game udah terpisahkan namun belum ada pembagian bandwidth per client nya… untuk itu kita tinggal membuat queue child dengan parent “Browsing” kemudian masukan target-address sesuai dengan IP address tiap2 PC-client nya tanpa packet-mark…
Contoh:

/queue simple add burst-limit=0/0 burst-threshold=0/0 burst-time=0s/0s comment=”” direction=both disabled=no dst-address=0.0.0.0/0 \
interface=all limit-at=32k/64k max-limit=64k/128k name=PC-2 parent=Browsing priority=4 queue=default-small/default-small target-addresses=10.0.0.2/32 total-queue=default-small

Perlu diingat dalam memasukan angka limit-at, akumulasi dari keseluruhan queue child tidak boleh melebihi total max-limit dari queue parent nya…

Sumber : forummikrotik.com

credits to : spring (tutorial)

dingo ( Port game )

  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: