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

squid cannot get ACL to work



Hi,
 I have my config something like this
 I am not sure what I am doing wrong but squid does allow access
during all hours irrespective of the allowedtime acl

below is my squid conf in full. Can someone help please by telling me
what am I doing wrong ? I am guessing squid uses the same serially
parsing the ACL like what iptables does.

--------------------------
acl manager proto cache_object
acl localnet src 192.168.8.0/24  # local network
acl localhost src 127.0.0.1/32
acl allowedtime time SMTWHFA 10:00-17:00
acl SSL_ports port 443
acl Safe_ports port 80          # http
acl Safe_ports port 21          # ftp
acl Safe_ports port 443         # https
acl Safe_ports port 70          # gopher
acl Safe_ports port 210         # wais
acl Safe_ports port 1025-65535  # unregistered ports
acl Safe_ports port 280         # http-mgmt
acl Safe_ports port 488         # gss-http
acl Safe_ports port 591         # filemaker
acl Safe_ports port 777         # multiling http
acl CONNECT method CONNECT
acl SSL method CONNECT
acl access_to_secureonly  url_regex  "/etc/squid3/secure-only.txt"


http_access deny !Safe_ports
http_access deny access_to_secureonly
http_access deny CONNECT !SSL_ports
http_access allow localhost manager
http_access deny manager
http_access allow localhost
http_access allow localnet allowedtime
http_access deny localnet
http_access deny all

http_port 192.168.8.107:3128
debug_options ALL,1
coredump_dir /var/spool/squid3
refresh_pattern ^ftp:           1440    20%     10080
refresh_pattern ^gopher:        1440    0%      1440
refresh_pattern -i (/cgi-bin/|\?) 0     0%      0
refresh_pattern .               0       20%     4320
via off
forwarded_for transparent


Reply to: