SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Member
    Join Date
    Aug 2012
    Location
    Delhi
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    how to set bandwidth quota on user in squid server

    hi ,
    i have to set a squid server in which i have to set bandwidth quota on user in linux
    plz help
    thanks in advance...

  2. #2
    #titanic {float:none} silver trophy
    molona's Avatar
    Join Date
    Feb 2005
    Location
    from Madrid to Heaven
    Posts
    8,246
    Mentioned
    240 Post(s)
    Tagged
    1 Thread(s)
    I think that what you want is this presentation (around slide 20)
    ws.edu.isoc.org/data/2006/434715154452f36134ec40/halse-squid-quota.ppt

  3. #3
    SitePoint Member
    Join Date
    Aug 2012
    Location
    Delhi
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks for your advice Mr. Molona, but i want to set bandwidth quota on AD user on monthly basis,
    when they comsumed their bandwidth 90% , i have to send them warning msg/mail. if you have any more idea, plz share with me
    thanks in advance.

  4. #4
    From Italy with love silver trophybronze trophy
    guido2004's Avatar
    Join Date
    Sep 2004
    Posts
    9,501
    Mentioned
    163 Post(s)
    Tagged
    4 Thread(s)
    I've moved the question to a more appropriate forum (I think), so you've got a better chance of getting useful replies.
    Off Topic:

    Quote Originally Posted by Thath Singh View Post
    thanks for your advice Mr. Molona
    It's Miss Molona

  5. #5
    Foozle Reducer ServerStorm's Avatar
    Join Date
    Feb 2005
    Location
    Burlington, Canada
    Posts
    2,699
    Mentioned
    89 Post(s)
    Tagged
    6 Thread(s)
    Hi

    This is a fairly detailed set of steps
    and the full configuration file for creating a limiting pool in Squid.

    Steve
    ictus==""

  6. #6
    SitePoint Member
    Join Date
    Aug 2012
    Location
    Delhi
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hi Steve, thanks for your help and your link clear lots of point abt squid.
    But I have solve this problem as below, if anyone have same problem.

    Check this out, which may help!

    Squid with PAM authentication & Squish
    ********************************
    Squish will be set to run as the download manager for squid, meaning
    that daily, weekly or monthly
    download & time limits can be set on users or IP address.In this
    how-to we will set squid
    to use PAM authenication and limit the montly bandwidth each user has
    with squish. The programs
    used in this guide will be:

    Name: Squish
    HomePage: http://www.ledge.co.za/software/squint/squish/
    Fuction: Total daily/weekly/monthly Bandwidth/Time Manager

    Name: Squid
    HomePage: http://www.squid-cache.org/
    Fuction: proxy caching server for web clients

    Name: Apache
    HomePage: http://www.apache.org/
    Fuction: Webserver

    1. download from http://www.ledge.co.za/software/squint/squish/

    2. unzip into /install/

    3. cd into the folder

    cd /install/squish-0.0.12

    3. make install

    4. then move yourself into the directroy that squish was installed in

    cd/usr/local/squish/

    5. then run the install option on the squish.pl

    ./squish.pl --install

    6. download the GD Graphics Library rpm's from the website below

    http://dag.wieers.com/packages/perl-GD/

    7. and then install it

    rpm -ivh perl-GD-2.30-1.1.fc3.rf.i386.rpm

    8. or you can get the source from http://www.boutell.com/gd/

    9. run the command 'crontab -e' and then input the following into the file

    5,10,15,20,25,30,35,40,45,50,55 * * * * /usr/local/squish/squish.cron.sh

    10. then run the job for the first time

    /usr/local/squish/squish.cron.sh

    Now i'm going to use PAM to authenticate squid.

    11. now we need to edit the '/etc/squid/squid.conf' and add the
    following lines in the right area's

    (in the basic area authentication area)
    auth_param basic program /usr/lib/squid/pam_auth

    (in the acl's area)
    acl pam proxy_auth REQUIRED

    12. at this point you can edit the squid pam module '/etc/pamd.d/squid'

    13. PAM (pluggable authenticate module) can authenticate against
    almost anything, unix, LDAP, winbind. it has many, many uses so look
    into PAM if you think it might be useful for you.

    14. now set the right permissions on /usr/lib/squid/pam_auth

    chmod u+s /usr/lib/squid/pam_auth

    15. now set the squid ACLs to the following.

    # added by squish (begin)
    acl SQUISHLOC dst mc2.fedora.directory.server

    acl SQUISHED1 proxy_auth "/etc/squid/squished"
    deny_info http://ip-address-of-squish-serverr/squish/?squished& SQUISHED1
    http_access allow SQUISHLOC
    http_access allow pam !SQUISHED1
    # added by squish (end)

    16. now set the redirect in the apache configuration file

    'cat /usr/local/squish/apache-squish.conf >> /etc/httpd/conf/httpd.conf'

    17. restart the apache and squid servers now

    '/etc/init.d/squid restart'
    '/etc/init.d/httpd restart'

    18. go to http://ip-address-of-squish-server/squish/squish.cgi

    19. edit the '/etc/squid/squish.conf' to change the download/hours limits

    External Links:

    http://www.ledge.co.za/software/squint/squish/
    http://www.ledge.co.za/software/squint/squish/FAQ


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •