0% found this document useful (0 votes)
90 views3 pages

QoSCMW v6

The document contains configuration commands for Mikrotik router traffic shaping. It marks traffic into categories like voice, games, web using packet markings. It then creates queues for each category and assigns them to appropriate queues for downstream and upstream traffic shaping. Bandwidth limits and priorities are set on each queue to provide quality of service for different application types.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
90 views3 pages

QoSCMW v6

The document contains configuration commands for Mikrotik router traffic shaping. It marks traffic into categories like voice, games, web using packet markings. It then creates queues for each category and assigns them to appropriate queues for downstream and upstream traffic shaping. Bandwidth limits and priorities are set on each queue to provide quality of service for different application types.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

http://configurarmikrotikwireless.

com/
Script 10M Download / 5M Upload
/ip firewall mangle
add action=mark-connection chain=prerouting comment="ICMP (Ping)" disabled=no ne
w-connection-mark=icmp_conn passthrough=yes protocol=icmp
add action=mark-packet chain=prerouting comment="" connection-mark=icmp_conn dis
abled=no new-packet-mark=icmp passthrough=no
add action=mark-connection chain=prerouting comment=DNS disabled=no dst-port=53
new-connection-mark=dns_conn passthrough=yes protocol=udp
add action=mark-packet chain=prerouting comment="" connection-mark=dns_conn disa
bled=no new-packet-mark=dns passthrough=no
add action=mark-connection chain=prerouting comment=Http connection-bytes=0-5000
00 disabled=no dst-port=80 new-connection-mark=http_conn passthrough=yes protoco
l=tcp
add action=mark-packet chain=prerouting comment="" connection-mark=http_conn dis
abled=no new-packet-mark=http passthrough=no
add action=mark-connection chain=prerouting comment="Http Descarga" connection-b
ytes=500000-5000000 disabled=no dst-port=80 new-connection-mark=http_conn_descar
ga passthrough=yes protocol=tcp
add action=mark-packet chain=prerouting comment="" connection-mark=http_conn_des
carga disabled=no new-packet-mark=http_descarga passthrough=no
add action=mark-connection chain=prerouting comment=Https disabled=no dst-port=4
43 new-connection-mark=https_conn passthrough=yes protocol=tcp
add action=mark-packet chain=prerouting comment="" connection-mark=https_conn di
sabled=no new-packet-mark=https passthrough=no
add action=mark-connection chain=prerouting comment=WoW disabled=no dst-port=372
4,6112-6114,6881-6999 new-connection-mark=wow_conn passthrough=yes protocol=tcp
add action=mark-packet chain=prerouting comment="" connection-mark=wow_conn disa
bled=no new-packet-mark=wow passthrough=no
add action=mark-connection chain=prerouting comment="" disabled=no dst-port=3724
new-connection-mark=wow_udp_conn passthrough=yes protocol=udp
add action=mark-packet chain=prerouting comment="" connection-mark=wow_udp_conn
disabled=no new-packet-mark=wow_udp passthrough=no
add action=mark-connection chain=prerouting comment=LoL disabled=no dst-port=209
9,5222,5223,8393-8400 new-connection-mark=lol_conn passthrough=yes protocol=tcp
add action=mark-packet chain=prerouting comment="" connection-mark=lol_conn disa
bled=no new-packet-mark=lol passthrough=no
add action=mark-connection chain=prerouting comment="" disabled=no dst-port=5000
-5500 new-connection-mark=lol_udp_conn passthrough=yes protocol=udp
add action=mark-packet chain=prerouting comment="" connection-mark=lol_udp_conn
disabled=no new-packet-mark=lol_udp passthrough=no
add action=mark-connection chain=prerouting comment=Ventrilo disabled=no dst-por
t=30572 new-connection-mark=vent_conn passthrough=yes protocol=tcp
add action=mark-packet chain=prerouting comment="" connection-mark=vent_conn dis
abled=no new-packet-mark=ventrilo passthrough=no
add action=mark-connection chain=prerouting comment=MSN disabled=no dst-port=186
3 new-connection-mark=msn_conn passthrough=yes protocol=tcp
add action=mark-packet chain=prerouting comment="" connection-mark=msn_conn disa
bled=no new-packet-mark=msn passthrough=no
add action=mark-connection chain=prerouting comment=Winbox disabled=no dst-port=
8291 new-connection-mark=winbox_conn passthrough=yes protocol=tcp
add action=mark-packet chain=prerouting comment="" connection-mark=winbox_conn d
isabled=no new-packet-mark=winbox passthrough=no
add action=mark-connection chain=prerouting comment="Dragon Nest" disabled=no ds
t-port=14300,14301,14403,7000,14500 new-connection-mark=dragon_nest_conn passthr
ough=yes protocol=tcp
add action=mark-packet chain=prerouting comment="" connection-mark=dragon_nest_c
onn disabled=no new-packet-mark=dragon_nest passthrough=no

add action=mark-connection chain=prerouting comment="" disabled=no dst-port=1510


0-15110 new-connection-mark=dragon_nest_udp_conn passthrough=yes protocol=udp
add action=mark-packet chain=prerouting comment="" connection-mark=dragon_nest_u
dp_conn disabled=no new-packet-mark=dragon_nest_udp passthrough=no
add action=mark-connection chain=prerouting comment=Otros disabled=no new-connec
tion-mark=otras_conn passthrough=yes
add action=mark-packet chain=prerouting comment="" connection-mark=otras_conn di
sabled=no new-packet-mark=other passthrough=no
/queue tree
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-lim
it=0 name=QoS_down parent="LAN" priority=1
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=10M max-l
imit=12350k name=3QoS_down_Web parent=QoS_down priority=5
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-lim
it=0 name=2QoS_down_Games parent=QoS_down priority=2
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-lim
it=0 name=1QoS_down_VoIP parent=QoS_down priority=1
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-lim
it=0 name=QoS_up parent=WAN priority=1
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-lim
it=0 name=1QoS_up_VoIP parent=QoS_up priority=1
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-lim
it=0 name=2QoS_up_Games parent=QoS_up priority=2
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=5M max-li
mit=5512k name=3QoS_up_Web parent=QoS_up priority=5
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-lim
it=0 name="ICMP_(Ping)_up" packet-mark=icmp parent=1QoS_up_VoIP priority=1 queue
=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-lim
it=0 name=DNS_up packet-mark=dns parent=3QoS_up_Web priority=5 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-lim
it=0 name=Http_up packet-mark=http parent=3QoS_up_Web priority=5 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-lim
it=0 name=Https_up packet-mark=https parent=3QoS_up_Web priority=5 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-lim
it=0 name=Otros_up packet-mark=other parent=3QoS_up_Web priority=6 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-lim
it=0 name=WinBox packet-mark=winbox parent=1QoS_down_VoIP priority=2 queue=defau
lt
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-lim
it=0 name=MSN packet-mark=msn parent=3QoS_down_Web priority=5 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-lim
it=0 name=LoL_udp packet-mark=lol_udp parent=2QoS_down_Games priority=2 queue=de
fault
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-lim
it=0 name=Ventrilo_up packet-mark=ventrilo parent=1QoS_up_VoIP priority=1 queue=
default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-lim
it=0 name=WinBox_up packet-mark=winbox parent=1QoS_up_VoIP priority=2 queue=defa
ult
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-lim
it=0 name="Dragon Nest" packet-mark=dragon_nest parent=2QoS_down_Games priority=
2 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-lim
it=0 name=MSN_up packet-mark=msn parent=3QoS_up_Web priority=5 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-lim
it=0 name="Dragon Nest_up" packet-mark=dragon_nest parent=2QoS_up_Games priority
=2 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-lim

it=0 name="Dragon Nest_udp" packet-mark=dragon_nest_udp parent=2QoS_down_Games p


riority=2 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-lim
it=0 name="Dragon Nest_udp_up" packet-mark=dragon_nest_udp parent=2QoS_up_Games
priority=2 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-lim
it=0 name=LoL_up packet-mark=lol parent=2QoS_up_Games priority=2 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-lim
it=0 name=LoL_udp_up packet-mark=lol_udp parent=2QoS_up_Games priority=2 queue=d
efault
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-lim
it=0 name=WoW_up packet-mark=wow parent=2QoS_up_Games priority=2 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-lim
it=0 name=WoW_udp_up packet-mark=wow_udp parent=2QoS_up_Games priority=2 queue=d
efault
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-lim
it=0 name=Http_Descarga packet-mark=http_descarga parent=3QoS_down_Web priority=
6 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-lim
it=0 name="ICMP_(Ping)" packet-mark=icmp parent=1QoS_down_VoIP priority=1 queue=
default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-lim
it=0 name=DNS packet-mark=dns parent=3QoS_down_Web priority=5 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-lim
it=0 name=Http packet-mark=http parent=3QoS_down_Web priority=5 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-lim
it=0 name=Https packet-mark=https parent=3QoS_down_Web priority=5 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-lim
it=0 name=WoW packet-mark=wow parent=2QoS_down_Games priority=2 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-lim
it=0 name=WoW_udp packet-mark=wow_udp parent=2QoS_down_Games priority=2 queue=de
fault
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-lim
it=0 name=LoL packet-mark=lol parent=2QoS_down_Games priority=2 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-lim
it=0 name=Ventrilo packet-mark=ventrilo parent=1QoS_down_VoIP priority=1 queue=d
efault
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-lim
it=0 name=Otros packet-mark=other parent=3QoS_down_Web priority=7 queue=default
Fuente:
http://wiki.mikrotik.com/wiki/Events

You might also like