Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am looking for a torrent client that offers a web interface, and also can limit the monthly ingoing and outgoing traffic. For example, only allowing a set limit of 250GB combined in/outgoing traffic per month. Once this limit has been met, traffic is blocked (or another process is trigged) and a page is displayed starting the limit has been met.

I am currently using Debian Lenny, but I can rebuilt to others.

share|improve this question

migrated from serverfault.com Aug 11 '09 at 7:47

This question came from our site for professional system and network administrators.

    
It would help noting clearly that you do not want a linear shaping over the month but a hard limit that will block torrent traffic at 250GB per month. –  nik Aug 10 '09 at 18:11
1  
Sounds to me like a SuperUser question. –  John Gardeniers Aug 11 '09 at 2:48

4 Answers 4

I'll check this and edit when I get home, but I'd take a look at deluge.

share|improve this answer
    
Unless you have a specific plugin I'm not aware of, no, it can't –  user7963 Sep 15 '09 at 22:58

I've gotta say that I've been very happy the last couple of years using torrentflux-b4rt as my primary torrent client.

And although it doesn't naturally include the monthly transfer limit. However the forum does include a hack on how to add that feature to the program. Which is here.

Hope this helps.

share|improve this answer

I don't think there is a torrent application out there that's web-based and automatically limits bandwidth per month. There is, however, web-based torrent clients that limits bandwidth per torrent (ie. utorrent).

You may need to do that by monitoring the incoming traffic because all of the torrent clients I know of, only do the limiting bandwidth per torrent.

share|improve this answer

I cannot think of a client since have not looked at many.

But, since you are on linux, you could setup a iptables meter on the torrent traffic and script a firewall action after your threshold crossover.

Note that I am not referring to the limiting/shaping control.
But, a slightly more involved trick using iptables, cronjob and some scripting.

  1. Setup metering of the torrent activity with iptables
    • This would be where you need some help from others,
      I have not used iptables as extensively as this would require.
      Maybe, the Owner Match with --uid-owner option will work (limited to OUTPUT chains).
    • If you get this worked out, the other parts should be easy to setup
  2. Setup a cronjob to track the meter (basic scripting)
  3. When the threshold (250GB) is hit,
  4. at the end of your period (month)
    • check if the firewall was activated
      • disable it if so (or restart the client maybe)
    • reset the meters with a -Z command


I have conjured this method just now.
Do not have sufficient data to confirm it will work.
Maybe, some others with more iptables experience will be able validate and add.

Or, there could be an easier way to do this -- with some other tool chain.

Will update further if I get any more ideas.

share|improve this answer
    
That sounds like it would work. I could use --uid-owner with the iptables because the torrent client has it's own system user. Would you be able to show me how to set this up? I can give you my email address if it is easier! Thank you. –  loco41211 Aug 10 '09 at 17:42
1  
Well, this is roughly the same that I've suggested you in my answer[1] to your previous question. I think that using the --quota option would be a lot easier. But of course YMMV and you should experiment with different solutions until you reach the one that works best for you. Best regards, Alex. [1]: serverfault.com/questions/52027/… –  alemartini Aug 10 '09 at 23:20
    
I think the setting up of metering is the difficult part, so I can track the traffic, I will try and look through it though. Thank you for the help so far. –  user4961 Aug 11 '09 at 10:42

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.