Page 1 of 1

[HELP] P2P Traffic Limiting

Posted: Wed Aug 08, 2007 7:38 am
by ilius168
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.

Re: [HELP] P2P Traffic Limiting

Posted: Wed Aug 08, 2007 12:26 pm
by sergejs
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.

Re: [HELP] P2P Traffic Limiting

Posted: Wed Aug 08, 2007 5:20 pm
by ilius168
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 

Re: [HELP] P2P Traffic Limiting

Posted: Wed Aug 08, 2007 9:01 pm
by kev23m
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.

Re: [HELP] P2P Traffic Limiting

Posted: Sat Nov 03, 2012 7:52 pm
by tamilmaran
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