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