Segue meu squid.conf.. qualquer dica é benvinda, http_port 3128 cache_mem 1024 MB maximum_object_size 512 MB minimum_object_size 0 KB cache_dir ufs /var/cache/squid 2048 16 256 cache_access_log /var/log/squid/access.log cache_log /var/log/squid/cache.log cache_store_log none emulate_httpd_log off client_netmask 255.255.255.255 #Default: refresh_pattern ^ftp: 1440 20% 10080 refresh_pattern ^gopher: 1440 0% 1440 refresh_pattern . 0 20% 4320 #Defaults: 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 21 443 563 70 210 1025-65535 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 minharede dst 192.168.1.0/24 acl minharede src 192.168.1.0/24 #Default configuration: http_access allow manager localhost http_access deny manager http_access deny !Safe_ports http_access deny CONNECT !SSL_ports
# acl pra sites direto, nãpassar pelo cache acl NOCACHE url_regex "/etc/squid/direto.txt" \? no_cache deny NOCACHE #Acl para liberar acesso a partir das 08 acl intervalo time M T W H F 06:00-08:00 #acl inter src 192.168.1.27 acl inter src 192.168.1.42 192.168.1.24 192.168.1.29 192.168.1.31 192.168.1.13 192.168.1.25 192.168.1.49 192.168.1.18 192.168.1.17 192.168.1.26 192.168.1.37 192.168.1.162 192.168.1.33 192.168.1.133 192.168.1.22 192.169.1.62 192.168.1.122 192.168.1.54 192.168.1.154 192.168.1.52 192.168.1.19 192.168.1.207 http_access deny intervalo inter # Acl para bloquear por horario acl restric time M T W H F 19:30-23:59 acl restringir src 192.168.1.199 192.168.1.41 192.168.1.36 http_access deny restric restringir acl liber url_regex --i "/etc/squid/libert.txt" http_access allow liber acl acesso_especifico src "/etc/squid/restritos" acl sites_liberados dstdomain "/etc/squid/notafiscal" http_access allow acesso_especifico !sites_liberados # bloqueia maquinas para nao acessarem a internet acl negatudo src 192.168.1.247 192.168.1.3 192.168.1.64 192.168.1.35 192.168.1.5 192.168.1.251 192.168.1.163 192.168.1.34 192.168.1.43 http_access deny negatudo # acl pra bloquear palavras nos endereç e liberar excessõac acl nodownload urlpath_regex -i "/etc/squid/nodown.txt" http_access deny nodownload # acl para bloquear tudo acl teste url_regex --i "/etc/squid/teste.txt" http_access deny teste all http_access allow minharede all http_access deny all cache_mgr [email protected] cache_effective_user proxy cache_effective_group proxy visible_hostname XXXXXXX -- É inutil buscar uma solução, enquanto que a solução está em endireitar o caminho. (Deuzenildo) www.supremavision.com.br --------------------------------------------------------------------------- Esta lista é patrocinada pela Conectiva S.A. Visite http://www.conectiva.com.br Arquivo: http://bazar2.conectiva.com.br/mailman/listinfo/linux-br Regras de utilização da lista: http://linux-br.conectiva.com.br FAQ: http://www.zago.eti.br/menu.html
