Search squid archive

Lock Out times

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

<<attachment: smime.p7s>>


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux