Community discussions

MikroTik App
 
ilius168
Member Candidate
Member Candidate
Topic Author
Posts: 255
Joined: Sat Apr 07, 2007 3:54 am

[HELP] P2P Traffic Limiting

Wed Aug 08, 2007 7:38 am

Hi All,
I'm trying to limit P2P traffic for my network.
Tried few tricks from the manual & forums but didn't work.

following is the mangle rule i'm currently used:
 1   chain=postrouting action=mark-connection new-connection-mark=P2P Conn passthrough=yes p2p=all-p2p 

 2   chain=prerouting action=mark-packet new-packet-mark=P2P passthrough=yes connection-mark=P2P Conn 


while in simple queue:
 2    name="P2P" dst-address=0.0.0.0/0 interface=all parent=none packet-marks=P2P direction=both priority=8 queue=default-small/default-small limit-at=0/0 max-limit=0/0 
      total-queue=default-small 
The counters in mangle are running, but not showing any traffic in simple queue.
There are "P2P Conn" in firewall connections list.

But though, 'without' using mangle rule, the P2P (NOT "P2P Conn") were also shown in firewall connections P2P as well
(bit-torrent, e-donkey etc) ... I'm Confused! :(

I'm using 2.9.45

Thanks for the kind help.
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6697
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Re: [HELP] P2P Traffic Limiting

Wed Aug 08, 2007 12:26 pm

Well postrouting is going after prerouting, use prerouting chain.
However if you are not familiar with chaings and mangle, one queue simple entry is enough,
'queue simple add target-address=x.x.x.x/xx p2p=all-p2p' and required limits.
 
ilius168
Member Candidate
Member Candidate
Topic Author
Posts: 255
Joined: Sat Apr 07, 2007 3:54 am

Re: [HELP] P2P Traffic Limiting

Wed Aug 08, 2007 5:20 pm

tried that, didn't work either :(

i currently have 2 other mangle rules for other traffic limiting (Sat & Int). I wonder if these effecting the P2P mangles.
 3   ;;; Mark packets via VSAT
     chain=postrouting action=mark-connection 
     new-connection-mark=VSAT-Conn passthrough=yes 
     out-interface=Satellite 

 4   chain=prerouting action=mark-packet new-packet-mark=VSAT 
     passthrough=yes connection-mark=VSAT-Conn 

 5   ;;; Mark packets via FO
     chain=postrouting action=mark-connection 
     new-connection-mark=FO-Conn passthrough=yes 
     out-interface=FO 

 6   chain=prerouting action=mark-packet 
     new-packet-mark=FO passthrough=yes 
     connection-mark=FO-Conn 
 
kev23m
just joined
Posts: 12
Joined: Tue Jul 17, 2007 2:23 pm

Re: [HELP] P2P Traffic Limiting

Wed Aug 08, 2007 9:01 pm

NA P2P queues not working with the new versions for Gneutella & Bit-Torrent,

The UTorrent new client works even if you add a filter in the firewall and drop "all p2p"

I have tried lotsa tricks but does not work, you do block the dumb users who use old clients.

The best way would be to monitor packets on the network and accordingly mark all relevant packets , rest mark together n limit them like shown in Transparent Bandwidth Shaper in wiki.
 
tamilmaran
Frequent Visitor
Frequent Visitor
Posts: 74
Joined: Mon Sep 05, 2011 9:36 pm

Re: [HELP] P2P Traffic Limiting

Sat Nov 03, 2012 7:52 pm

Well postrouting is going after prerouting, use prerouting chain.
However if you are not familiar with chaings and mangle, one queue simple entry is enough,
'queue simple add target-address=x.x.x.x/xx p2p=all-p2p' and required limits.
i searched over the forum nobody had proper solution to limit P2p torrent limiting (shaping) methods.
Nobody had sucess , mikrotik people have to answer for it, is it is possible or not
If yes try to give any script or reference url, i will help all of the mk users.
thank you