How can I monitor and limit bandwidth? Read description on first post for detailed Q.
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:
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
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! |
Marking packet using iptables and using tc for traffic control can help you in this way. For beginner reference in this direction visit www.linuxinterviews.blogspot.com.
Thanks |
If the post from vishesh does not take you far do a google search for
"linux traffic control" this should get you far. Anyways the link you provided needs a password. bummer. |
Quote:
Quote:
|
if user := ipaddr; then
http://bandwidthd.sourceforge.net/ else put server behind proxy and use proxy stats or go the QoS way |
Quote:
EDIT: chitambira: I noticed bandwidthd before, but that only allows monitoring of the overall network interface (or just traffic to/from a single IP. All clients are on the same IP though...) and not an individual process or all processes owned by a user. |
All times are GMT -5. The time now is 08:09 PM. |