Community discussions

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

p2p shape correct me please

Mon Apr 03, 2006 7:34 pm

I have 2 interfaces, first to isp(name=inet), second to lan.on lan interface are 3 ip addresses(3 subnets).i want to allow unlimited p2p speed beetwen my clients and limit all other (incoming and outgoing from/to internet) p2p to 70 mbps down and 50 mbps up.Version 2.9.18.
Here is my config:
/ ip firewall mangle
add chain=prerouting p2p=all-p2p action=mark-packet new-packetmark=p2p passthrough=yes comment="mark all p2p" disabled=no

/ queue simple
add name="queue1" dst-address=0.0.0.0/0 interface=inet parent=none packet-marks=p2p direction=both priority=8 queue=default-small/default-small limit-at=0/0 max-limit=50000000/70000000 total-queue=default-small disabled=no
 
User avatar
gottin
Frequent Visitor
Frequent Visitor
Posts: 62
Joined: Fri Feb 25, 2005 8:33 am
Location: Bulgaria
Contact:

Mon Apr 03, 2006 8:59 pm

Shaping p2p works for be when making queues into "/queue tree"
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6695
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Tue Apr 04, 2006 9:02 am

Alex,
I suppose, mangle rules have to be more complicated, you have to set up two packet-marks.
One for the p2p traffic between customers, and second for another p2p traffic.Queues have to be applied for second p2p mark.
http://www.mikrotik.com/docs/ros/2.9/ro ... t#6.54.6.2
 
Alex
Member Candidate
Member Candidate
Topic Author
Posts: 214
Joined: Thu Sep 30, 2004 11:07 am

Tue Apr 04, 2006 3:38 pm

sergejs, if i dont use nat, i have to setup 2 packet-marks? and where is about traffic division (latvian and overseas) in 2.9 documentation?
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26387
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia

Tue Apr 04, 2006 3:41 pm

use address lists for separation
 
Alex
Member Candidate
Member Candidate
Topic Author
Posts: 214
Joined: Thu Sep 30, 2004 11:07 am

Tue Apr 04, 2006 3:47 pm

example?

Who is online

Users browsing this forum: No registered users and 35 guests