• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 251
  • Last Modified:

limit user by squid

i want to limit users in my network by squid.how can i apply this limitation:

if a user want to download a file bigger than 20 MB between 8:00 am - 4:00 pm, it 'speed will be 5000 bytes/s.


thanks for your help.
0
n_f
Asked:
n_f
  • 2
1 Solution
 
DonConsolioCommented:
You can't know for all cases (in advance) how large a download will be.
(i.e. limiting only for 20M+ files won't work with this solution)

for time and speed try using a combination of:
a) time based ACL + b) delay pools

Partial samples for ACL and delay pool configuration
(for mre details read "Squid A User's Guide" at
http://squid-docs.sourceforge.net/latest/html/book1.html

------
a)
acl working_hours time 8:00-16:00

-----
b)
delay_pool_count 1
delay_class 1 3
# 50000 overall limit
# 25000 per-network limit
# 5000 per-user limit
delay_parameters 1 56000/56000 18750/18750 5000/5000
delay_access 1 allow working_hours
0
 
n_fAuthor Commented:
is there any solution for only 20M+ files?
0
 
DonConsolioCommented:
none i know about, because you (almost) never know in advance how large a file you are downloading will be.
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now