Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

i am maintaining few windows xp machines under rhel 5 . i want to set quota for download file size. How to do it ?

I mean, in lan usar A's maximum donload file size is 300 MB , and user B's maximum download file size in 200 MB. I want to block downloading when user try to download more than 300 MB file.User should not allow to download 300MB file at a time.

Or how to set quota for maximum download per day, is there possible to do it ?

  • How can i do this ?
share|improve this question
    
Are you running any kind of proxy currently? Does it need to run on the RHEL server? Windows Domain? –  LukeR Jan 21 '10 at 4:30

1 Answer 1

up vote 1 down vote accepted

As for Linux NAT only solution (i.e. no proxy), you could use connbytes iptables rule to track maximum number of bytes transferred through one TCP connection; for daily quota you could setup some set of rules (one per ip-address) using the 'quota' rule. However, since the HTTP connection can pack many downloads into one connections, it may not be reliable. To get something better, you would have to use HTTP proxy - e.g. squid can limit the maximum size of the resulting file.

share|improve this answer
    
Can you please tell how can i do it by squid ? any links ? –  Kumar Jan 21 '10 at 9:23
    
Google for "squid delay pools". –  Anonymous Mar 27 '10 at 11:22

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.