> From: Ross Kovelman <rkovel...@gruskingroup.com>
> Date: Mon, 12 Oct 2009 11:23:42 -0400
> To: "squid-users@squid-cache.org" <squid-users@squid-cache.org>
> Subject: [squid-users] Lock Out times
> 
> I have this in my config but can not seem to get this to work the way I want
> it to:
> 
> acl workdays time MTWHF 8:30-12:00
> acl workdays time MTWHF 13:30-18:00
> 
> # Block access to banned URLs
> http_access deny bad_url workdays
> # Allow users access on workdays
> http_access allow our_networks workdays
> 
> What this does is lock down the network, but during the times on 12PM-1:30PM
> and then 6PM-8:30AM I want the network wide open including Sat and Sunday.
> Here is my ACL list and http_access list in the config. (Removed protocol
> list)
> 
> acl bad_url dstdomain "/usr/local/squid/etc/bad-sites.squid"
> acl all src 0.0.0.0/0.0.0.0
> acl manager proto cache_object
> acl localhost src 127.0.0.1/32
> acl our_networks src 192.168.16.0/255.255.255.0
> acl to_localhost dst 127.0.0.0/8
> acl workdays time MTWHF 8:30-12:00
> acl workdays time MTWHF 13:30-18:00
> #
> http_access allow localhost
> # Restrict cachemgr access
> http_access allow manager localhost
> http_access deny manager
> # Block access to banned URLs
> http_access deny bad_url workdays
> # Allow users access on workdays
> http_access allow our_networks workdays
> #http_access allow out_networks
> # Deny everything else
> http_access deny all
> # Only allow cachemgr access from localhost
> http_access deny bad_url
> # Deny requests to unknown ports
> http_access deny !Safe_ports
> # Deny CONNECT to other than SSL ports
> http_access deny CONNECT !SSL_ports
> http_reply_access allow all
> icp_access allow all


I just did this which works but:

acl workdays time MTWHF 8:30-12:00
acl free time MTWTF 12:00-13:30
acl workdays time MTWHF 13:30-18:00
#acl free time MTWTF 18:00-24:59
acl free time MTWTF 1:00-8:30

Except I can not get 18:00 to basically 8:30 to be open times.  Any ideas?
1-8:30 works fine.

Thanks

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to