limit user by squid

Posted on 2005-05-10
Last Modified: 2011-09-20
i want to limit users in my network by 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.
Question by:n_f
    LVL 14

    Accepted Solution

    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

    acl working_hours time 8:00-16:00

    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

    Author Comment

    is there any solution for only 20M+ files?
    LVL 14

    Expert Comment

    none i know about, because you (almost) never know in advance how large a file you are downloading will be.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
    Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now