Page 1 of 1
how to do this?
Posted: Tue May 23, 2006 12:12 pm
by Alex
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.
Posted: Tue May 23, 2006 12:37 pm
by normis
Posted: Tue May 23, 2006 1:01 pm
by Alex
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?
Posted: Tue May 23, 2006 1:34 pm
by normis
make one queue for one address list, and no queue for the rest of the addreses
Posted: Tue May 23, 2006 1:48 pm
by Alex
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

Posted: Tue May 23, 2006 2:15 pm
by normis
use PCQ. man, could you try this link please?
http://www.mikrotik.com/docs/ros/2.9/
Posted: Tue May 23, 2006 3:51 pm
by fatonk
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