[squid-users] Lock Out times

From: Ross Kovelman <rkovelman_at_gruskingroup.com>
Date: Mon, 12 Oct 2009 11:23:42 -0400

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

Received on Mon Oct 12 2009 - 15:23:51 MDT

This archive was generated by hypermail 2.2.0 : Mon Oct 12 2009 - 12:00:03 MDT