P2P limitation with version 3.0.9

Started by MaxPower

MaxPower

P2P limitation with version 3.0.9   27 December 2014, 04:34

Hello,

I've downloaded a trial version to limit the bandwidth allowed for each user on a school network. I've created only one rule and it works very well and is very simple to configure on a getaway computer with internal bridging.

Unfortunately, if I add P2P detection to this rule, the bandwidth is not throttle anymore and a PC with utorrent can use the full bandwidth.

Here is the rule I've configured:
Name : Limit Test
Direction : both
Protocol : IPv4 based
Rate limit: 100000:30000 (bytes/s)
Network interface (the one directly connected to the ISP router)
Source/Destination : Any
Source Port : Destination Port : Any
Tracking : IP address : Own rate limit and quota for each source
No penalty and no user info.

If no DPI matching is configured for this one rule, the bandwidth is throttle to 100 KB (test done with speedtest.net, and other downoloading sites)
If DPI matching (P2P only) is enabled, the bandwidth is not limited anymore, direct downloads or torrents download operate at full speed.

How can I manage to simultaneously limit the bandwidth available per computer and forbid torrent traffic.

Thanks in advance.
MaxPower

Re: P2P limitation with version 3.0.9   27 December 2014, 04:42

OK, without DPI matching it seems that the rate limit applies to torrent downloading but it applies to one connection only. As torrent protocol allows multiple connection I would like to apply the rate limit to all connections at once.

How can I do that ?

PS: Still, with DPI matching enabled all the bandwidth is available.
SoftPerfect Support forum - Andrew avatar image

Re: P2P limitation with version 3.0.9   28 December 2014, 20:39

Unfortunately the DPI matching feature isn't 100% accurate. Due to the complexity of the Torrent protocol and various obfuscation methods used by P2P clients, it's not really possible to detect and throttle all Torrent downloads.

Depending on the normal activities in the school, instead of the DPI detection, you may want to choose either:
  • Allow essential activities (e.g. browsing and downloads) and ban everything else; or
  • Use the Penalties page to prevent long or large transfers that will apply to both regular downloads and P2P

As to why the rule only throttles one connection, I am not sure. Normally a rule is supposed to capture anything for the configured addresses, though in your case there's a chance that the same computer also uses IPv6 in which case this rule will not capture it. I recommend to create a separate rule to capture IPv6 traffic and see how it goes. Also you may find the Live Monitor feature useful for checking what's going on:

SoftPerfect support forum
MaxPower

Re: P2P limitation with version 3.0.9   28 December 2014, 22:16

Thank you very much for your answer today !

I will test your recommendations and give you the results.
MaxPower

Re: P2P limitation with version 3.0.9   30 December 2014, 02:07

OK, I can confirm that BW can not track utorrent connections. But I was able to successfully throttle the bandwidth. My mistake was that the rule I've created was targeted to the network interface connected to the ISP and not the one connected to the LAN (internal bridging).

I've also successfully configured connection penalty and it works really well.

One question though, is it possible to allocate less than 10% of the rate limit in case the maximum number of connections has been reached?
SoftPerfect Support forum - Andrew avatar image

Re: P2P limitation with version 3.0.9   30 December 2014, 12:44

At the moment 10% is the minimum. This is because setting it a lower value could disrupt network connectivity, for example 1% of 100 KB/s, would result in less than 1 KB per second and those connections would fail.

Sometimes you can get the answer faster if you try the forum search and/or have a look at the software user manual to see if your question has already been answered.

Our forum rules are simple:

  • Be polite.
  • Do not spam.
  • If possible, check your spelling and grammar.

Author:

Subject

A brief and informative title for your message, approximately 4–8 words:

     

Spam prevention: please enter the following code in the input field below.

 **    **  ********  ********  ********  ******** 
  **  **   **           **        **        **    
   ****    **           **        **        **    
    **     ******       **        **        **    
    **     **           **        **        **    
    **     **           **        **        **    
    **     **           **        **        **    

Message: