Squid 3 [RESOLVIDO]

1. Squid 3 [RESOLVIDO]

Renan Casini
renancasini

(usa Outra)

Enviado em 16/04/2014 - 21:29h

Boa noite Senhores..



Estou com o um problema com meu Squid.

Tudo começou quando desinstalei a Versão 2.7 e passei para a versao 3.1

Toda pagina que acesso retorna:

ERROR

The requested URL could not be retrieved

The following error was encountered while trying to retrieve the URL: /squid-reports

URL inválida

Some aspect of the requested URL is incorrect.

Some possible problems are:

Protocolo de acesso incorreto ou faltando (deve ser http:// ou similar)

Faltou o hostname

Illegal double-escape in the URL-Path

Hostname com caracter inválido; não são permitidos underscores.

Your cache administrator is .


Generated Thu, 17 Apr 2014 00:21:20 GMT by Redes (squid/3.1.20)



Segue meu Squid.conf




##squid.conf

##### Porta do Squid####
http_port 3128

visible_hostname Debian Firewall
hierarchy_stoplist cgi-bin?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY

#### Memoria Cache em Megas####
cache_mem 2048 MB

cache_swap_low 80
cache_swap_high 95

#### Pasta do Cache Usando 100 GB do disco para cache####
cache_dir aufs /var/spool/squid3/1/ 512000 200 256
cache_dir aufs /var/spool/squid3/2/ 512000 200 256
cache_dir aufs /var/spool/squid3/3/ 512000 200 256
cache_dir aufs /var/spool/squid3/4/ 512000 200 256

maximum_object_size 512000 KB
maximum_object_size_in_memory 61440 KB
minimum_object_size 1 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 .com.br
memory_pools off

refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern (cgi-bin|\?) 0 0% 0
refresh_pattern . 120 80% 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





error_directory /usr/share/squid3/errors/Portuguese/

#Cache de Fotos
refresh_pattern -i \.jpg$ 0 50% 21600 reload-into-ims
refresh_pattern -i \.gif$ 0 50% 21600 reload-into-ims
refresh_pattern -i \.png$ 0 50% 21600 reload-into-ims
refresh_pattern -i \.jpeg$ 0 50% 21600 reload-into-ims
refresh_pattern -i \.bmp$ 0 50% 21600 reload-into-ims
refresh_pattern -i \.tif$ 0 50% 21600 reload-into-ims
refresh_pattern -i \.tiff$ 0 50% 21600 reload-into-ims
refresh_pattern -i \.swf$ 0 50% 21600 reload-into-ims
refresh_pattern -i \.exe$ 0 50% 21600 reload-into-ims
refresh_pattern -i \.php$ 0 20% 1440 reload-into-ims
refresh_pattern -i \.html$ 0 20% 1440 reload-into-ims
refresh_pattern -i \.htm$ 0 20% 1440 reload-into-ims
refresh_pattern -i \.shtml$ 0 20% 1440 reload-into-ims
refresh_pattern -i \.shtm$ 0 20% 1440 reload-into-ims

# Cache De videos
refresh_pattern -i \.(mp3|mp4|m4a|ogg|mov|avi|wmv|flv)$ 999999 100% 999999 ignore-no-cache override-expire ignore-private

# Cache do Windows Update
refresh_pattern au.download.windowsupdate.com/.*\.(cab|exe|dll|msi|psf) 999999 100% 43200 reload-into-ims
refresh_pattern download.microsoft.com/.*\.(cab|exe|dll|msi|psf) 999999 100% 43200 reload-into-ims
refresh_pattern msgruser.dlservice.microsoft.com/.*\.(cab|exe|dll|msi|psf) 999999 100% 43200 reload-into-ims
refresh_pattern windowsupdate.com/.*\.(cab|exe|dll|msi|psf) 999999 100% 43200 reload-into-ims
refresh_pattern download.windowsupdate.com/.*\.(cab|exe|dll|msi|psf) 999999 100% 43200 reload-into-ims
refresh_pattern update.microsoft.com/.*\.(cab|exe|dll|msi|psf) 999999 100% 43200 reload-into-ims
refresh_pattern ctldl.windowsupdate.com/.*\.(cab|exe|dll|msi|psf) 999999 100% 43200 reload-into-ims
refresh_pattern crl.microsoft.com/.*\.(cab|exe|dll|msi|psf) 999999 100% 43200 reload-into-ims
refresh_pattern sqm.microsoft.com/.*\.(cab|exe|dll|msi|psf) 999999 100% 43200 reload-into-ims
refresh_pattern watson.microsoft.com/.*\.(cab|exe|dll|msi|psf) 999999 100% 43200 reload-into-ims
refresh_pattern go.microsoft.com/.*\.(cab|exe|dll|msi|psf) 999999 100% 43200 reload-into-ims
refresh_pattern microsoft.com/.*\.(cab|exe|dll|msi|psf) 999999 100% 43200 reload-into-ims
refresh_pattern msftncsi.com/.*\.(cab|exe|dll|msi|psf) 999999 100% 43200 reload-into-ims
refresh_pattern stats1.update.microsoft.com/.*\.(cab|exe|dll|msi|psf) 999999 100% 43200 reload-into-ims


#Cache Java ( Faz cache do Java ) ##
refresh_pattern sdlc-esd.sun.com/.*\.(cab|exe|dll|msi) 999999 100% 43200 reload-into-ims
refresh_pattern javadl-esd.sun.com/.*\.(cab|exe|dll|msi) 999999 100% 43200 reload-into-ims
refresh_pattern javadl.oracle.com/.*\.(cab|exe|dll|msi) 999999 100% 43200 reload-into-ims
refresh_pattern rps-svcs.sun.com/.*\.(cab|exe|dll|msi) 999999 100% 43200 reload-into-ims


#Cache atulizacao avira ( Faz cache do Avira ) ##
refresh_pattern personal.avira-update.com/.*\.(cab|exe|dll|msi|gz) 999999 100% 43200 reload-into-ims

#Cache atualizacao symantec
refresh_pattern liveupdate.symantecliveupdate.com/.*\.(cab|exe|dll|msi) 999999 100% 43200 reload-into-ims
refresh_pattern symantecliveupdate.com/.*\.(cab|exe|dll|msi) 999999 100% 43200 reload-into-ims

#Cache avast
refresh_pattern avast.com/.*\.(vpu|cab|stamp|exe) 999999 100% 43200 reload-into-ims
refresh_pattern x2486472.ivps9x.u.avast.com/.*\.(vpu|cab|stamp|exe) 999999 100% 43200 reload-into-ims
refresh_pattern h3565960.ivps9x.u.avast.com/.*\.(vpu|cab|stamp|exe) 999999 100% 43200 reload-into-ims
refresh_pattern r2493514.ivps9x.u.avast.com/.*\.(vpu|cab|stamp|exe) 999999 100% 43200 reload-into-ims
refresh_pattern x8761469.iavs9x.u.avast.com/.*\.(vpu|cab|stamp|exe) 999999 100% 43200 reload-into-ims
refresh_pattern j7434223.iavs9x.u.avast.com/.*\.(vpu|cab|stamp|exe) 999999 100% 43200 reload-into-ims
refresh_pattern y7292228.ivps9x.u.avast.com/.*\.(vpu|cab|stamp|exe) 999999 100% 43200 reload-into-ims
refresh_pattern z0183749.ivps9x.u.avast.com/.*\.(vpu|cab|stamp|exe) 999999 100% 43200 reload-into-ims
refresh_pattern c0307764.ivps9x.u.avast.com/.*\.(vpu|cab|stamp|exe) 999999 100% 43200 reload-into-ims
refresh_pattern x9942723.iavs9x.u.avast.com/.*\.(vpu|cab|stamp|exe) 999999 100% 43200 reload-into-ims
refresh_pattern t0964766.iavs9x.u.avast.com/.*\.(vpu|cab|stamp|exe) 999999 100% 43200 reload-into-ims
refresh_pattern w2416805.ivps9x.u.avast.com/.*\.(vpu|cab|stamp|exe) 999999 100% 43200 reload-into-ims
refresh_pattern ai.ff.avast.com/.*\.(vpu|cab|stamp|exe) 999999 100% 43200 reload-into-ims
refresh_pattern eu.ff.avast.com/.*\.(vpu|cab|stamp|exe) 999999 100% 43200 reload-into-ims
refresh_pattern su.ff.avast.com/.*\.(vpu|cab|stamp|exe) 999999 100% 43200 reload-into-ims
refresh_pattern program.avast.com/.*\.(vpu|cab|stamp|exe) 999999 100% 43200 reload-into-ims
refresh_pattern vl.ff.avast.com/.*\.(vpu|cab|stamp|exe) 999999 100% 43200 reload-into-ims
refresh_pattern an.avast.com/.*\.(vpu|cab|stamp|exe) 999999 100% 43200 reload-into-ims
refresh_pattern v7.stats.avast.com/.*\.(vpu|cab|stamp|exe) 999999 100% 43200 reload-into-ims
refresh_pattern static.avast.com/.*\.(vpu|cab|stamp|exe) 999999 100% 43200 reload-into-ims
refresh_pattern emupdate.avast.com/.*\.(vpu|cab|stamp|exe) 999999 100% 43200 reload-into-ims

# Definicao das ACLs
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.30.0/24
#acl lan src 172.18.28.0/24 # Assim como neste exemplo, se vocêtiver mais de uma rede, deve ser expressada uma por uma

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 Safe_ports port 407 # msn
acl Safe_ports port 587 # smtp
acl Safe_ports port 110 # pop
acl purge method PURGE
acl CONNECT method CONNECT

# Downloads Bloqueados/Liberados e Palavras Bloqueadas
acl DownloadsLiberados url_regex -i "/etc/squid3/downloads.allow"
acl DownloadsBloqueados url_regex -i "/etc/squid3/downloads.deny"
acl PalavrasBloqueadas url_regex -i "/etc/squid3/palavras.deny"

# Sites Bloqueados/Liberados
acl SitesLiberados url_regex -i "/etc/squid3/sites.allow"
acl SitesBloqueados url_regex -i "/etc/squid3/sites.deny"

# Grupos de Acesso
acl Diretoria src "/etc/squid3/ip.diretoria"
acl Gerencia src "/etc/squid3/ip.gerencia"
acl Funcionarios src "/etc/squid3/ip.funcionarios"

# Ativando as ACLs Padrao
http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost
http_access deny to_localhost

# Ativando as ACLs Personalizadas
http_access allow Diretoria
http_access allow SitesLiberados
http_access allow DownloadsLiberados
http_access deny DownloadsBloqueados
http_access allow Gerencia !SitesBloqueados
http_access deny PalavrasBloqueadas
http_access deny SitesBloqueados
http_access allow Funcionarios
http_access allow vlan24
http_access deny all






Alguem tem ideia do que possa ser???




Agradeço desde já...


  


2. Re: Squid 3 [RESOLVIDO]

Renan Casini
renancasini

(usa Outra)

Enviado em 16/04/2014 - 21:53h

Encontrei a solução.


Para funcionar Transparente precisa dessa linha:


http_port 192.168.1.1:3128 transparent


Resolvido..!!!






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts