Re: [squid-users] Limit Download Manager Session...

From: Chris Robertson <crobertson_at_gci.net>
Date: Thu, 29 May 2008 11:53:19 -0800

tommy_at_openbsd.or.id wrote:
> Dear All...
>
> How to limiting the download manager session in Squid? I have the
> problem for that case. I wanna limit only 2 download session in every
> download manager that connected to my Squid box.
> My configuration like this :
>
> acl koneksi maxconn 2
> acl TIME-03 time SMTWHFA 00:00-07:59
> acl download-01 url_regex -i \.msi$ \.mar$ \.cab$ \.exe$ \.mp3$ \.mp4$
> \.tar.gz$ \.gz$ \.tar.bz2$ \.bz2$ \.tar$ \.rpm$ \.z$ \.wmz$ \.zip$
> \.rar$ \.avi$ \.mpg$ \.mpeg$ \.rm$ \.iso$ \.wav$ \.mov$ \.da
> t$ \.mpe$ \.mid$ \.midi$ \.rmi$ \.wma$ \.wmv$ \.ogg$ \.ogm$ \.m1v$
> \.mp2$ \.mpa$ \.wax$ \.m3u$ \.asx$ \.wpl$ \.wmx$ \.dvr-ms$ \.snd$
> \.au$ \.aif$ \.asf$ \.m2v$ \.m2p$ \.ts$ \.tp$ \.trp$ \.div$ \.div
> x$ \.mod$ \.vob$ \.aob$ \.dts$ \.ac3$ \.cda$ \.vro$ \.deb$ \.wmv$ \.flv$ \.rm$
>
>
> delay_class 7 1
> delay_parameters 7 1000/1000
> delay_access 7 allow koneksi download-01 TIME-03
>

This will delay the download of a url ending in any of the above
strings, between midnight and 08:00, if there are more than two
concurrent connections from the given IP. This pool will not take
effect for a normal browser downloading a matching file during the given
time period.

> delay_access 7 deny all
>
> The ACL TIME-03, ACL download-01, already running well. But the ACL
> koneksi, cannot working properly. Something wrong in my configuration?
>

If you want to limit clients to two connections, use "http_access deny
koneksi".

> Please help me.
>
> Thanks in Advance,
>
> Tommy
>

Chris
Received on Thu May 29 2008 - 19:53:53 MDT

This archive was generated by hypermail 2.2.0 : Tue Aug 05 2008 - 01:05:14 MDT