Re: [squid-users] Acl Time and Protocol

From: Simon White <simon@dont-contact.us>
Date: Thu, 2 May 2002 13:12:02 +0000

02-May-02 at 09:29, fefi@ig.com.br (fefi@ig.com.br) wrote :
> Hello Squiders....
>
> I would like to limit some users to use FTP during the morning and
> afternoon. Would the right configuration be:
>
> acl rionet src 121.200.200.0/255.0.0.0
> acl morning time 08:30-12:30
> acl afternoon time 13:30-18:30
> acl wholeday time 06:00-05:59
> acl proto-FTP protocol FTP
> acl proto-HTTP protocol HTTP
> #Allow access to our local network by time period and protocol
> http_access deny rionet proto-FTP morning
> http_access deny rionet proto-FTP afternoon
> http_access allow rionet proto-FTP wholeday
> http_access allow rionet proto-HTTP wholeday
> http_access allow rionet
> http_access allow localhost
>

You don't need to define wholeday. I would do it like this:

http_access allow rionet proto-FTP !morning !afternoon
http_access allow rionet
http_access allow localhost

And you're done.

-- 
[Simon White. vim/mutt. simon@mtds.com. GIMPS:99.49% see www.mersenne.org]
           /"\    ASCII Ribbon Campaign
           \ /    Respect for open standards
            X     No HTML/RTF in email
           / \    No M$ Word docs in email
Received on Thu May 02 2002 - 07:12:06 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:07:52 MST