I have looked all over the place and from the advice of others I have come to the conclusion it would be best to use
iptables for this.
The problem:
I have a dedicated server running debian. On this server I want to run torrent clients. Which one to use I don't mind at all, as long as it meets the requirements. What I want is:
- To monitor diskspace used per user (many possible solutions for this)
- To monitor the bandwidth used per user (what I am stuck on!)
- Once this bandwidth threshold (example 250GB total traffic) is hit, another script is triggered.
On the current set up,
for each user who has access to the client a unix account is created. This account starts it's own torrent client relative to the user and the userdir. Using quota the disk space usage can be tracked and limited.
How would I go about tracking the monthly traffic (outgoing and incoming) per user (or per process by pid number?). There must be some way to do this... I can't work it out, and it might be since my iptables knowledge isn't the greatest!
Possible solutions so far:Will be updated as we go along- The idea posted by a user here: LINK But I need help on setting something like that up. Password for link is
If you have any ideas please let me know, I will be tracking this topic as I need to solve this asap... Thanks in advance!