On 1/9/06, [EMAIL PROTECTED]@cus <[EMAIL PROTECTED]> wrote:
>  hi guys,
>  my proxy is working perfectly. i just want to limit the download time to a
> certain hours, so it wont interfere with others doing some browsing and
> researching.

>  8am-5pm - no download for .exe, .mp3, .avi etc...
>  can you please give a sample ?

## part of my squid.conf

<snip>
delay_pools 2

delay_class 1 2
delay_parameters 1 -1/-1 16000/16000
acl teksup src 192.168.0.91-192.168.0.254
delay_access 1 allow teksup withlimittime

# clientpcs - limited to 48KB, max 64KB
delay_class 2 2
delay_parameters 2 -1/-1 32000/64000
acl clientpc src 192.168.0.1-192.168.0.61
delay_access 2 allow clientpc withlimittime
</snip>

## and here's an example of  what squidclient reports via
squidclient mgr:delay

<snip>
Pool: 2
        Class: 2

        Aggregate:
                Disabled.

        Individual:
                Max: 64000
                Rate: 32000
                Current: 8:64000 14:64000 13:50362 9:64000

</snip>

## squid version:

Version     : 2.5.STABLE6                       Vendor: CentOS
Release     : 3.4E.9                        Build Date: Wed 15 Jun
2005 04:45:21 AM PHT

i can't make the schduling work  properly using squid alone. I have
two config files, named
squid.conf.withlimit and squid.conf.nolimit. then i have a script that
is run by cron
every 11:00 pm to switch to the unlimited configuration and then by
6:00 AM to the
limited config - which overwrites squid.conf and then reloading squid.

i don't have any limiting based on file types so you might try
googling around for
an example.

hth.

>  tia

erik

--
roderick e. tapang, nclp
retapang at gmail dot com

(o_.'       http://counter.li.org/
//\         ----------------------
V_/_        Linux User   #  253842
_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
[email protected] (#PLUG @ irc.free.net.ph)
Read the Guidelines: http://linux.org.ph/lists
Searchable Archives: http://archives.free.net.ph

Reply via email to