legalnet
(usa KUbuntu)
Enviado em 04/10/2011 - 13:00h
Boa tarde.
Pessoal, estou com um problema onde meu squid nao esta liberando por horario.
Alguem poderia me ajudar please.
http_port 192.168.0.1:145 transparent
cache_mem 256 MB
cache_dir ufs /var/spool/squid 2048 16 256
cache_access_log /var/log/squid3/access.log
cache_log /var/log/squid3/cache.log
cache_store_log /var/log/squid3/store.log
pid_filename /var/run/squid.pid
error_directory /usr/share/squid/errors/Portuguese
emulate_httpd_log on
visible_hostname Proxy
maximum_object_size_in_memory 1024 KB
maximum_object_size 700 MB
minimum_object_size 1 KB
cache_swap_low 90
cache_swap_high 95
refresh_pattern ^ftp: 15 20% 2280
refresh_pattern ^gopher: 15 0% 2280
refresh_pattern . 15 20% 2280
acl all src 0.0.0.0/0.0.0.0
acl redelocal src 192.168.0.0/32
acl blockedsites url_regex -i "/etc/squid/block.txt"
acl unblockedsites url_regex "/etc/squid/unblock.txt"
#Liberar por horario
#acl noite time 19:00-07:59
#acl manha time 08:00-11:59
#acl almoco time 12:00-12:59
#acl tarde time 13:00-18:59
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl SSL_ports port 443 563
acl Safe_ports port 21 80 443 563 70 210 280 488 59 777 901 1025-65535
acl ip_liberado src "/etc/squid/ip_liberado.txt"
acl trava_msn_orkut url_regex -i "/etc/squid/trava_msn_orkut.txt"
acl purge method PURGE
acl CONNECT method CONNECT
http_access allow localhost
#Liberar por horario
#http_access allow manha
#http_access allow almoco
#http_access allow tarde
#http_access allow noite
http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access deny !Safe_ports
http_access allow ip_liberado
http_access deny trava_msn_orkut
http_access deny CONNECT !SSL_ports
#http_access allow localhost
#http_access allow redelocal
http_access deny blockedsites !unblockedsites
http_access allow all