Estou comesando nesse novo mundo do linux
já uso a 2 anos, mais nunca tive interesse de ir a fundo
agora comesei a mecher com o squid
e me deparei com problema com o squid
eu estou tentando fazer duas regras uma que no horario da manha e da tarde
libere somente o sites que estão no arquivo sitesl e o segundo um horario do almoço onde que eu libero quase todos os sites menos as palavras que estão no arquivo negado.txt, soh que apenas consigo aplicar a regra do sitesl.txt nos 3 horarios espero que alguem consiga me ajudar.
http_port 3128
visible_hostname localhost.localdomain
cache_mem 32 MB
maximum_object_size_in_memory 64 KB
maximum_object_size 512 MB
minimum_object_size 0 KB
cache_swap_low 90
cache_swap_high 95
cache_dir ufs /var/spool/squid 2048 16 256
cache_access_log /var/log/squid/access.log
refresh_pattern ^ftp: 15 20% 2280
refresh_pattern ^gopher: 15 0% 2280
refresh_pattern . 15 20% 2280
#Configuração
acl all src 0.0.0.0/0.0.0.0
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 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # https, snews
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 rede_interna src 192.168.1.0/255.255.255.0
acl manha time MTWHF 09:00-12:00
acl almoco time MTWHF 12:00-13:30
acl tarde time MTWHF 13:30-18:00
acl sitesl dstdom_regex -i "/etc/squid/sitesl.txt"
acl negado dstdom_regex -i "/etc/squid/negado.txt"
http_access allow !manha !tarde sitesl
http_access deny !almoco negado
http_access deny all