viniciusst
(usa Slackware)
Enviado em 27/01/2011 - 14:16h
Boa tarde pessoal,
Coloquei o squid aqui no meu serve slackware 13.1.
A principio esta rodando tudo blz. (Algumas vezes os sites ficam lentos, mas depois volta ao normal)
Acontece que alguns sites como facebook, twiiter, etc, nao abrem para quem tem acesso total.
Na verdade, o site ate abre, mas sem css, sem imagem.
Será q alguem pode me ajudar?
Meu squid.conf
http_port 3128 transparent
icp_port 0
htcp_port 0
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
cache_effective_user squid
cache_effective_group squid
visible_hostname srv-secure # Definir nome servidor
cache_dir ufs /var/spool/squid/cache 8100 16 256
cache_mem 512 MB
cache_swap_low 90
cache_swap_high 95
maximum_object_size 30000 KB
# Tamanho maximo dos objetos mantidos em memoria.
maximum_object_size_in_memory 128 KB
ipcache_size 3072
ipcache_low 90
ipcache_high 93
cache_replacement_policy lru
memory_replacement_policy lru
#Estas opções são o padrão do Squid e
#configuram como serão tratados os tempos de vida dos objetos no cache
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern (cgi-bin|\?) 0 0% 0
refresh_pattern . 0 20% 4320
negative_ttl 3 minutes
positive_dns_ttl 5 minutes
half_closed_clients off
cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log /var/log/squid/store.log
cache_swap_log /var/log/squid/swap.log
pid_filename /var/log/squid/squid.pid
error_directory /usr/share/squid/errors/Portuguese
logformat squid %ts.%03tu %6tr %>a %Ss/%03Hs %<st %rm %ru %un %Sh/%<A %mt
acl manager proto cache_object
acl localhost src 127.0.0.1/32
# REDE LOCAL
acl minha_rede src 192.168.1.0/24 ## Mude de acordo com sua rede local
# ACL PORTAS
acl SSL_ports port 443 563
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # 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
# ACL PERMITIDOS #
acl ip_liberados src "/etc/squid/regras/ip_liberados"
acl sites_liberados dstdomain "/etc/squid/regras/sites_liberados"
acl governo dstdomain .gov.br
# ACL PROIBIDOS #
acl sites_proibidos dstdomain "/etc/squid/regras/sites_proibidos"
acl palavras_proibidas url_regex -i "/etc/squid/regras/palavras_proibidas"
## Liberando sua rede local ##
http_access deny all !minha_rede
#http_access allow manager localhost
http_access deny manager
http_access deny all !Safe_ports
http_access deny CONNECT !SSL_ports
#http_access allow localhost
http_access allow ip_liberados
http_access allow sites_liberados
http_access allow governo
http_access deny sites_proibidos
http_access deny palavras_proibidas
# ---- Cache do Windows Update ----
refresh_pattern au.download.windowsupdate.com/.*\.(cab|exe|msi) 10080 100% 43200 reload-into-ims
refresh_pattern download.microsoft.com/.*\.(cab|exe|msi) 10080 100% 43200 reload-into-ims
refresh_pattern msgruser.dlservice.microsoft.com/.*\.(cab|exe|msi) 10080 100% 43200 reload-into-ims
refresh_pattern windowsupdate.com/.*\.(cab|exe|msi) 10080 100% 43200 reload-into-ims
refresh_pattern
www.microsoft.com/.*\.(cab|exe|msi) 10080 100% 43200 reload-into-ims
#Cache avast
refresh_pattern avast.com/.*\.(vpu|cab|stamp|exe) 10080 100% 43200 reload-into-ims
memory_pools off
forwarded_for off
strip_query_terms off
coredump_dir none
detect_broken_pconn on
pipeline_prefetch on
Obrigado.
Vinicius Teixeira