andrectga
(usa Debian)
Enviado em 11/09/2012 - 12:10h
ola galera, estou tendo um problema com o proxy, ele tava funcionando beleza, mas agora ele esta dando alguns problemas no carregamento de algumas paginas, por exemplo quando faço uma consulta no spc e também quando logo no hotmail, o navegador retorna a seguinte mensagem "Não é possível carregar a página da web porque o servidor não enviou os dados."
Segui configuração do Squid:
http_port 3128
cache_mem 900 MB
cache_swap_low 90
cache_swap_high 95
cache_dir ufs /var/spool/squid3 3000 16 256
maximum_object_size 100 MB
maximum_object_size_in_memory 0 KB
access_log /var/log/squid3/access.log squid
cache_log /var/log/squid3/cache.log
cache_store_log /var/log/squid3/store.log
pid_filename /var/log/squid3/squid3.pid
mime_table /usr/share/squid3/mime.conf
cache_mgr sudporte@viacom.net.br
memory_pools off
diskd_program /usr/lib/squid3/diskd
unlinkd_program /usr/lib/squid3/unlinkd
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern (cgi-bin|\?) 0 0% 0
refresh_pattern . 0 20% 4320
quick_abort_max 16 KB
quick_abort_pct 95
quick_abort_min 16 KB
request_header_max_size 20 KB
reply_header_max_size 20 KB
request_body_max_size 0 KB
acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/8
acl vlan24 src 192.168.170.0/24 # Representa a sua rede e respectiva máscara de sub-rede
acl lan src 10.1.12.0/24
acl lan src 10.1.20.0/24
acl lan src 10.1.30.0/24
acl lan src 10.1.40.0/24
acl lan src 10.1.50.0/24
acl lan src 10.1.60.0/24
acl lan src 10.1.70.0/24
acl lan src 10.1.80.0/24
acl lan src 10.1.90.0/24
acl lan src 10.1.100.0/24
acl lan src 10.1.130.0/24
acl lan src 10.1.140.0/24
acl lan src 10.1.150.0/24
acl lan src 10.1.160.0/24
acl SSL_ports port 443 563
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 1863 # 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
###acesso total###
acl ipslib src "/etc/squid3/acls/ipslib"
###msn liberado###
acl ipsmsn src "/etc/squid3/acls/ipsmsn"
###sites liberados###
acl sites_lib dstdomain /etc/squid3/acls/sites_lib
###palavras liberadas###
acl palavras_lib url_regex -i "/etc/squid3/acls/palavras_lib"
###Libera Apenas SPC###
acl spc dstdomain /etc/squid3/acls/spc
###Ips para acessar apenas o spc###
acl ips-spc src "/etc/squid3/acls/ips-spc"
###sites proibidos###
acl sites_bloq dstdomain /etc/squid3/acls/sites_bloq
###palavras proibidas###
acl palavras_bloq url_regex -i "/etc/squid3/acls/palavras_bloq"
###bloqueia msn###
acl msn_bloq url_regex -i "/etc/squid3/acls/msn_bloq"
###Bloqueia Gtalk###
acl gtalk dstdomain /etc/squid3/acls/gtalk
##################################
http_access allow ipslib
##################################
http_access allow sites_lib
##################################
http_access allow palavras_lib
##################################
http_access deny msn_bloq !ipsmsn
##################################
http_access deny sites_bloq
##################################
http_access deny palavras_bloq
####################################
http_access deny ips-spc !spc
####################################
http_access allow gtalk !ips-spc
####################################
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow vlan24
http_access allow lan
cache_mgr webmaster
mail_program mail
cache_effective_user proxy
cache_effective_group proxy
httpd_suppress_version_string off
visible_hostname ciclista
error_directory /usr/share/squid3/errors/Portuguese/
emulate_httpd_log on