Results 1 to 8 of 8

Thread: Setting Download Limit & Bandwidth Management Using SQUID

  1. #1
    Join Date
    Jan 2010
    Beans
    21

    Question Setting Download Limit & Bandwidth Management Using SQUID

    How to set download limit using SQUID? I want to specify the download limit for a particular list in MB. Is it possible to limit bandwith for some group of machines in network? If so how? Please help..!!!

  2. #2
    Join Date
    Mar 2008
    Location
    Las Vegas
    Beans
    1,148

    Re: Setting Download Limit & Bandwidth Management Using SQUID

    Having never done it you may or may not find this useful. I'm running 2.6 stable 18 and straight out of the squid.conf file it says:
    Code:
    #  TAG: reply_body_max_size	bytes allow|deny acl acl...
    #	This option specifies the maximum size of a reply body in bytes.
    #	It can be used to prevent users from downloading very large files,
    #	such as MP3's and movies. When the reply headers are received,
    #	the reply_body_max_size lines are processed, and the first line with
    #	a result of "allow" is used as the maximum body size for this reply.
    #	This size is checked twice. First when we get the reply headers,
    #	we check the content-length value.  If the content length value exists
    #	and is larger than the allowed size, the request is denied and the
    #	user receives an error message that says "the request or reply
    #	is too large." If there is no content-length, and the reply
    #	size exceeds this limit, the client's connection is just closed
    #	and they will receive a partial reply.
    #
    #	WARNING: downstream caches probably can not detect a partial reply
    #	if there is no content-length header, so they will cache
    #	partial responses and give them out as hits.  You should NOT
    #	use this option if you have downstream caches.
    #
    #	If you set this parameter to zero (the default), there will be
    #	no limit imposed.
    #
    #Default:
    # reply_body_max_size 0 allow all
    Should be easy to implement!
    HTH
    Debian Stable
    FluxBox
    Mark Your Thread Solved

  3. #3
    Join Date
    Jan 2010
    Beans
    21

    Question Re: Setting Download Limit & Bandwidth Management Using SQUID

    I found the line ,

    # reply_body_max_size 0 allow all

    in my configuration file.But value 0 means Unlimited download. I need to setup download limit to 15 MB
    for an Access Control List(ACL).How can I achieve it? Please help..!!

  4. #4
    Join Date
    Mar 2008
    Location
    Las Vegas
    Beans
    1,148

    Re: Setting Download Limit & Bandwidth Management Using SQUID

    According to the description in the comments:
    Code:
    reply_body_max_size 15000000 allow ACL name here
    Debian Stable
    FluxBox
    Mark Your Thread Solved

  5. #5
    Join Date
    Jan 2010
    Beans
    21

    Question Re: Setting Download Limit & Bandwidth Management Using SQUID

    Its working now..!! Thank you so much!!

  6. #6
    Join Date
    Mar 2008
    Location
    Las Vegas
    Beans
    1,148

    Re: Setting Download Limit & Bandwidth Management Using SQUID

    Quote Originally Posted by linuxrockers View Post
    Its working now..!! Thank you so much!!
    Welcome! Perhaps mark the thread as solved for others.
    Debian Stable
    FluxBox
    Mark Your Thread Solved

  7. #7
    Join Date
    Feb 2009
    Beans
    2

    Re: Setting Download Limit & Bandwidth Management Using SQUID

    Hi all,

    I would like to control bandwidth usage for specific application.

    For Example:- If i have 4000kbps of bandwidth, and if some one uses "SKYPE" i could alot a specific bandwidth of 255kbps to it.

    Is there any way out,

    I tried following this,

    http://pcquest.ciol.com/content/linux/103080904.asp

    But no Joy,

    Thanks

    Subhranshu Dwivedi

  8. #8
    Join Date
    Oct 2008
    Beans
    10

    Re: Setting Download Limit & Bandwidth Management Using SQUID

    Changes in 3.x.x. Syntax changed to:
    reply_body_max_size [size unit] [acl]
    allow/deny no longer used.
    Last edited by kashif_max; April 30th, 2012 at 08:53 AM.

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
  •