queue simple for browsing, game and download with mikrotik

now i want to share again about mikrotik setting, now we can set limit for browsing, game, and download.
this tutorial for bandwith 2M

now setup script nice ( modification from mikrotik.co.id )

/system scheduler
add disabled=no interval=1d name=sch-nice on-event=":if ([:len [/file find name=nice.rsc]] > 0) do={/file remove nice.rsc } ;/tool fetch url=http://ixp.mikrotik
.co.id/download/nice.rsc ;/import nice.rscr
n" policy=ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive,api start-date=Oct/06/2012 start-time=06:00:00

now setup mangle :

/ip firewall mangle
add action=mark-connection chain=forward comment="Point Blank" dst-address-list=nice dst-port=39100,39110,39220,39190,49100 new-connection-mark=conn.games protocol=tcp
add action=mark-connection chain=forward dst-address-list=nice dst-port=40000-40010 new-connection-mark=conn.games protocol=udp
add action=mark-connection chain=forward comment=Dota dst-address-list=nice dst-port=6000-6152 new-connection-mark=conn.games protocol=tcp
add action=mark-connection chain=forward comment="Ayo Dance" dst-address-list=nice dst-port=18901-18910 new-connection-mark=conn.games protocol=tcp
add action=mark-packet chain=forward connection-mark=conn.games new-packet-mark=pack.games passthrough=no
add action=mark-connection chain=forward connection-mark=!conn.heavy new-connection-mark=conn.all src-address=192.168.2.0/27 <-- your LAN setting
add action=mark-connection chain=forward connection-bytes=256000-0 connection-mark=conn.all connection-rate=100k-100M new-connection-mark=conn.heavy protocol=tcp
add action=mark-connection chain=forward connection-bytes=256000-0 connection-mark=conn.all connection-rate=100k-100M new-connection-mark=conn.heavy protocol=udp
add action=mark-packet chain=forward connection-mark=conn.all new-packet-mark=pack.all passthrough=no
add action=mark-packet chain=forward connection-mark=conn.heavy new-packet-mark=pack.heavy passthrough=no

queue type :

/queue type
add kind=pcq name=q.ty.upload pcq-burst-rate=256k pcq-burst-threshold=128k
pcq-classifier=src-address pcq-dst-address6-mask=64 pcq-rate=96k
pcq-src-address6-mask=64
add kind=pcq name=q.ty.heavy pcq-burst-rate=512k pcq-burst-threshold=384k
pcq-burst-time=16s pcq-classifier=dst-address pcq-dst-address6-mask=64
pcq-rate=256k pcq-src-address6-mask=64
add kind=pcq name=q.ty.game pcq-burst-rate=384k pcq-burst-threshold=256k
pcq-burst-time=16s pcq-classifier=dst-address pcq-dst-address6-mask=64
pcq-rate=128k pcq-src-address6-mask=64
add kind=pcq name=q.ty.all pcq-burst-rate=512k pcq-burst-threshold=256k
pcq-burst-time=16s pcq-classifier=dst-address pcq-dst-address6-mask=64
pcq-rate=384k pcq-src-address6-mask=64

now last queue simple :

/queue simple
add burst-limit=0/0 burst-threshold=0/0 burst-time=0s/0s direction=upload disabled=no interface=ether2 limit-at=128k/0 max-limit=512k/0 name=qs-up-total
packet-marks="" parent=none priority=8 queue=q.ty.upload/default-small target-addresses="" total-queue=default-small
add burst-limit=0/0 burst-threshold=0/0 burst-time=0s/0s direction=download disabled=no interface=ether2 limit-at=0/0 max-limit=512k/2M name=qs-ds-total
packet-marks="" parent=none priority=8 queue=default-small/default-small target-addresses="" total-queue=default-small
add burst-limit=0/0 burst-threshold=0/0 burst-time=0s/0s direction=download disabled=no interface=ether2 limit-at=0/384k max-limit=0/512k name=qs.game
packet-marks=pack.games parent=qs-ds-total priority=6 queue=default-small/q.ty.game target-addresses="" total-queue=default-small
add burst-limit=0/0 burst-threshold=0/0 burst-time=0s/0s direction=download disabled=no interface=ether2 limit-at=0/512k max-limit=0/1536k name=qs-non-game
packet-marks="" parent=qs-ds-total priority=8 queue=default-small/default-small target-addresses="" total-queue=default-small
add burst-limit=0/0 burst-threshold=0/0 burst-time=0s/0s direction=download disabled=no interface=ether2 limit-at=0/0 max-limit=0/1M name=qs.all packet-marks=
pack.all parent=qs-non-game priority=7 queue=default-small/q.ty.all target-addresses="" total-queue=default-small
add burst-limit=0/0 burst-threshold=0/0 burst-time=0s/0s direction=download disabled=no interface=ether2 limit-at=0/0 max-limit=0/1M name=qs.heavy
packet-marks=pack.heavy parent=qs-non-game priority=8 queue=default-small/q.ty.heavy target-addresses="" total-queue=default-small

add another port game :
find port, ip address the game and have in the list nice game in torch
typing this in terminal

/ip fi ma add copy-from=1 protocol={jenis protocol} dst-port={port games} comment=name-games

if you want to add another game port,
i give u list for the game name, protocol, port :

  1.  Ayo Dance : tcp 18901-18909
  2.  SealOnline : tcp 1818
  3.  PointBlank : tcp 39100,39110,39220,39190,49100, udp 40000-40010
  4.  Lineage2 : tcp 7777
  5.  GhostOnline : tcp 19101
  6.  RF-Elven : tcp 27780
  7.  Perfect world : tcp 29000
  8.  Rohan : tcp 22100
  9.  Zeus RO : tcp 5121
  10.  Dota : tcp 6000-6152
  11. IdolStreet : tcp 2001
  12.  CrazyKart : tcp 9601-9602
  13.  WOW AMPM : tcp 8085
  14.  DriftCity : tcp 11011-11041
  15.  GetAmped : tcp 13413
  16.  Yullgang : tcp 19000
  17.  RAN Online : tcp 5105
  18.  CrossFire : tcp 10009,13008, 16666, 28012, udp 12020-12080,13000 – 13080
  19.  WarRock : tcp 5340-5352
  20. FastBlack : tcp 6000-6001
  21. Rose Online : tcp 29200UPDATE:
  22. Return Of Warrior : tcp 10402
  23. CrazyKart 2 : tcp 9600
  24. Luna Online : tcp 15000-15002
  25. Runes Of Magic : tcp 16402-16502
  26. Fresh Ragnarok PS, http://www.freshro.org dst address 119.110.87.179 : 5171
  27. Tantra Online : tcp 3010
  28. Heroes Of Newearth Indogamers chat server -> TCP 11031 game server -> UDP 11100-11125 VOIP -> UDP 11440-11460
  29. Atlantica : tcp 4300 , ip 203.89.147.0/24 link: http://atlantica.gemscool.com/
  30. ECO Online –> Port 12011 , 12110
  31. Cabal Indo –> Port 15001, 15002
  32. X-SHOT : tcp 7341-7350,7451 , udp 7777-7977,30000
  33. 3 Kingdoms : UDP 42051-42052
  34. AVALON : tcp 9376-9377
  35. Free Style : tcp 10001-10011,40000, udp 40040-40500,1293,1479
  36. Grand Chase : tcp 9300,9400,9700, udp 9401,9600
  37. Lost Saga : 203.89.146.0/23,tcp: 14009-14012,udp: 14009-14012
  38. CS Online Indonesia : UDP 27017, TCP : 8001,9015,40300-40404,36567

Leave a comment