Re: [squid-users] How to control download banwidth
> > --- Amos Jeffries <[EMAIL PROTECTED]> wrote: > >> >> False. ACLs are only limited by whether their info >> is available or not >> (requests don't have reply details etc.). >> > > well this shines me a little bit, but what if > the scenario like this: > > -- snips -- > acl netA src 192.168.0.0/24 > acl netB src 192.168.2.0/24 > acl two maxconn 2 > acl flashvids url_regex -i \.flv$ > > http_access deny netA two flashvids > http_access allow netA > http_access allow netB > http_access deny all > -- snips -- > > can it works at http_access or it only at delay_pool ? Anything which accepts ACL. The general ones are in the config listed under 'Access Controls' and usually at least one for each distinct component in squid (like delay_access, controlling what the component affects and what it does not) . http://www.squid-cache.org/Versions/v2/2.7/cfgman/ http://www.squid-cache.org/Versions/v3/3.0/cfgman/ Details on individual ACL types and whether they apply to requests, replies > main goal is of course reject any excess connection ( > more than 2 connection ) from netA to any url contain > .flv ( .. assuming he/she downloading it ) Your config: http_access deny netA two flashvids would do exactly what you describe. Amos
Re: [squid-users] How to control download banwidth
--- Amos Jeffries <[EMAIL PROTECTED]> wrote: > > False. ACLs are only limited by whether their info > is available or not > (requests don't have reply details etc.). > well this shines me a little bit, but what if the scenario like this: -- snips -- acl netA src 192.168.0.0/24 acl netB src 192.168.2.0/24 acl two maxconn 2 acl flashvids url_regex -i \.flv$ http_access deny netA two flashvids http_access allow netA http_access allow netB http_access deny all -- snips -- can it works at http_access or it only at delay_pool ? main goal is of course reject any excess connection ( more than 2 connection ) from netA to any url contain .flv ( .. assuming he/she downloading it ) thank's -Agung-
Re: [squid-users] How to control download banwidth
Agung T. Apriyanto wrote: --- Amos Jeffries <[EMAIL PROTECTED]> wrote: Usually used with maxconn ACL to limit people using too many seperate connections. Gozilla for example opens 3+ HTTP requests for different parts of the same object... Amos -- Please use Squid 2.7.STABLE1 or 3.0.STABLE6 afaik, maxconn only limit based on source ip connection, right ? it can't be used with other types of acl. False. ACLs are only limited by whether their info is available or not (requests don't have reply details etc.). The maxconn (as you say requires request source IP) so is available on all connections at all times. Thus any access control is able to use it. perhaps it would be nice feature if it can be combined with .. let's say some regex of acl multimedia type. it would be easier to manage some partial content download. It can: acl two maxconn 2 acl flashvids rep_mime_type -i video/flv ... (other delay pool #1 setup) delay_access 1 allow two flashvids Amos -- Please use Squid 2.7.STABLE1 or 3.0.STABLE6
Re: [squid-users] How to control download banwidth
--- Amos Jeffries <[EMAIL PROTECTED]> wrote: > Usually used with maxconn ACL to limit people using > too many seperate > connections. Gozilla for example opens 3+ HTTP > requests for different > parts of the same object... > > Amos > -- > Please use Squid 2.7.STABLE1 or 3.0.STABLE6 > afaik, maxconn only limit based on source ip connection, right ? it can't be used with other types of acl. perhaps it would be nice feature if it can be combined with .. let's say some regex of acl multimedia type. it would be easier to manage some partial content download. just my 2 cent, cmiiw -Agung-
Re: [squid-users] How to control download banwidth
Mr Crack wrote: I setup squid at many Cyber cafe; The performnace is normal. but the following problem occurs. If one of the users download large files with download manager e.g. IDM, Free Download managers, . the whole Internet cafe speed becomes very slow. I have set download limit policies but it is not suitable all the time. There are many situations user need to download more than download limit. I can solve this problem if i can control download bandwidth so that they cannot take the whole Internet bandwidth if they download with IDM, FDM, Gozilla ... Any can help me with example delay_pool - limit download speeds. Can be set such that up to a limit the speed is unlimited, then for larger downloads the speed gets dropped. Usually used with maxconn ACL to limit people using too many seperate connections. Gozilla for example opens 3+ HTTP requests for different parts of the same object... Amos -- Please use Squid 2.7.STABLE1 or 3.0.STABLE6