1. Menandai ip iix di address-list
/tool fetch address=ixp.mikrotik.co.id src-path=/download/nice.rsc mode=http;
Import file nya di new terminal : import nice.rsc
2. Menandai download dan youtube di layer7-protokol
/ip firewall layer7-protocol
add name=Konten regexp="^.*get.+\\.(exe|rar|zip|7z|cab|asf|mov|wmv|mpg|mpeg|mk\
v|avi|flv|pdf|wav|rm|mp3|mp4|ram|rmvb|dat|daa|iso|nrg|bin|vcd|mp2|3gp|mpe|\
qt|raw|wma|ogg|doc|deb|tar|bzip|gzip|gzip2|0[0-9][0-9]).*\$"
add name=Youtube regexp="^.+(c.youtube.com|googlevideo.com).*\$"
3. Menandai koneksi di mangle
/ip firewall mangle
add action=mark-packet chain=prerouting comment=PEROKSI disabled=no dscp=12 \
new-packet-mark=PEROKSI passthrough=no
add action=mark-connection chain=prerouting comment=ICMP disabled=no \
new-connection-mark=icmp passthrough=yes protocol=icmp
add action=mark-packet chain=prerouting connection-mark=icmp disabled=no \
new-packet-mark=ping passthrough=no
add action=mark-connection chain=prerouting comment=DNS disabled=no dst-port=\
53 new-connection-mark=dns passthrough=yes protocol=udp
add action=mark-packet chain=prerouting connection-mark=dns disabled=no \
new-packet-mark=DDNS passthrough=no
add action=mark-routing chain=prerouting comment=TCP1 disabled=no \
dst-address-list=nice dst-port="39190,4300,19000,39311,14009-14010,14300-1\
4440,9300,9400,9700,9600,10001-10011,40000" new-routing-mark=Game \
passthrough=yes protocol=tcp
add action=mark-routing chain=prerouting comment=TCP2 disabled=no \
dst-address-list=nice dst-port="7341-7350,7451,8085,9600,9601-9602,9300,93\
39,9376-9377,9400,9700,10001-10011" new-routing-mark=Game passthrough=yes \
protocol=tcp
add action=mark-routing chain=prerouting comment=TCP3 disabled=no \
dst-address-list=nice dst-port="10402,11011-11041,12011,12110,13008,13413,\
15000-15002,16402-16502,16666,18901-18909,19000" new-routing-mark=Game \
passthrough=yes protocol=tcp
add action=mark-routing chain=prerouting comment=TCP4 disabled=no \
dst-address-list=nice dst-port=\
19101,22100,27780,28012,29000,29200,39100,39110,39220,39190,40000,49100 \
new-routing-mark=Game passthrough=yes protocol=tcp
add action=mark-routing chain=prerouting comment=TCP5 disabled=no \
dst-address-list=nice dst-port=\
28901-28910,14009-14010,9015,40300-40404,36567,36936 new-routing-mark=\
Game passthrough=yes protocol=tcp
add action=mark-routing chain=prerouting comment="TCP6 GAME FB" disabled=no \
dst-port=8890,843,9339,8000,4000,8001,8012,29001-29915 new-routing-mark=\
Game passthrough=yes protocol=tcp
add action=mark-routing chain=prerouting comment="FIFA TCP " disabled=no \
dst-port=40021,40124,64705,56516,64710,6213-6225,5222-5280 \
new-routing-mark=Game passthrough=yes protocol=tcp
add action=mark-routing chain=prerouting comment=UDP2 disabled=no \
dst-address-list=nice dst-port=\
42051-42052,11100-11125,11440-11460,27017-27019,14009-14010 \
new-routing-mark=Game passthrough=yes protocol=udp
add action=mark-routing chain=prerouting comment=UDP1 disabled=no \
dst-address-list=nice dst-port=\
6100-6152,7777,9401,9600-9602,12020-12080,30000,40000-40010 \
new-routing-mark=Game passthrough=yes protocol=udp
add action=mark-packet chain=prerouting comment="Game Paket" disabled=no \
new-packet-mark=GameOnline passthrough=no routing-mark=Game
add action=mark-packet chain=prerouting comment="!Game Paket" disabled=no \
new-packet-mark=!Game passthrough=no routing-mark=!Game
add action=mark-packet chain=postrouting comment="Upload Browsing" disabled=\
no new-packet-mark=Upload-Browsing out-interface=Browsing passthrough=no
add action=mark-packet chain=postrouting comment="Upload Game" disabled=no \
new-packet-mark=Upload-Game out-interface=Game passthrough=no
add action=mark-connection chain=forward comment=Youtube disabled=no \
in-interface=Lan layer7-protocol=Youtube new-connection-mark=Youtube-Conn \
out-interface=Browsing passthrough=yes protocol=tcp
add action=mark-packet chain=forward connection-mark=Youtube-Conn disabled=no \
new-packet-mark=Youtube passthrough=no
add action=mark-connection chain=forward comment=Konten disabled=no \
in-interface=Lan layer7-protocol=Konten new-connection-mark=Konten-Conn \
out-interface=Browsing passthrough=yes protocol=tcp
add action=mark-packet chain=forward connection-mark=Konten-Conn disabled=no \
new-packet-mark=Konten passthrough=no
add action=mark-connection chain=forward comment=Browsing disabled=no \
dst-port=80 in-interface=Lan layer7-protocol=!Konten new-connection-mark=\
Browsing-Conn out-interface=Browsing passthrough=yes protocol=tcp
add action=mark-packet chain=forward connection-mark=Browsing-Conn disabled=\
no new-packet-mark=Browsing passthrough=no
3. Membuat static routing
/ip route
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.2.1 \
routing-mark=Game scope=30 target-scope=10
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.3.1 scope=30 \
target-scope=10
4. Melimit bandwith di queue tree
/queue tree
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
max-limit=0 name=Main-Browse packet-mark="" parent=global-out priority=8
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
max-limit=0 name=Upload-Game packet-mark=Upload-Game parent=global-out \
priority=8 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
max-limit=0 name="Upload Browsing" packet-mark=Upload-Browsing parent=\
global-out priority=8 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
max-limit=0 name=Game packet-mark=GameOnline parent=global-total \
priority=1 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
max-limit=512k name=Youtube packet-mark=Youtube parent=Main-Browse \
priority=8 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
max-limit=512k name=Konten packet-mark=Konten parent=Main-Browse \
priority=8 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
max-limit=1024k name=Browsing packet-mark=Browsing parent=Main-Browse \
priority=8 queue=default