Community discussions

MikroTik App
 
User avatar
111111
Member Candidate
Member Candidate
Topic Author
Posts: 195
Joined: Thu Oct 05, 2006 1:39 am
Location: BG,SOFIA

mangle rule statistics in graphs howto ?

Sun Nov 05, 2006 9:25 pm

i have this rule
/ ip firewall mangle 
add chain=prerouting in-interface=INTERNET src-address-list="! local traffic" action=accept comment="Overseas traffic" disabled=no 
how to show statistics in
http://MT_ROUTER_IP/graphs
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6695
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Mon Nov 06, 2006 8:37 am

Mangle rules are not shown in grapgs, and OID is not implemented for 'ip firewall mangle' to get statistic about mangle in external server.
To get graphs information for the particular rule, use mangle+queue simple, then graphs will be available.
 
User avatar
111111
Member Candidate
Member Candidate
Topic Author
Posts: 195
Joined: Thu Oct 05, 2006 1:39 am
Location: BG,SOFIA

Tue Nov 07, 2006 1:10 am

Can you write some example, please
 
dawam
Trainer
Trainer
Posts: 134
Joined: Wed May 31, 2006 1:40 pm
Location: Malaysia

Tue Nov 07, 2006 6:52 am

shouldn't

tool -> graphing -> queue rules

do the job
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6695
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Tue Nov 07, 2006 8:53 am

1) Create mangle rule or use existing one, but change action to 'mark-packet', as only packets marks are present on queues.
2) 'queue simple add name=monitoring packet-marks="frommangle".
3 ) Graph for 'monitoring' queue should work fine.
 
User avatar
111111
Member Candidate
Member Candidate
Topic Author
Posts: 195
Joined: Thu Oct 05, 2006 1:39 am
Location: BG,SOFIA

Tue Nov 07, 2006 1:44 pm

it don't work only zeroes
/ ip firewall mangle
add chain=prerouting in-interface=INTERNET src-address-list="!local traffic" action=mark-packet new-packet-mark=TEST passthrough=yes comment="Overseas traffic" disabled=no

/ queue simple
add name="monitoring" dst-address=0.0.0.0/0 interface=all parent=none packet-marks=TEST direction=none priority=8 queue=default-small/default-small limit-at=0/0 max-limit=0/0 total-queue=default-small disabled=no 
is it correct?
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6695
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Tue Nov 07, 2006 2:37 pm

Do the mangle counters work ?
Make sure you have traffic that is matching configured rules.
What traffic do you want to monitor/mangle ?
 
User avatar
111111
Member Candidate
Member Candidate
Topic Author
Posts: 195
Joined: Thu Oct 05, 2006 1:39 am
Location: BG,SOFIA

Tue Nov 07, 2006 5:32 pm

Max In: 0 b Average In: 0 b Current In: 0 b
Max Out: 0 b Average Out: 0 b Current Out: 0 b

traffic ~ 2 mb non-stop

this is Overseas incoming trafic

Who is online

Users browsing this forum: Bing [Bot], kormenator and 158 guests