Galera estou apanhando feio eu ja uso squid a algum tempo e numca tive
problema com ele em suas configura��es mas desta vez esta dureza, amigos eu
estou tentando implementar autentica��o com ncsa_auth tomando como base o
tour squid ninja mas esta dificil n�o funciona nem batendo com porrete, fiz o
seguinte:
http_port 3128
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
cache_mem 128 MB
cache_swap_low 95
cache_swap_high 98
maximum_object_size 6096 KB
cache_replacement_policy lru
memory_replacement_policy lru
cache_dir ufs /var/cache/squid 1000 16 256
cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log none
pid_filename /var/log/squid/squid.pid
client_netmask 255.255.255.0
dns_nameservers 200.xxx.xxx.xxx 200.xxx.xxx.xxx
hosts_file /etc/hosts
redirect_children 10
auth_param basic program /usr/bin/ncsa_auth /etc/squid/passwd
auth_param basic children 5
auth_param basic realm Digite seu usuario e senha
auth_param basic credentialsttl 2 hours
request_header_max_size 10 KB
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
acl all src 0.0.0.0/0.0.0.0
acl unemat src 192.168.110.0/255.255.255.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 563 10679
acl Safe_ports port 80 # http
acl Safe_ports port 443 563 # https, snews
acl CONNECT method CONNECT
acl porno url_regex "/etc/squid/regras/porno.txt"
acl naoporno url_regex "/etc/squid/regras/naoporno.txt"
acl porn url_regex "/etc/squid/regras/porn.block.txt"
acl noporn url_regex "/etc/squid/regras/porn.unblock.txt"
acl bloqueio url_regex "/etc/squid/regras/bloqueio.txt"
acl arq_pro url_regex -i .*\.mp3$
acl arq_pro url_regex -i .*\.avi$
acl arq_pro url_regex -i .*\.mpeg$
acl arq_pro url_regex -i .*\.mpg$
acl arq_pro url_regex -i .*\.asf$
acl arq_pro url_regex -i .*\.iso$
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access deny bloqueio
http_access deny porno !naoporno
http_access deny porn !noporn
http_access deny arq_pro
http_access allow unemat
http_access deny all
http_reply_access allow all
icp_access allow all
httpd_accel_port 80
httpd_accel_host virtual
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
logfile_rotate 10
error_directory /usr/share/squid/errors/Portuguese
coredump_dir /var/cache/squid
Bom deste geito o squid compartilha a net bloqueia solicita��es de pagina com
url com mais de 10k, bloqueia sites baseado em arquivos e mostra mensagens de
erro em portuga bom se existe algum erro gostaria que alguem me ajudasse pois
tenho que fazer funcionar de qualquer forma ...
--
Cordialmente
_
�v� Rodrigo Ferreira Santos
/(_)\ DII - Divis�o de Intranet e Internet
^ ^ Administrador de Redes
http://www.unemat.br
[EMAIL PROTECTED]
Linux - Uid#308687
��������`����,��,����`����������������`����,�
---------------------------------------------------------------------------
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