Community discussions

MikroTik App
 
Alex
Member Candidate
Member Candidate
Topic Author
Posts: 214
Joined: Thu Sep 30, 2004 11:07 am

how to do this?

Tue May 23, 2006 12:12 pm

Hello!
How may be done traffic division (local and overseas) on 2.9.24?I know what i need to do but don`t know how it can be done with 2.9 RouterOS :( I have local subnets list.I have to mark my subnets,then other local subnets.mark it as localtraffic.other traffic, that is not from/to mark localtraffic is overseas traffic.after these procedures i can create queue simple or tree and shape what i need.In documentation for 2.8 is good example, but in 2.9 docs this example disapeared.
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 27037
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia
Contact:

Tue May 23, 2006 12:37 pm

 
Alex
Member Candidate
Member Candidate
Topic Author
Posts: 214
Joined: Thu Sep 30, 2004 11:07 am

Tue May 23, 2006 1:01 pm

I created list with name latvia, witch contains all latvian subnets, after that i need to create 2 mangles:
0   chain=prerouting src-address-list=!latvia action=mark-connection new-connection-mark=oversea1 
     passthrough=yes 
1   chain=prerouting dst-address-list=!latvia action=mark-connection new-connection-mark=overaea2
     passthrough=yes 
and after that i can create queues, 2 per user, one for upload, one for download?
Last edited by Alex on Tue May 23, 2006 1:42 pm, edited 2 times in total.
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 27037
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia
Contact:

Tue May 23, 2006 1:34 pm

make one queue for one address list, and no queue for the rest of the addreses
 
Alex
Member Candidate
Member Candidate
Topic Author
Posts: 214
Joined: Thu Sep 30, 2004 11:07 am

Tue May 23, 2006 1:48 pm

i need to do queue per user ... if i will make only one queue rule for address list i will be able to shape my all overseas channel only :(
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 27037
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia
Contact:

Tue May 23, 2006 2:15 pm

use PCQ. man, could you try this link please?
http://www.mikrotik.com/docs/ros/2.9/
 
User avatar
fatonk
Member
Member
Posts: 438
Joined: Tue Feb 22, 2005 11:06 am
Location: Mitrovica/Kosova

Tue May 23, 2006 3:51 pm

This is what I have done to queue p2p and other traffic, this done per IP, it may help you:

ip firewall mangle add chain=forward p2p=all-p2p action=mark-connection new-connection-mark=p2p_conn

ip firewall mangle add chain=forward connection-mark=p2p_conn action=mark-packet new-packet-mark=p2p

ip firewall mangle add chain=forward connection-mark=!p2p_conn action=mark-packet new-packet-mark=other



queue type add name=p2p-Down kind=pcq pcq-rate=56000 pcq-limit=50 pcq-classifier=dst-address pcq-total-limit=2000

queue type add name=p2p-Up kind=pcq pcq-rate=56000 pcq-limit=50 pcq-classifier=src-address pcq-total-limit=2000

queue type add name=Down kind=pcq pcq-rate=131072 pcq-limit=50 pcq-classifier=dst-address pcq-total-limit=2000

queue type add name=Up kind=pcq pcq-rate=131072 pcq-limit=50 pcq-classifier=src-address pcq-total-limit=2000


queue tree add name=p2p-up parent=5.8Ghz packet-mark=p2p limit-at=0 queue=p2p-Up priority=8 max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s

queue tree add name=p2p-Down parent=ether1 packet-mark=p2p limit-at=0 queue=p2p-Down priority=8 max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s

queue tree add name=Upload parent=5.8Ghz packet-mark=other limit-at=0 queue=Up priority=1 max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s

queue tree add name=Download parent=ether1 packet-mark=other limit-at=0 queue=Down priority=1 max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s



Regards.

Faton