Basic Traffic Shaping Based On Layer-7 Protocols - MikroTik Wiki

Download as pdf or txt
Download as pdf or txt
You are on page 1of 14

Basic traffic shaping based on layer-7 protocols - MikroTik Wiki

http://wiki.mikrotik.com/wiki/Basic_traffic_shaping_based_on_layer-7_protocols[24/6/2012 11:41:48 ]
Main Page Recent changes Create a book Download as PDF Printable version
modified on 3 April 2012 at 17:44 70,422 views
Basic traffic shaping based on layer-7 protocols
If we want to ensure decent internet browsing for more users using the same internet connection, but we don't want to
disable any protocols (such as p2p), just to make the priority of http higher, we can use these rules.
Packets are marked at the public side in /ip firewall mangle. Packets are marked based on layer-7 signatures and
then queued.
First we add layer7 signatures to router: (these are currently identical to l7-protos.rsc from The MikroTik WiKi Layer 7
page)
/ i p f i r ewal l l ayer 7- pr ot ocol
add comment =" " name=edonkey r egexp=" ^[ \ C5\ D4\ E3- \ E5] . \ ?. \ ?. \ ?. \ ?( [ \ 01\ 02\ 05\ 14\
\ 15\ 16\ 18\ 19\ 1A\ 1B\ 1C ! 234568@ABCFGHI J KLMNOPQRSTUVWX[ `\ 81\ 82\ 90\ 91\ 93\ 96\
\ 97\ 98\ 99\ 9A\ 9B\ 9C\ 9E\ A0\ A1\ A2\ A3\ A4] | Y. . . . . . . . . . . . . . . . \ ?[ - ~] | \ 96. . . . \ $) "
add comment =" " name=goboogy r egexp=" <peer pl at >| ^get / get f i l ebyhash\ \ . cgi \ \ \ ?| ^\
get / queue_r egi st er \ \ . cgi \ \ \ ?| ^get / get updowni nf o\ \ . cgi \ \ \ ?"
add comment =" " name=sor i bada r egexp=" ^GETMP3\ r \
\ nFi l ename| ^\ 01. \ ?. \ ?. \ ?( Q: \ \ +| Q2: ) | ^\ 10[ \ 14- \ 16] \ 10[ \ 15- \ 17] . \ ?. \ ?. \ ?. \ ?\
\ $"
add comment =" " name=r dp r egexp=r dpdr . *cl i pr dr . *r dpsnd
add comment =" " name=gnut el l a r egexp=" ^( gnd[ \ 01\ 02] \ ?. \ ?. \ ?\ 01| gnut el l a connect \
/ [ 012] \ \ . [ 0- 9] \ r \
\ n| get / ur i - r es/ n2r \ \ \ ?ur n: sha1: | get / . *user - agent : ( gt k- gnut el l a| bear shar \
e| mact el l a| gnucl eus| gnot el l a| l i mewi r e| i mesh) | get / . *cont ent - t ype: appl i cat \
i on/ x- gnut el l a- packet s| gi v [ 0- 9] *: [ 0- 9a- f ] */ | queue [ 0- 9a- f ] * [ 1- 9] [ 0- 9] \ ?[ \
0- 9] \ ?\ \ . [ 1- 9] [ 0- 9] \ ?[ 0- 9] \ ?\ \ . [ 1- 9] [ 0- 9] \ ?[ 0- 9] \ ?\ \ . [ 1- 9] [ 0- 9] \ ?[ 0- 9] \ ?: [ \
1- 9] [ 0- 9] \ ?[ 0- 9] \ ?[ 0- 9] \ ?| gnut el l a. *cont ent - t ype: appl i cat i on/ x- gnut el l a| . \
. . . . . . . . . . . . . . . . . . \ ?l i me) "
add comment =" " name=cvs r egexp=" ^BEGI N ( AUTH| VERI FI CATI ON| GSSAPI ) REQUEST\
\ n"
add comment =" " name=nbns r egexp=" \ 01\ 10\ 01| \ \ ) \ 10\ 01\ 01| 0\ 10\ 01"
add comment =" " name=shout cast r egexp=\
" i cy [ 1- 5] [ 0- 9] [ 0- 9] [ \ t - \ r - ~] *( cont ent - t ype: audi o| i cy- ) "
add comment =" " name=dns r egexp=" ^. \ ?. \ ?. \ ?. \ ?[ \ 01\ 02] . \ ?. \ ?. \ ?. \ ?. \ ?. \ ?[ \ 01- \ ?\
] [ a- z0- 9] [ \ 01- \ ?a- z] *[ \ 02- \ 06] [ a- z] [ a- z] [ f gl mopr st uvz] \ ?[ aeop] \ ?( um) \ ?[ \ 01\
- \ 10\ 1C] [ \ 01\ 03\ 04\ FF] "
add comment =" " name=quake- hal f l i f e r egexp=" ^\ FF\ FF\ FF\ FFget ( i nf o| chal l enge) "
add comment =" " name=poco r egexp=" ^\ 80\ 94\
\ n\ 01. . . . \ 1F\ 9E"
add comment =" " name=ci scovpn r egexp=" ^\ 01\ F4\ 01\ F4"
add comment =" " name=x11 r egexp=" ^[ l b] . \ ?\ 0B"
add comment =" " name=xboxl i ve r egexp=" ^X\ 80. . . . . . . . \ F3| ^\ 06XN"
add comment =" " name=appl ej ui ce r egexp=" ^aj pr ot \ r \
\ n"
add comment =" " name=zmaap r egexp=" ^\ 1B\ D7; H[ \ 01\ 02] \ 01\ ?\ 01"
add comment =" " name=l i ve365 r egexp=member name. *sessi on. *pl ayer
add comment =" " name=r l ogi n r egexp=\
" ^[ a- z] [ a- z0- 9] [ a- z0- 9] +/ [ 1- 9] [ 0- 9] \ ?[ 0- 9] \ ?[ 0- 9] \ ?00"
add comment =" " name=ht t p r egexp=" ht t p/ ( 0\ \ . 9| 1\ \ . 0| 1\ \ . 1) [ 1- 5] [ 0- 9] [ 0- 9] [ \ t - \
\ r - ~] *( connect i on: | cont ent - t ype: | cont ent - l engt h: | dat e: ) | post [ \ t - \ r - ~] * \
ht t p/ [ 01] \ \ . [ 019] "
add comment =" " name=si p r egexp=\
Page View source
Log in

Advanced search
Go
Basic traffic shaping based on layer-7 protocols - MikroTik Wiki
http://wiki.mikrotik.com/wiki/Basic_traffic_shaping_based_on_layer-7_protocols[24/6/2012 11:41:48 ]
" ^( i nvi t e| r egi st er | cancel ) si p[ \ t - \ r - ~] *si p/ [ 0- 2] \ \ . [ 0- 9] "
add comment =" " name=pop3 r egexp=" ^( \ \ +ok | - er r ) "
add comment =" " name=smb r egexp=" \ FFsmb[ r %] "
add comment =" " name=quake1 r egexp=" ^\ 80\ 0C\ 01quake\ 03"
add comment =" " name=l pd r egexp=" ^( \ 01[ ! - ~] +| \ 02[ ! - ~] +\
\ n. [ \ 01\ 02\ 03] [ \ 01- \
\ n - ~] *| [ \ 03\ 04] [ ! - ~] +[ \ t - \ r ] +[ a- z] [ \ t - \ r - ~] *| \ 05[ ! - ~] +[ \ t - \ r ] +( [ a- z] [ ! - ~\
] *[ \ t - \ r ] +[ 1- 9] [ 0- 9] \ ?[ 0- 9] \ ?| r oot [ \ t - \ r ] +[ ! - ~] +) . *) \
\ n\ $"
add comment =" " name=mut e r egexp=\
" ^( Publ i c| AES) Key: [ 0- 9a- f ] *\
\ nEnd( Publ i c| AES) Key\
\ n\ $"
add comment =" " name=ssh r egexp=" ^ssh- [ 12] \ \ . [ 0- 9] "
add comment =" " name=j abber r egexp=\
" <st r eam: st r eam[ \ t - \ r ] [ - ~] *[ \ t - \ r ] xml ns=[ ' \ " ] j abber "
add comment =" " name=bi t t or r ent r egexp=" ^( \ 13bi t t or r ent pr ot ocol | azver \ 01\ $| get \
/ scr ape\ \ \ ?i nf o_hash=) | d1: ad2: i d20: | \ 08' 7P\ \ ) [ RP] "
add comment =" " name=ncp r egexp=" ^( dmdt . *\ 01. *( \ " \ " | \ 11\ 11| uu) | t ncp. *33) "
add comment =" " name=t l s r egexp=\
" ^( . \ ?. \ ?\ 16\ 03. *\ 16\ 03| . \ ?. \ ?\ 01\ 03\ 01\ ?. *\ 0B) "
add comment =" " name=di r ect connect r egexp=" ^( \ \ \ $myni ck | \ \ \ $l ock | \ \ \ $key ) "
add comment =" " name=net bi os r egexp=" \ 81. \ ?. \ ?. [ A- P] [ A- P] [ A- P] [ A- P] [ A- P] [ A- P] [ A\
- P] [ A- P] [ A- P] [ A- P] [ A- P] [ A- P] [ A- P] [ A- P] [ A- P] [ A- P] [ A- P] [ A- P] [ A- P] [ A- P] [ A- P] [ \
A- P] [ A- P] [ A- P] [ A- P] [ A- P] [ A- P] [ A- P] [ A- P] [ A- P] [ A- P] [ A- P] [ A- P] [ A- P] [ A- P] [ A- P] \
[ A- P] [ A- P] [ A- P] [ A- P] "
add comment =" " name=t f t p r egexp=" ^( \ 01| \ 02) [ - ~] *( net asci i | oct et | mai l ) "
add comment =" " name=subspace r egexp=" ^\ 01. . . . \ 11\ 10. . . . . . . . \ 01\ $"
add comment =" " name=hot l i ne r egexp=" ^. . . . . . . . . . . . . . . . . . . . TRTPHOTL\ 01\ 02"
add comment =" " name=doom3 r egexp=" ^\ FF\ FFchal l enge"
add comment =" " name=f t p r egexp=" ^220[ \ t - \ r - ~] *f t p"
add comment =" " name=kugoo r egexp=" ^1. . \ 8E"
add comment =" " name=t sp r egexp=\
" ^[ \ 01- \ 13\ 16- \ $] \ 01. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?[ - ~] +"
add comment =" " name=bat t l ef i el d1942 r egexp=" ^\ 01\ 11\ 10\ \ | \ F8\ 02\ 10@\ 06"
add comment =" " name=ssdp r egexp=" ^not i f y[ \ t - \ r ] \ \ *[ \ t - \ r ] ht t p/ 1\ \ . 1[ \ t - \ r - ~\
] *ssdp: ( al i ve| byebye) | ^m- sear ch[ \ t - \ r ] \ \ *[ \ t - \ r ] ht t p/ 1\ \ . 1[ \ t - \ r - ~] *ssd\
p: di scover "
add comment =" " name=i map r egexp=" ^( \ \ * ok| a[ 0- 9] + noop) "
add comment =" " name=ar es r egexp=" ^\ 03[ ] Z] . \ ?. \ ?\ 05\ $"
add comment =" " name=f ast t r ack r egexp=" ^get ( / . downl oad/ [ - ~] *| / . super node[ - ~] \
| / . st at us[ - ~] | / . net wor k[ - ~] *| / . f i l es| / . hash=[ 0- 9a- f ] */ [ - ~] *) ht t p/ 1. 1| u\
ser - agent : kazaa| x- kazaa( - user name| - net wor k| - i p| - super nodei p| - xf er i d| - xf er \
ui d| t ag) | ^gi ve [ 0- 9] [ 0- 9] [ 0- 9] [ 0- 9] [ 0- 9] [ 0- 9] [ 0- 9] [ 0- 9] \ ?[ 0- 9] \ ?[ 0- 9] \ ?"
add comment =" " name=qq r egexp=" ^. \ ?\ 02. +\ 03\ $"
add comment =" " name=100bao r egexp=" ^\ 01\ 01\ 05\
\ n"
add comment =" " name=ai mr egexp=\
" ^( \ \ *[ \ 01\ 02] . *\ 03\ 0B| \ \ *\ 01. \ ?. \ ?. \ ?. \ ?\ 01) | f l apon| t oc_si gnon. *0x"
add comment =" " name=unknown r egexp=.
add comment =" " name=msn- f i l et r ansf er r egexp=\
" ^( ver [ - ~] *msnf t p\ r \
\ nver msnf t p\ r \
\ nusr | met hod msnmsgr : ) "
add comment =" " name=yahoo r egexp=\
" ^( ymsg| ypns| yhoo) . \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?[ l wt ] . *\ C0\ 80"
add comment =" " name=val i dcer t ssl r egexp=" ^( . \ ?. \ ?\ 16\ 03. *\ 16\ 03| . \ ?. \ ?\ 01\ 03\
\ 01\ ?. *\ 0B) . *( t hawt e| equi f ax secur e| r sa dat a secur i t y, i nc| ver i si gn, i nc| g\
t e cyber t r ust r oot | ent r ust \ \ . net l i mi t ed) "
add comment =" " name=nt p r egexp=" ^( [ \ 13\ 1B#\ D3\ DB\ E3] | [ \ 14\ 1C\ $] . . . . . . . \ ?. \ ?. \ ?\
. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?[ \ C6- \ FF] ) "
add comment =" " name=gnucl eusl an r egexp=\
" gnucl ear connect / [ \ t - \ r - ~] *user - agent : gnucl eus [ \ t - \ r - ~] *l an: "
add comment =" " name=vnc r egexp=" ^r f b 00[ 1- 9] \ \ . 00[ 0- 9] \
\ n\ $"
add comment =" " name=bgp r egexp=\
" ^\ FF\ FF\ FF\ FF\ FF\ FF\ FF\ FF\ FF\ FF\ FF\ FF\ FF\ FF\ FF\ FF. . \ ?\ 01[ \ 03\ 04] "
add comment =" " name=t esl a r egexp=" \ 03\ 9A\ 89\ " 111\ \ . 00 Bet a | \ E2<i \ 1E\ 1C\ E9"
add comment =" " name=openf t r egexp=" x- openf t al i as: [ - ) ( 0- 9a- z ~. ] "
add comment =" " name=h323 r egexp=\
Basic traffic shaping based on layer-7 protocols - MikroTik Wiki
http://wiki.mikrotik.com/wiki/Basic_traffic_shaping_based_on_layer-7_protocols[24/6/2012 11:41:48 ]
" ^\ 03. . \ ?\ 08. . . \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?\ 05"
add comment =" " name=f i nger r egexp=\
" ^[ a- z] [ a- z0- 9\ \ - _] +| l ogi n: [ \ t - \ r - ~] * name: [ \ t - \ r - ~] * Di r ect or y: "
add comment =" " name=i dent r egexp=" ^[ 1- 9] [ 0- 9] \ ?[ 0- 9] \ ?[ 0- 9] \ ?[ 0- 9] \ ?[ \ t - \ r ] *, [ \
\ t - \ r ] *[ 1- 9] [ 0- 9] \ ?[ 0- 9] \ ?[ 0- 9] \ ?[ 0- 9] \ ?( \ r \
\ n| [ \ r \
\ n] ) \ ?\ $"
add comment =" " name=gkr el l mr egexp=" ^gkr el l m[ 23] . [ 0- 9] . [ 0- 9] \
\ n\ $"
add comment =" " name=hddt emp r egexp=\
" ^\ \ | / dev/ [ a- z] [ a- z] [ a- z] \ \ | [ 0- 9a- z] *\ \ | [ 0- 9] [ 0- 9] \ \ | [ cf k] \ \ | "
add comment =" " name=socks r egexp=" \ 05[ \ 01- \ 08] *\ 05[ \ 01- \ 08] \ ?. *\ 05[ \ 01- \ 03] [ \
\ 01\ 03] . *\ 05[ \ 01- \ 08] \ ?[ \ 01\ 03] "
add comment =" " name=bi f f r egexp=" ^[ a- z] [ a- z0- 9] +@[ 1- 9] [ 0- 9] +\ $"
add comment =" " name=dhcp r egexp=" ^[ \ 01\ 02] [ \ 01- ] \ 06. *c\ 82sc"
add comment =" " name=smt p r egexp=" ^220[ \ t - \ r - ~] * ( e\ ?smt p| si mpl e mai l ) "
add comment =" " name=i pp r egexp=i pp: / /
add comment =" " name=msnmessenger r egexp=" ver [ 0- 9] + msnp[ 1- 9] [ 0- 9] \ ? [ \ t - \ r - ~\
] *cvr 0\ r \
\ n\ $| usr 1 [ ! - ~] + [ 0- 9. ] +\ r \
\ n\ $| ans 1 [ ! - ~] + [ 0- 9. ] +\ r \
\ n\ $"
add comment =" " name=i r c r egexp=" ^( ni ck[ \ t - \ r - ~] *user [ \ t - \ r - ~] *: | user [ \ t - \ r - \
~] *: [ \ 02- \ r - ~] *ni ck[ \ t - \ r - ~] *\ r \
\ n) "
add comment =" " name=gopher r egexp=" ^[ \ t - \ r ] *[ 1- 9, +t gi ] [ \ t - \ r - ~] *\ t [ \ t - \ r - ~] *\
\ t [ a- z0- 9. ] *\ \ . [ a- z] [ a- z] . \ ?. \ ?\ t [ 1- 9] "
add comment =" " name=t el net r egexp=" ^\ FF[ \ FB- \ FE] . \ FF[ \ FB- \ FE] . \ FF[ \ FB- \ FE] "
add comment =" " name=snmp r egexp=" ^\ 02\ 01\ 04. +( [ \ A0- \ A3] \ 02[ \ 01- \ 04] . \ ?. \ ?. \ ?. \
\ ?\ 02\ 01. \ ?\ 02\ 01. \ ?0| \ A4\ 06. +@\ 04. \ ?. \ ?. \ ?. \ ?\ 02\ 01. \ ?\ 02\ 01. \ ?C) "
add comment =" " name=nnt p r egexp=\
" ^( 20[ 01] [ \ t - \ r - ~] *AUTHI NFO USER| 20[ 01] [ \ t - \ r - ~] *news) "
add comment =" " name=ai mwebcont ent r egexp=user - agent : ai m/
add comment =" " name=r t sp r egexp=" r t sp/ 1. 0 200 ok"
add comment =" " name=skypeout r egexp=" ^( \ 01. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?\ 01| \ 02. \ ?. \
\ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?\ 02| \ 03. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?\ 03| \ 04. \ ?. \ ?. \ ?. \ ?. \ ?. \
\ ?. \ ?. \ ?\ 04| \ 05. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?\ 05| \ 06. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?\ 06| \
\ 07. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?\ 07| \ 08. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \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. \ ?. \ ?. \ ?. \ ?I | J . \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?\
. \ ?J | K. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?K| L. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?L| M. \ ?. \ ?. \ ?. \ ?. \
\ ?. \ ?. \ ?. \ ?M| N. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?N| O. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?O| P. \ ?. \ ?\
. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?P| Q. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?Q| R. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?R| \
S. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?S| T. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?T| U. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \
\ ?. \ ?U| V. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?V| W. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?W| X. \ ?. \ ?. \ ?. \ ?\
Basic traffic shaping based on layer-7 protocols - MikroTik Wiki
http://wiki.mikrotik.com/wiki/Basic_traffic_shaping_based_on_layer-7_protocols[24/6/2012 11:41:48 ]
. \ ?. \ ?. \ ?. \ ?X| Y. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?Y| Z. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?Z| \ \ [ . \ ?\
. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?\ \ [ | \ \ ] . \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?\ \ ] | \ \ ] . \ ?. \ ?. \ ?. \ ?. \ ?\
. \ ?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. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?\ F0| \ F1. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?\ F1| \ F2. \ ?. \
\ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?\ F2| \ F3. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?\ F3| \ F4. \ ?. \ ?. \ ?. \ ?. \ ?. \
\ ?. \ ?. \ ?\ F4| \ F5. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?\ F5| \ F6. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?\ F6| \
\ F7. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?\ F7| \ F8. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?\ F8| \ F9. \ ?. \ ?. \ ?\
. \ ?. \ ?. \ ?. \ ?. \ ?\ F9| \ FA. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?\ FA| \ FB. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?\
. \ ?\ FB| \ FC. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?\ FC| \ FD. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?\ FD| \ FE. \
\ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?\ FE| \ FF. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?\ FF) "
add comment =" " name=skypet oskype r egexp=" ^. . \ 02. . . . . . . . . . . . . "
Basic traffic shaping based on layer-7 protocols - MikroTik Wiki
http://wiki.mikrotik.com/wiki/Basic_traffic_shaping_based_on_layer-7_protocols[24/6/2012 11:41:48 ]
add comment =" " name=count er st r i ke- sour ce r egexp=\
" ^\ FF\ FF\ FF\ FF. *cst r i keCount er - St r i ke"
add comment =" " name=hal f l i f e2- deat hmat ch r egexp=\
" ^\ FF\ FF\ FF\ FF. *hl 2mpDeat hmat ch"
add comment =" " name=f r eenet r egexp=" ^\ 01[ \ 08\ t ] [ \ 03\ 04] "
add comment =" " name=bat t l ef i el d2 r egexp=" ^( \ 11 \ 01. . . \ ?\ 11| \ FE\ FD. \ ?. \ ?. \ ?. \ ?. \
\ ?. \ ?( \ 14\ 01\ 06| \ FF\ FF\ FF) ) | [ ] \ 01] . \ ?bat t l ef i el d2"
add comment =" " name=napst er r egexp=" ^( . [ \ 02\ 06] [ ! - ~] + [ ! - ~] + [ 0- 9] [ 0- 9] \ ?[ 0- 9] \
\ ?[ 0- 9] \ ?[ 0- 9] \ ? \ " [ \ t - \ r - ~] +\ " ( [ 0- 9] | 10) | 1( send| get ) [ ! - ~] + \ " [ \ t - \ r - ~] \
+\ " ) "
add comment =" " name=soul seek r egexp=\
" ^( \ 05. . \ ?| . \ 01. [ - ~] +\ 01F. . \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?) \ $"
add comment =" " name=xunl ei r egexp=" ^[ ( ) ] . . . \ ?. \ ?. \ ?( r eg| get | quer y) "
add comment =" " name=ssl r egexp=\
" ^( . \ ?. \ ?\ 16\ 03. *\ 16\ 03| . \ ?. \ ?\ 01\ 03\ 01\ ?. *\ 0B) "
add comment =" " name=ci t r i x r egexp=" 2&\ 85\ 92X"
add comment =" " name=whoi s r egexp=" ^[ ! - ~] +\ r \
\ n\ $"
add comment =" " name=dayof def eat - sour ce r egexp=\
" ^\ FF\ FF\ FF\ FF. *dodDay of Def eat "
add comment =" " name=t eamspeak r egexp=" ^\ F4\ BE\ 03. *t eamspeak"
add comment =" " name=wor l dof war cr af t r egexp=" ^\ 06\ EC\ 01"
add comment =" " name=vent r i l o r egexp=" ^. . \ ?v\ \ \ $\ CF"
add comment =" " name=ht t p- r t sp r egexp=" ^( get [ \ t - \ r - ~] * Accept : appl i cat i on/ x- r \
t sp- t unnel l ed| ht t p/ ( 0\ \ . 9| 1\ \ . 0| 1\ \ . 1) [ 1- 5] [ 0- 9] [ 0- 9] [ \ t - \ r - ~] *a=cont r o\
l : r t sp: / / ) "
add comment =" " name=t heci r cl e r egexp=\
" ^t \ 03ni . \ ?[ \ 01- \ 06] \ ?t [ \ 01- \ 05] s[ \
\ n\ 0B] ( gl ob| who ar e you\ $| quer y dat a) "
add comment =" " name=uucp r egexp=" ^\ 10her e="
add comment =" " name=pcanywher e r egexp=" ^( nq| st ) \ $"
add comment =" " name=subver si on r egexp=" ^\ \ ( success \ \ ( 1 2 \ \ ( "
add comment =" " name=i mesh r egexp=" ^( post [ \ t - \ r - ~] *<Passwor dHash>. . . . . . . . . . . . . \
. . . . . . . . . . . . . . . . . . . </ Passwor dHash><Cl i ent Ver >| 4\ 80\ ?\ r \ ?\ FC\ FF\ 04| get [ \ t - \
\ r - ~] *Host : i msh\ \ . downl oad- pr od\ \ . musi cnet \ \ . com| \ 02( \ 01| \ 02) \ 83. \ ?. \ ?. \
\ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?. \ ?\
. \ ?\ 02( \ 01| \ 02) \ 83) "
add comment =" " name=ci md r egexp=" \ 02[ 0- 4] [ 0- 9] : [ 0- 9] +. *\ 03\ $"
add comment =" " name=mohaa r egexp=" ^\ FF\ FF\ FF\ FFget st at us\
\ n"
add comment =" " name=st un r egexp=" ^[ \ 01\ 02] . . . . . . . . . . . . . . . . \ ?\ $"
add comment =" " name=t or r egexp=TOR1. *<i dent i t y>
add comment =" " name=r admi n r egexp=" ^\ 01\ 01( \ 08\ 08| \ 1B\ 1B) \ $"
add comment =" " name=unset r egexp=.
add comment =" " name=chi kka r egexp=" ^CTPv1. [ 123] Kamust a. *\ r \
\ n\ $"
add comment =" " name=r epl ayt v- i vs r egexp=" ^( get / i vs- I VSGet Fi l eChunk| ht t p/ ( 0\ \ . \
9| 1\ \ . 0| 1\ \ . 1) [ 1- 5] [ 0- 9] [ 0- 9] [ \ t - \ r - ~] *#####REPLAY_CHUNK_START#####) "
add comment =" " name=ar maget r on r egexp=YCLC_E| CYEL
Then we create mangle rules - substitute dsl interface in this example to suit your needs (wan, ether1 etc.)
/ i p f i r ewal l mangl e
add act i on=mar k- packet chai n=pr er out i ng comment =100bao_p2p di sabl ed=no \
i n- i nt er f ace=dsl l ayer 7- pr ot ocol =100bao new- packet - mar k=100bao_p2p_i n \
passt hr ough=yes
add act i on=mar k- packet chai n=post r out i ng comment =" " di sabl ed=no \
l ayer 7- pr ot ocol =100bao new- packet - mar k=100bao_p2p_out out - i nt er f ace=dsl \
passt hr ough=yes
add act i on=mar k- packet chai n=pr er out i ng comment =" ai mmesenger " di sabl ed=no \
i n- i nt er f ace=dsl l ayer 7- pr ot ocol =ai mnew- packet - mar k=ai m_mesanger _i n \
passt hr ough=yes
add act i on=mar k- packet chai n=post r out i ng comment =" " di sabl ed=no \
l ayer 7- pr ot ocol =ai mnew- packet - mar k=ai m_mesanger _out out - i nt er f ace=dsl \
passt hr ough=yes
add act i on=mar k- packet chai n=pr er out i ng comment =ai m_messenger _web di sabl ed=no \
i n- i nt er f ace=dsl l ayer 7- pr ot ocol =ai mwebcont ent new- packet - mar k=\
Basic traffic shaping based on layer-7 protocols - MikroTik Wiki
http://wiki.mikrotik.com/wiki/Basic_traffic_shaping_based_on_layer-7_protocols[24/6/2012 11:41:48 ]
ai m_mesenger _web_i n passt hr ough=yes
add act i on=mar k- packet chai n=post r out i ng comment =" " di sabl ed=no \
l ayer 7- pr ot ocol =ai mwebcont ent new- packet - mar k=ai m_mesenger _web_out \
out - i nt er f ace=dsl passt hr ough=yes
add act i on=mar k- packet chai n=pr er out i ng comment =appl ej ui ce_p2p di sabl ed=no \
i n- i nt er f ace=dsl l ayer 7- pr ot ocol =appl ej ui ce new- packet - mar k=appl ej ui ce_i n \
passt hr ough=yes
add act i on=mar k- packet chai n=post r out i ng comment =" " di sabl ed=no \
l ayer 7- pr ot ocol =appl ej ui ce new- packet - mar k=appl ej ui ce_out out - i nt er f ace=\
dsl passt hr ough=yes
add act i on=mar k- packet chai n=pr er out i ng comment =ar es_p2p di sabl ed=no \
i n- i nt er f ace=dsl l ayer 7- pr ot ocol =ar es new- packet - mar k=ar es_p2p_i n \
passt hr ough=yes
add act i on=mar k- packet chai n=post r out i ng comment =" " di sabl ed=no \
l ayer 7- pr ot ocol =ar es new- packet - mar k=ar es_p2p_out out - i nt er f ace=dsl \
passt hr ough=yes
add act i on=mar k- packet chai n=pr er out i ng comment =bgp_r out i ng di sabl ed=no \
i n- i nt er f ace=dsl l ayer 7- pr ot ocol =bgp new- packet - mar k=bgp_r out i ng_i n \
passt hr ough=yes
add act i on=mar k- packet chai n=post r out i ng comment =" " di sabl ed=no \
l ayer 7- pr ot ocol =bgp new- packet - mar k=bgp_r out i ng_out out - i nt er f ace=dsl \
passt hr ough=yes
add act i on=mar k- packet chai n=pr er out i ng comment =bi t t or ent _p2p di sabl ed=no \
i n- i nt er f ace=dsl l ayer 7- pr ot ocol =bi t t or r ent new- packet - mar k=bi t t or ent _i n \
passt hr ough=yes
add act i on=mar k- packet chai n=post r out i ng comment =" " di sabl ed=no \
l ayer 7- pr ot ocol =bi t t or r ent new- packet - mar k=bi t t or ent _out out - i nt er f ace=\
dsl passt hr ough=yes
add act i on=mar k- packet chai n=pr er out i ng comment =dhcp di sabl ed=no \
i n- i nt er f ace=dsl l ayer 7- pr ot ocol =dhcp new- packet - mar k=dhcp_i n \
passt hr ough=yes
add act i on=mar k- packet chai n=post r out i ng comment =" " di sabl ed=no \
l ayer 7- pr ot ocol =dhcp new- packet - mar k=dhcp_out out - i nt er f ace=dsl \
passt hr ough=yes
add act i on=mar k- packet chai n=pr er out i ng comment =\
" Di r ect Connect - P2P f i l eshar i ng " di sabl ed=no i n- i nt er f ace=dsl \
l ayer 7- pr ot ocol =di r ect connect new- packet - mar k=DC_p2p_i n passt hr ough=yes
add act i on=mar k- packet chai n=post r out i ng comment =" " di sabl ed=no \
l ayer 7- pr ot ocol =di r ect connect new- packet - mar k=DC_p2p_out out - i nt er f ace=\
dsl passt hr ough=yes
add act i on=mar k- packet chai n=pr er out i ng comment =" DNS - Domai n Name Syst em" \
di sabl ed=no i n- i nt er f ace=dsl l ayer 7- pr ot ocol =dns new- packet - mar k=DNS_i n \
passt hr ough=yes
add act i on=mar k- packet chai n=post r out i ng comment =" " di sabl ed=no \
l ayer 7- pr ot ocol =dns new- packet - mar k=DNS_out out - i nt er f ace=dsl \
passt hr ough=yes
add act i on=mar k- packet chai n=pr er out i ng comment =\
" eDonkey2000 - P2P f i l eshar i ng " di sabl ed=no i n- i nt er f ace=dsl \
l ayer 7- pr ot ocol =edonkey new- packet - mar k=edonkey_p2p_i n passt hr ough=yes
add act i on=mar k- packet chai n=post r out i ng comment =" " di sabl ed=no \
l ayer 7- pr ot ocol =edonkey new- packet - mar k=edonkey_p2p_out out - i nt er f ace=dsl \
passt hr ough=yes
add act i on=mar k- packet chai n=pr er out i ng comment =\
" Fast Tr ack - P2P f i l eshar i ng ( Kazaa, Mor pheus, i Mesh, Gr okst er , et c) " \
di sabl ed=no i n- i nt er f ace=dsl l ayer 7- pr ot ocol =f ast t r ack new- packet - mar k=\
f ast t r ack_p2p_i n passt hr ough=yes
add act i on=mar k- packet chai n=post r out i ng comment =" " di sabl ed=no \
l ayer 7- pr ot ocol =f ast t r ack new- packet - mar k=f ast t r ack_p2p_out \
out - i nt er f ace=dsl passt hr ough=yes
add act i on=mar k- packet chai n=pr er out i ng comment =\
" FTP - Fi l e Tr ansf er Pr ot ocol " di sabl ed=no i n- i nt er f ace=dsl \
l ayer 7- pr ot ocol =f t p new- packet - mar k=f t p_i n passt hr ough=yes
add act i on=mar k- packet chai n=post r out i ng comment =" " di sabl ed=no \
l ayer 7- pr ot ocol =f t p new- packet - mar k=f t p_out out - i nt er f ace=dsl \
passt hr ough=yes
add act i on=mar k- packet chai n=pr er out i ng comment =" Gnucl eusLAN - LAN- onl y P2P " \
di sabl ed=no i n- i nt er f ace=dsl l ayer 7- pr ot ocol =gnucl eusl an new- packet - mar k=\
gnu_p2p_i n passt hr ough=yes
add act i on=mar k- packet chai n=post r out i ng comment =" " di sabl ed=no \
l ayer 7- pr ot ocol =gnucl eusl an new- packet - mar k=gnu_p2p_out out - i nt er f ace=dsl \
Basic traffic shaping based on layer-7 protocols - MikroTik Wiki
http://wiki.mikrotik.com/wiki/Basic_traffic_shaping_based_on_layer-7_protocols[24/6/2012 11:41:48 ]
passt hr ough=yes
add act i on=mar k- packet chai n=pr er out i ng comment =" Gnut el l a - P2P f i l eshar i ng" \
di sabl ed=no i n- i nt er f ace=dsl l ayer 7- pr ot ocol =gnut el l a new- packet - mar k=\
gnut el l a_p2p_i n passt hr ough=yes
add act i on=mar k- packet chai n=post r out i ng comment =" " di sabl ed=no \
l ayer 7- pr ot ocol =gnut el l a new- packet - mar k=gnut el l a_p2p_out out - i nt er f ace=\
dsl passt hr ough=yes
add act i on=mar k- packet chai n=pr er out i ng comment =\
" GoBoogy - a Kor ean P2P pr ot ocol " di sabl ed=no i n- i nt er f ace=dsl \
l ayer 7- pr ot ocol =goboogy new- packet - mar k=gobogy_p2p_i n passt hr ough=yes
add act i on=mar k- packet chai n=post r out i ng comment =" " di sabl ed=no \
l ayer 7- pr ot ocol =goboogy new- packet - mar k=gobogy_p2p_out out - i nt er f ace=dsl \
passt hr ough=yes
add act i on=mar k- packet chai n=pr er out i ng comment =" H. 323 - Voi ce over I P" \
di sabl ed=no i n- i nt er f ace=dsl l ayer 7- pr ot ocol =h323 new- packet - mar k=\
h323_voi ceover i p_i n passt hr ough=yes
add act i on=mar k- packet chai n=post r out i ng comment =" " di sabl ed=no \
l ayer 7- pr ot ocol =h323 new- packet - mar k=h323_voi ceover i p_out out - i nt er f ace=\
dsl passt hr ough=yes
add act i on=mar k- packet chai n=pr er out i ng comment =" RTSP t unnel ed wi t hi n HTTP" \
di sabl ed=no i n- i nt er f ace=dsl l ayer 7- pr ot ocol =ht t p- r t sp new- packet - mar k=\
ht t pr t sp_i n passt hr ough=yes
add act i on=mar k- packet chai n=post r out i ng comment =" " di sabl ed=no \
l ayer 7- pr ot ocol =ht t p- r t sp new- packet - mar k=ht t pr t sp_out out - i nt er f ace=dsl \
passt hr ough=yes
add act i on=mar k- packet chai n=pr er out i ng comment =\
" www Hyper Text Tr ansf er Pr ot ocol " di sabl ed=no i n- i nt er f ace=dsl \
l ayer 7- pr ot ocol =ht t p new- packet - mar k=ht t p_i n passt hr ough=yes
add act i on=mar k- packet chai n=post r out i ng comment =" " di sabl ed=no \
l ayer 7- pr ot ocol =ht t p new- packet - mar k=ht t p_out out - i nt er f ace=dsl \
passt hr ough=yes
add act i on=mar k- packet chai n=pr er out i ng comment =\
" I dent - I dent i f i cat i on Pr ot ocol - RFC 1413 " di sabl ed=no i n- i nt er f ace=dsl \
l ayer 7- pr ot ocol =i dent new- packet - mar k=i dent _i n passt hr ough=yes
add act i on=mar k- packet chai n=post r out i ng comment =" " di sabl ed=no \
l ayer 7- pr ot ocol =i dent new- packet - mar k=i dent _out out - i nt er f ace=dsl \
passt hr ough=yes
add act i on=mar k- packet chai n=pr er out i ng comment =\
" I MAP - I nt er net Message Access Pr ot ocol ( A common e- mai l pr ot ocol ) " \
di sabl ed=no i n- i nt er f ace=dsl l ayer 7- pr ot ocol =i map new- packet - mar k=i map_i n \
passt hr ough=yes
add act i on=mar k- packet chai n=post r out i ng comment =" " di sabl ed=no \
l ayer 7- pr ot ocol =i map new- packet - mar k=i map_out out - i nt er f ace=dsl \
passt hr ough=yes
add act i on=mar k- packet chai n=pr er out i ng comment =\
" i Mesh - t he nat i ve pr ot ocol of i Mesh, a P2P appl i cat i on " di sabl ed=no \
i n- i nt er f ace=dsl l ayer 7- pr ot ocol =i mesh new- packet - mar k=i mesh_p2p_i n \
passt hr ough=yes
add act i on=mar k- packet chai n=post r out i ng comment =" " di sabl ed=no \
l ayer 7- pr ot ocol =i mesh new- packet - mar k=i mesh_p2p_out out - i nt er f ace=dsl \
passt hr ough=yes
add act i on=mar k- packet chai n=pr er out i ng comment =" I RC - I nt er net Rel ay Chat " \
di sabl ed=no i n- i nt er f ace=dsl l ayer 7- pr ot ocol =i r c new- packet - mar k=i r c_i n \
passt hr ough=yes
add act i on=mar k- packet chai n=post r out i ng comment =" " di sabl ed=no \
l ayer 7- pr ot ocol =i r c new- packet - mar k=i r c_out out - i nt er f ace=dsl \
passt hr ough=yes
add act i on=mar k- packet chai n=pr er out i ng comment =\
" KuGoo - a Chi nese P2P pr ogr am" di sabl ed=no i n- i nt er f ace=dsl \
l ayer 7- pr ot ocol =kugoo new- packet - mar k=koogo_i n passt hr ough=yes
add act i on=mar k- packet chai n=post r out i ng comment =" " di sabl ed=no \
l ayer 7- pr ot ocol =kugoo new- packet - mar k=koogo_out out - i nt er f ace=dsl \
passt hr ough=yes
add act i on=mar k- packet chai n=pr er out i ng comment =\
" MSN ( Mi cosof t Net wor k) Messenger f i l e t r ansf er s " di sabl ed=no \
i n- i nt er f ace=dsl l ayer 7- pr ot ocol =msn- f i l et r ansf er new- packet - mar k=\
msnf i l e_i n passt hr ough=yes
add act i on=mar k- packet chai n=post r out i ng comment =" " di sabl ed=no \
l ayer 7- pr ot ocol =msn- f i l et r ansf er new- packet - mar k=msnf i l e_out \
out - i nt er f ace=dsl passt hr ough=yes
Basic traffic shaping based on layer-7 protocols - MikroTik Wiki
http://wiki.mikrotik.com/wiki/Basic_traffic_shaping_based_on_layer-7_protocols[24/6/2012 11:41:48 ]
add act i on=mar k- packet chai n=pr er out i ng comment =" MSN Messenger " di sabl ed=no \
i n- i nt er f ace=dsl l ayer 7- pr ot ocol =msnmessenger new- packet - mar k=msn_i n \
passt hr ough=yes
add act i on=mar k- packet chai n=post r out i ng comment =" " di sabl ed=no \
l ayer 7- pr ot ocol =msnmessenger new- packet - mar k=msn_out out - i nt er f ace=dsl \
passt hr ough=yes
add act i on=mar k- packet chai n=pr er out i ng comment =" MUTE - P2P f i l eshar i ng " \
di sabl ed=no i n- i nt er f ace=dsl l ayer 7- pr ot ocol =mut e new- packet - mar k=\
mut e_p2p_i n passt hr ough=yes
add act i on=mar k- packet chai n=post r out i ng comment =" " di sabl ed=no \
l ayer 7- pr ot ocol =mut e new- packet - mar k=mut e_p2p_out out - i nt er f ace=dsl \
passt hr ough=yes
add act i on=mar k- packet chai n=pr er out i ng comment =" Napst er - P2P f i l eshar i ng" \
di sabl ed=no i n- i nt er f ace=dsl l ayer 7- pr ot ocol =napst er new- packet - mar k=\
napst er _i n passt hr ough=yes
add act i on=mar k- packet chai n=post r out i ng comment =" " di sabl ed=no \
l ayer 7- pr ot ocol =napst er new- packet - mar k=napst er _out out - i nt er f ace=dsl \
passt hr ough=yes
add act i on=mar k- packet chai n=pr er out i ng comment =\
" Net BI OS - Net wor k Basi c I nput Out put Syst em" di sabl ed=no i n- i nt er f ace=\
dsl l ayer 7- pr ot ocol =net bi os new- packet - mar k=net bi os_i n passt hr ough=yes
add act i on=mar k- packet chai n=post r out i ng comment =" " di sabl ed=no \
l ayer 7- pr ot ocol =net bi os new- packet - mar k=net bi os_out out - i nt er f ace=dsl \
passt hr ough=yes
add act i on=mar k- packet chai n=pr er out i ng comment =\
" NNTP - Net wor k News Tr ansf er Pr ot ocol " di sabl ed=no i n- i nt er f ace=dsl \
l ayer 7- pr ot ocol =nnt p new- packet - mar k=nnt p_i n passt hr ough=yes
add act i on=mar k- packet chai n=post r out i ng comment =" " di sabl ed=no \
l ayer 7- pr ot ocol =nnt p new- packet - mar k=nnt p_out out - i nt er f ace=dsl \
passt hr ough=yes
add act i on=mar k- packet chai n=pr er out i ng comment =\
" SNTP - ( Si mpl e) Net wor k Ti me Pr ot ocol " di sabl ed=no i n- i nt er f ace=dsl \
l ayer 7- pr ot ocol =nt p new- packet - mar k=nt p_i n passt hr ough=yes
add act i on=mar k- packet chai n=post r out i ng comment =" " di sabl ed=no \
l ayer 7- pr ot ocol =nt p new- packet - mar k=nt p_out out - i nt er f ace=dsl \
passt hr ough=yes
add act i on=mar k- packet chai n=pr er out i ng comment =\
" Remot e Admi ni st r at or - r emot e deskt op f or MS Wi ndows" di sabl ed=no \
i n- i nt er f ace=dsl l ayer 7- pr ot ocol =r admi n new- packet - mar k=r admi n_i n \
passt hr ough=yes
add act i on=mar k- packet chai n=post r out i ng comment =" " di sabl ed=no \
l ayer 7- pr ot ocol =r admi n new- packet - mar k=r admi n_out out - i nt er f ace=dsl \
passt hr ough=yes
add act i on=mar k- packet chai n=pr er out i ng comment =\
" Remot e Deskt op Pr ot ocol ( used i n Wi ndows Ter mi nal Ser vi ces) " di sabl ed=no \
i n- i nt er f ace=dsl l ayer 7- pr ot ocol =r dp new- packet - mar k=r dp_i n passt hr ough=\
yes
add act i on=mar k- packet chai n=post r out i ng comment =" " di sabl ed=no \
l ayer 7- pr ot ocol =r dp new- packet - mar k=r dp_out out - i nt er f ace=dsl \
passt hr ough=yes
add act i on=mar k- packet chai n=pr er out i ng comment =\
" RTSP - Real Ti me St r eami ng Pr ot ocol " di sabl ed=no i n- i nt er f ace=dsl \
l ayer 7- pr ot ocol =r t sp new- packet - mar k=r t sp_i n passt hr ough=yes
add act i on=mar k- packet chai n=post r out i ng comment =" " di sabl ed=no \
l ayer 7- pr ot ocol =r t sp new- packet - mar k=r t sp_out out - i nt er f ace=dsl \
passt hr ough=yes
add act i on=mar k- packet chai n=pr er out i ng comment =\
" SI P - Sessi on I ni t i at i on Pr ot ocol - I nt er net t el ephony " di sabl ed=no \
i n- i nt er f ace=dsl l ayer 7- pr ot ocol =si p new- packet - mar k=si p_i n passt hr ough=\
yes
add act i on=mar k- packet chai n=post r out i ng comment =" " di sabl ed=no \
l ayer 7- pr ot ocol =si p new- packet - mar k=si p_out out - i nt er f ace=dsl \
passt hr ough=yes
add act i on=mar k- packet chai n=pr er out i ng comment =\
" Skype t o phone - UDP voi ce cal l " di sabl ed=no i n- i nt er f ace=dsl \
l ayer 7- pr ot ocol =skypeout new- packet - mar k=skypeout _i n passt hr ough=yes pr ot ocol =udp
add act i on=mar k- packet chai n=post r out i ng comment =" " di sabl ed=no \
l ayer 7- pr ot ocol =skypeout new- packet - mar k=skypeout _out out - i nt er f ace=dsl \
passt hr ough=yes pr ot ocol =udp
add act i on=mar k- packet chai n=pr er out i ng comment =\
Basic traffic shaping based on layer-7 protocols - MikroTik Wiki
http://wiki.mikrotik.com/wiki/Basic_traffic_shaping_based_on_layer-7_protocols[24/6/2012 11:41:48 ]
" Skype t o Skype - UDP voi ce cal l " di sabl ed=no i n- i nt er f ace=dsl \
l ayer 7- pr ot ocol =skypet oskype new- packet - mar k=skype2skype_i n passt hr ough=\
yes pr ot ocol =udp
add act i on=mar k- packet chai n=post r out i ng comment =" " di sabl ed=no \
l ayer 7- pr ot ocol =skypet oskype new- packet - mar k=skype2skype_out \
out - i nt er f ace=dsl passt hr ough=yes pr ot ocol =udp
add act i on=mar k- packet chai n=pr er out i ng comment =\
" POP3 - Post Of f i ce Pr ot ocol ver si on 3" di sabl ed=no i n- i nt er f ace=dsl \
l ayer 7- pr ot ocol =pop3 new- packet - mar k=pop3_i n passt hr ough=yes
add act i on=mar k- packet chai n=post r out i ng comment =" " di sabl ed=no \
l ayer 7- pr ot ocol =pop3 new- packet - mar k=pop3_out out - i nt er f ace=dsl \
passt hr ough=yes
add act i on=mar k- packet chai n=pr er out i ng comment =\
" SMTP - Si mpl e Mai l Tr ansf er Pr ot ocol " di sabl ed=no i n- i nt er f ace=dsl \
l ayer 7- pr ot ocol =smt p new- packet - mar k=smt p_i n passt hr ough=yes
add act i on=mar k- packet chai n=post r out i ng comment =" " di sabl ed=no \
l ayer 7- pr ot ocol =smt p new- packet - mar k=smt p_out out - i nt er f ace=dsl \
passt hr ough=yes
add act i on=mar k- packet chai n=pr er out i ng comment =\
" SNMP - Si mpl e Net wor k Management Pr ot ocol " di sabl ed=no i n- i nt er f ace=dsl \
l ayer 7- pr ot ocol =snmp new- packet - mar k=snmp_i n passt hr ough=yes
add act i on=mar k- packet chai n=post r out i ng comment =" " di sabl ed=no \
l ayer 7- pr ot ocol =snmp new- packet - mar k=snmp_out out - i nt er f ace=dsl \
passt hr ough=yes
add act i on=mar k- packet chai n=pr er out i ng comment =" Soul seek - P2P f i l eshar i ng " \
di sabl ed=no i n- i nt er f ace=dsl l ayer 7- pr ot ocol =soul seek new- packet - mar k=\
soul sek_i n passt hr ough=yes
add act i on=mar k- packet chai n=post r out i ng comment =" " di sabl ed=no \
l ayer 7- pr ot ocol =soul seek new- packet - mar k=soul sek_out out - i nt er f ace=dsl \
passt hr ough=yes
add act i on=mar k- packet chai n=pr er out i ng comment =" SSH - Secur e SHel l " \
di sabl ed=no i n- i nt er f ace=dsl l ayer 7- pr ot ocol =ssh new- packet - mar k=ssh_i n \
passt hr ough=yes
add act i on=mar k- packet chai n=post r out i ng comment =" " di sabl ed=no \
l ayer 7- pr ot ocol =ssh new- packet - mar k=ssh_out out - i nt er f ace=dsl \
passt hr ough=yes
add act i on=mar k- packet chai n=pr er out i ng comment =\
" SSL and TLS - Secur e Socket Layer / Tr anspor t Layer Secur i t y " di sabl ed=\
no i n- i nt er f ace=dsl l ayer 7- pr ot ocol =ssl new- packet - mar k=ssl _i n \
passt hr ough=yes
add act i on=mar k- packet chai n=post r out i ng comment =" " di sabl ed=no \
l ayer 7- pr ot ocol =ssl new- packet - mar k=ssl _out out - i nt er f ace=dsl \
passt hr ough=yes
add act i on=mar k- packet chai n=pr er out i ng comment =vnc di sabl ed=no i n- i nt er f ace=\
dsl l ayer 7- pr ot ocol =vnc new- packet - mar k=vnc_i n passt hr ough=yes
add act i on=mar k- packet chai n=post r out i ng comment =" " di sabl ed=no \
l ayer 7- pr ot ocol =vnc new- packet - mar k=vnc_out out - i nt er f ace=dsl \
passt hr ough=yes
add act i on=mar k- packet chai n=pr er out i ng comment =\
" TeamSpeak - VoI P appl i cat i on " di sabl ed=no i n- i nt er f ace=dsl \
l ayer 7- pr ot ocol =t eamspeak new- packet - mar k=t eamspeak_i n passt hr ough=yes
add act i on=mar k- packet chai n=post r out i ng comment =" " di sabl ed=no \
l ayer 7- pr ot ocol =t eamspeak new- packet - mar k=t eamspeak_out out - i nt er f ace=dsl \
passt hr ough=yes
Then we create quueue tree, and change Max upload and download speed under DSL_IN and DSL_OUT (global-in
gloabal-out) and chanege priority rules to suit your needs:
/ queue t r ee
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =\
10000000 max- l i mi t =11000000 name=DSL_I N packet - mar k=" " par ent =gl obal - i n
\
pr i or i t y=1 queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=100bao_p2p_i n packet - mar k=100bao_p2p_i n par ent =DSL_I N \
pr i or i t y=8 queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
Basic traffic shaping based on layer-7 protocols - MikroTik Wiki
http://wiki.mikrotik.com/wiki/Basic_traffic_shaping_based_on_layer-7_protocols[24/6/2012 11:41:48 ]
max- l i mi t =0 name=ai m_mesanger _i n packet - mar k=ai m_mesanger _i n par ent =\
DSL_I N pr i or i t y=6 queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=ai m_mesenger _web_i n packet - mar k=ai m_mesenger _web_i n \
par ent =DSL_I N pr i or i t y=6 queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=appl ej ui ce_i n packet - mar k=appl ej ui ce_i n par ent =DSL_I N \
pr i or i t y=7 queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=ar es_p2p_i n packet - mar k=ar es_p2p_i n par ent =DSL_I N \
pr i or i t y=7 queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=ht t p_i n packet - mar k=ht t p_i n par ent =DSL_I N pr i or i t y=2 \
queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=bi t t or ent _i n packet - mar k=bi t t or ent _i n par ent =DSL_I N \
pr i or i t y=7 queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=dhcp_i n packet - mar k=dhcp_i n par ent =DSL_I N pr i or i t y=2 \
queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=DC_p2p_i n packet - mar k=DC_p2p_i n par ent =DSL_I N pr i or i t y=7 \
queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=DNS_i n packet - mar k=DNS_i n par ent =DSL_I N pr i or i t y=1 \
queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=edonkey_p2p_i n packet - mar k=edonkey_p2p_i n par ent =DSL_I N \
pr i or i t y=7 queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=f ast t r ack_p2p_i n packet - mar k=f ast t r ack_p2p_i n par ent =\
DSL_I N pr i or i t y=7 queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=f t p_i n packet - mar k=f t p_i n par ent =DSL_I N pr i or i t y=5 \
queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=gnu_p2p_i n packet - mar k=gnu_p2p_i n par ent =DSL_I N \
pr i or i t y=7 queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=gnut el l a_p2p_i n packet - mar k=gnut el l a_p2p_i n par ent =\
DSL_I N pr i or i t y=7 queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=gobogy_p2p_i n packet - mar k=gobogy_p2p_i n par ent =DSL_I N \
pr i or i t y=7 queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=h323_voi ceover i p_i n packet - mar k=h323_voi ceover i p_i n \
par ent =DSL_I N pr i or i t y=4 queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=ht t pr t sp_i n packet - mar k=ht t pr t sp_i n par ent =DSL_I N \
pr i or i t y=5 queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=i dent _i n packet - mar k=i dent _i n par ent =DSL_I N pr i or i t y=2 \
queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=i map_i n packet - mar k=i map_i n par ent =DSL_I N pr i or i t y=2 \
queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=i mesh_p2p_i n packet - mar k=i mesh_p2p_i n par ent =DSL_I N \
pr i or i t y=7 queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=i r c_i n packet - mar k=i r c_i n par ent =DSL_I N pr i or i t y=5 \
queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=msnf i l e_i n packet - mar k=msnf i l e_i n par ent =DSL_I N \
pr i or i t y=6 queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=mut e_p2p_i n packet - mar k=mut e_p2p_i n par ent =DSL_I N \
pr i or i t y=7 queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=napst er i n packet - mar k=napst er i n par ent =DSL I N \
Basic traffic shaping based on layer-7 protocols - MikroTik Wiki
http://wiki.mikrotik.com/wiki/Basic_traffic_shaping_based_on_layer-7_protocols[24/6/2012 11:41:48 ]
pr i or i t y=7 queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=net bi os_i n packet - mar k=net bi os_i n par ent =DSL_I N \
pr i or i t y=2 queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=nnt p_i n packet - mar k=nnt p_i n par ent =DSL_I N pr i or i t y=2 \
queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=r admi n_i n packet - mar k=r admi n_i n par ent =DSL_I N pr i or i t y=4 \
queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=nt p_i n packet - mar k=nt p_i n par ent =DSL_I N pr i or i t y=2 \
queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=r dp_i n packet - mar k=r dp_i n par ent =DSL_I N pr i or i t y=4 \
queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=r t sp_i n packet - mar k=r t sp_i n par ent =DSL_I N pr i or i t y=6 \
queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=si p_i n packet - mar k=si p_i n par ent =DSL_I N pr i or i t y=4 \
queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=skypeout _i n packet - mar k=skypeout _i n par ent =DSL_I N \
pr i or i t y=5 queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=skype2skype_i n packet - mar k=skype2skype_i n par ent =DSL_I N \
pr i or i t y=5 queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=pop3_i n packet - mar k=pop3_i n par ent =DSL_I N pr i or i t y=5 \
queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=smt p_i n packet - mar k=smt p_i n par ent =DSL_I N pr i or i t y=2 \
queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=snmp_i n packet - mar k=snmp_i n par ent =DSL_I N pr i or i t y=2 \
queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=soul sek_i n packet - mar k=soul sek_i n par ent =DSL_I N \
pr i or i t y=7 queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=ssh_i n packet - mar k=ssh_i n par ent =DSL_I N pr i or i t y=3 \
queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=ssl _i n packet - mar k=ssl _i n par ent =DSL_I N pr i or i t y=2 \
queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=vnc_i n packet - mar k=vnc_i n par ent =DSL_I N pr i or i t y=4 \
queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=t eamspeak_i n packet - mar k=t eamspeak_i n par ent =DSL_I N \
pr i or i t y=4 queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =500000 \
max- l i mi t =600000 name=DSL_OUT packet - mar k=" " par ent =gl obal - out pr i or i t y=1 \
queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=100bao_p2p_out packet - mar k=100bao_p2p_out par ent =DSL_OUT \
pr i or i t y=7 queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=ai m_mesanger _out packet - mar k=ai m_mesanger _out par ent =\
DSL_OUT pr i or i t y=6 queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=ai m_mesenger _web_out packet - mar k=ai m_mesenger _web_out \
par ent =DSL_OUT pr i or i t y=7 queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=ar es_p2p_out packet - mar k=ar es_p2p_out par ent =DSL_OUT \
pr i or i t y=7 queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=bgp_r out i ng_out packet - mar k=bgp_r out i ng_out par ent =\
DSL_OUT pr i or i t y=2 queue=def aul t
Basic traffic shaping based on layer-7 protocols - MikroTik Wiki
http://wiki.mikrotik.com/wiki/Basic_traffic_shaping_based_on_layer-7_protocols[24/6/2012 11:41:48 ]
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=bi t t or ent _out packet - mar k=bi t t or ent _out par ent =DSL_OUT \
pr i or i t y=7 queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=dhcp_out packet - mar k=dhcp_out par ent =DSL_OUT pr i or i t y=2 \
queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=DC_p2p_out packet - mar k=DC_p2p_out par ent =DSL_OUT \
pr i or i t y=7 queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=DNS_out packet - mar k=DNS_out par ent =DSL_OUT pr i or i t y=1 \
queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=edonkey_p2p_out packet - mar k=edonkey_p2p_out par ent =\
DSL_OUT pr i or i t y=7 queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=f ast t r ack_p2p_out packet - mar k=f ast t r ack_p2p_out par ent =\
DSL_OUT pr i or i t y=7 queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=f t p_out packet - mar k=f t p_out par ent =DSL_OUT pr i or i t y=5 \
queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=gnu_p2p_out packet - mar k=gnu_p2p_out par ent =DSL_OUT \
pr i or i t y=7 queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=gnut el l a_p2p_out packet - mar k=gnut el l a_p2p_out par ent =\
DSL_OUT pr i or i t y=7 queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=gobogy_p2p_out packet - mar k=gobogy_p2p_out par ent =DSL_OUT \
pr i or i t y=7 queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=h323_voi ceover i p_out packet - mar k=h323_voi ceover i p_out \
par ent =DSL_OUT pr i or i t y=4 queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=ht t pr t sp_out packet - mar k=ht t pr t sp_out par ent =DSL_OUT \
pr i or i t y=5 queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=ht t p_out packet - mar k=ht t p_out par ent =DSL_OUT pr i or i t y=3 \
queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=i dent _out packet - mar k=i dent _out par ent =DSL_OUT pr i or i t y=\
2 queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=i map_out packet - mar k=i map_out par ent =DSL_OUT pr i or i t y=2 \
queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=i mesh_p2p_out packet - mar k=i mesh_p2p_out par ent =DSL_OUT \
pr i or i t y=7 queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=i r c_out packet - mar k=i r c_out par ent =DSL_OUT pr i or i t y=4 \
queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=koogo_out packet - mar k=koogo_out par ent =DSL_OUT pr i or i t y=\
7 queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=msnf i l e_out packet - mar k=msnf i l e_out par ent =DSL_OUT \
pr i or i t y=6 queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=msn_out packet - mar k=msn_out par ent =DSL_OUT pr i or i t y=5 \
queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=mut e_p2p_out packet - mar k=mut e_p2p_out par ent =DSL_OUT \
pr i or i t y=7 queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=napst er _out packet - mar k=napst er _out par ent =DSL_OUT \
pr i or i t y=7 queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=net bi os_out packet - mar k=net bi os_out par ent =DSL_OUT \
pr i or i t y=2 queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
Basic traffic shaping based on layer-7 protocols - MikroTik Wiki
http://wiki.mikrotik.com/wiki/Basic_traffic_shaping_based_on_layer-7_protocols[24/6/2012 11:41:48 ]
max- l i mi t =0 name=nnt p_out packet - mar k=nnt p_out par ent =DSL_OUT pr i or i t y=2 \
queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=nt p_out packet - mar k=nt p_out par ent =DSL_OUT pr i or i t y=2 \
queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=r admi n_out packet - mar k=r admi n_out par ent =DSL_OUT \
pr i or i t y=4 queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=r dp_out packet - mar k=r dp_out par ent =DSL_OUT pr i or i t y=4 \
queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=r t sp_out packet - mar k=r t sp_out par ent =DSL_OUT pr i or i t y=5 \
queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=si p_out packet - mar k=si p_out par ent =DSL_OUT pr i or i t y=4 \
queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=skypeout _out packet - mar k=skypeout _out par ent =DSL_OUT \
pr i or i t y=5 queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=skype2skype_out packet - mar k=skype2skype_out par ent =\
DSL_OUT pr i or i t y=5 queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=pop3_out packet - mar k=pop3_out par ent =DSL_OUT pr i or i t y=4 \
queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=smt p_out packet - mar k=smt p_out par ent =DSL_OUT pr i or i t y=2 \
queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=snmp_out packet - mar k=snmp_out par ent =DSL_OUT pr i or i t y=2 \
queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=soul sek_out packet - mar k=soul sek_out par ent =DSL_OUT \
pr i or i t y=7 queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=ssh_out packet - mar k=ssh_out par ent =DSL_OUT pr i or i t y=3 \
queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=ssl _out packet - mar k=ssl _out par ent =DSL_OUT pr i or i t y=2 \
queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=vnc_out packet - mar k=vnc_out par ent =DSL_OUT pr i or i t y=5 \
queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=t eamspeak_out packet - mar k=t eamspeak_out par ent =DSL_OUT \
pr i or i t y=5 queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=appl ej ui ce_out packet - mar k=appl ej ui ce_out par ent =DSL_OUT \
pr i or i t y=7 queue=def aul t
add bur st - l i mi t =0 bur st - t hr eshol d=0 bur st - t i me=0s di sabl ed=no l i mi t - at =0 \
max- l i mi t =0 name=msn_i n packet - mar k=msn_i n par ent =DSL_I N pr i or i t y=5 \
queue=def aul t
OPTIONAL: In this example we do not catch the "all remaining" packets so packets that are not caught here will get
higher priority. If we want to catch them and put them in our queue rules we need to add these lines:
/ i p f i r ewal l mangl e
add act i on=mar k- packet chai n=pr er out i ng comment =" Ever yt hi ng el se t hat r emai ns" i n-
i nt er f ace=dsl new- packet - mar k=r emai ni ng_i n passt hr ough=no
add act i on=mar k- packet chai n=post r out i ng new- packet - mar k=r emai ni ng_out out - i nt er f ace=dsl
passt hr ough=no
As you can imagine, this will invalidate (overwrite, over-mark) all previous marks with passthrough=yes so you might as
Basic traffic shaping based on layer-7 protocols - MikroTik Wiki
http://wiki.mikrotik.com/wiki/Basic_traffic_shaping_based_on_layer-7_protocols[24/6/2012 11:41:48 ]
well change all those to =no.
Then we need to add the queues:
/ queue t r ee
add name=r emai ni ng_i n packet - mar k=r emai ni ng_i n par ent =DSL_I N pr i or i t y=6
add name=r emai ni ng_out packet - mar k=r emai ni ng_out par ent =DSL_OUT pr i or i t y=6
NOTE 1: The 'imesh' Layer7 matcher is reported to crash the Linux kernel? and some versions of RouterOS so you might
simply not use that one, since the application is old/not popular anyway.
NOTE 2: According to official manual (Queue,HTB), we must have limit-at= set to something and max-limit= set
properly, for each child queue, to have priorities. In this example these settings are not shown.
NOTE 3: Doing this may get the TCP packets out-of-order. Although reordering is denied by MT staff, putting different
parts of a TCP connection in different queues may be bad for TCP performance at least.
Experiment with the settings until you find what is best for you, and please report the successes in the forum . We
would love to see them!
Privacy policy / About MikroTik Wiki / Disclaimers / Powered by MediaWiki / Designed by Paul Gu

You might also like