[prev in list] [next in list] [prev in thread] [next in thread] 

List:       squid-users
Subject:    Re: [squid-users] Limit Download Manager Session...
From:       Chris Robertson <crobertson () gci ! net>
Date:       2008-05-29 19:53:19
Message-ID: 483F09AF.5050306 () gci ! net
[Download RAW message or body]

tommy@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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic