removido
(usa Nenhuma)
Enviado em 09/08/2012 - 15:48h
Boa tarde amigos, estou com problema com o squid.conf do squid3. Eu tinha um conf já completo. Funcionando mas pelo visto muita coisa mudou. Se puderem me ajduar vou postar a saida do erro quando inicio o squid e o squid.conf. Antecipo Agradecimentos.
Starting Squid HTTP Proxy 3.x: squid3Creating Squid HTTP Proxy 3.x cache structure ... (warning).
2012/08/09 15:43:35| WARNING: Netmasks are deprecated. Please use CIDR masks instead.
2012/08/09 15:43:35| WARNING: IPv4 netmasks are particularly nasty when used to compare IPv6 to IPv4 ranges.
2012/08/09 15:43:35| WARNING: For now we will assume you meant to write /24
2012/08/09 15:43:35| cache_cf.cc(363) parseOneConfigFile: squid.conf:21 unrecognized: ';'
2012/08/09 15:43:35| cache_cf.cc(363) parseOneConfigFile: squid.conf:22 unrecognized: ';'
2012/08/09 15:43:35| cache_cf.cc(363) parseOneConfigFile: squid.conf:23 unrecognized: ';'
2012/08/09 15:43:35| cache_cf.cc(363) parseOneConfigFile: squid.conf:24 unrecognized: ';'
2012/08/09 15:43:35| cache_cf.cc(363) parseOneConfigFile: squid.conf:25 unrecognized: ';'
2012/08/09 15:43:35| cache_cf.cc(363) parseOneConfigFile: squid.conf:26 unrecognized: ';'
2012/08/09 15:43:35| cache_cf.cc(363) parseOneConfigFile: squid.conf:28 unrecognized: ';'
2012/08/09 15:43:35| cache_cf.cc(363) parseOneConfigFile: squid.conf:29 unrecognized: ';'
2012/08/09 15:43:35| cache_cf.cc(363) parseOneConfigFile: squid.conf:30 unrecognized: ';'
2012/08/09 15:43:35| cache_cf.cc(363) parseOneConfigFile: squid.conf:31 unrecognized: ';'
2012/08/09 15:43:35| Warning: empty ACL: acl diretoria proxy_auth "/etc/squid3/grupos/diretoria"
2012/08/09 15:43:35| Warning: empty ACL: acl administrativo proxy_auth "/etc/squid3/grupos/administrativo"
2012/08/09 15:43:35| Warning: empty ACL: acl informatica proxy_auth "/etc/squid3/grupos/informatica"
2012/08/09 15:43:35| Warning: empty ACL: acl financeiro proxy_auth "/etc/squid3/grupos/financeiro"
2012/08/09 15:43:35| Warning: empty ACL: acl usuariosMSN proxy_auth
2012/08/09 15:43:35| cache_cf.cc(363) parseOneConfigFile: squid.conf:56 unrecognized: 'update.microsoft.com:443'
2012/08/09 15:43:35| Warning: empty ACL: acl sites_informatica url_regex -i "/etc/squid3/regras/sites_liberados_informatica"
2012/08/09 15:43:35| Warning: empty ACL: acl sites_administrativo url_regex -i "/etc/squid3/regras/sites_liberados_administrativo"
2012/08/09 15:43:35| Warning: empty ACL: acl sites_diretoria url_regex -i "/etc/squid3/regras/sites_liberados_diretoria"
2012/08/09 15:43:35| Warning: empty ACL: acl sites_financeiro url_regex -i "/etc/squid3/regras/sites_liberados_financeiro"
2012/08/09 15:43:35| strtokFile: /etc/squid3/regras/extencoes not found
2012/08/09 15:43:35| Warning: empty ACL: acl extencoes urlpath_regex -i "/etc/squid3/regras/extencoes"
2012/08/09 15:43:35| aclParseAclList: ACL name 'localhost' not found.
FATAL: Bungled squid.conf line 85: http_access allow manager localhost
Squid Cache (Version 3.1.6): Terminated abnormally.
CPU Usage: 0.004 seconds = 0.004 user + 0.000 sys
Maximum Resident Size: 17552 KB
Page faults with physical i/o: 0
2012/08/09 15:43:35| WARNING: Netmasks are deprecated. Please use CIDR masks instead.
2012/08/09 15:43:35| WARNING: IPv4 netmasks are particularly nasty when used to compare IPv6 to IPv4 ranges.
2012/08/09 15:43:35| WARNING: For now we will assume you meant to write /24
2012/08/09 15:43:35| cache_cf.cc(363) parseOneConfigFile: squid.conf:21 unrecognized: ';'
2012/08/09 15:43:35| cache_cf.cc(363) parseOneConfigFile: squid.conf:22 unrecognized: ';'
2012/08/09 15:43:35| cache_cf.cc(363) parseOneConfigFile: squid.conf:23 unrecognized: ';'
2012/08/09 15:43:35| cache_cf.cc(363) parseOneConfigFile: squid.conf:24 unrecognized: ';'
2012/08/09 15:43:35| cache_cf.cc(363) parseOneConfigFile: squid.conf:25 unrecognized: ';'
2012/08/09 15:43:35| cache_cf.cc(363) parseOneConfigFile: squid.conf:26 unrecognized: ';'
2012/08/09 15:43:35| cache_cf.cc(363) parseOneConfigFile: squid.conf:28 unrecognized: ';'
2012/08/09 15:43:35| cache_cf.cc(363) parseOneConfigFile: squid.conf:29 unrecognized: ';'
2012/08/09 15:43:35| cache_cf.cc(363) parseOneConfigFile: squid.conf:30 unrecognized: ';'
2012/08/09 15:43:35| cache_cf.cc(363) parseOneConfigFile: squid.conf:31 unrecognized: ';'
2012/08/09 15:43:35| Warning: empty ACL: acl diretoria proxy_auth "/etc/squid3/grupos/diretoria"
2012/08/09 15:43:35| Warning: empty ACL: acl administrativo proxy_auth "/etc/squid3/grupos/administrativo"
2012/08/09 15:43:35| Warning: empty ACL: acl informatica proxy_auth "/etc/squid3/grupos/informatica"
2012/08/09 15:43:35| Warning: empty ACL: acl financeiro proxy_auth "/etc/squid3/grupos/financeiro"
2012/08/09 15:43:35| Warning: empty ACL: acl usuariosMSN proxy_auth
2012/08/09 15:43:35| cache_cf.cc(363) parseOneConfigFile: squid.conf:56 unrecognized: 'update.microsoft.com:443'
2012/08/09 15:43:35| Warning: empty ACL: acl sites_informatica url_regex -i "/etc/squid3/regras/sites_liberados_informatica"
2012/08/09 15:43:35| Warning: empty ACL: acl sites_administrativo url_regex -i "/etc/squid3/regras/sites_liberados_administrativo"
2012/08/09 15:43:35| Warning: empty ACL: acl sites_diretoria url_regex -i "/etc/squid3/regras/sites_liberados_diretoria"
2012/08/09 15:43:35| Warning: empty ACL: acl sites_financeiro url_regex -i "/etc/squid3/regras/sites_liberados_financeiro"
2012/08/09 15:43:35| strtokFile: /etc/squid3/regras/extencoes not found
2012/08/09 15:43:35| Warning: empty ACL: acl extencoes urlpath_regex -i "/etc/squid3/regras/extencoes"
2012/08/09 15:43:35| aclParseAclList: ACL name 'localhost' not found.
FATAL: Bungled squid.conf line 85: http_access allow manager localhost
Squid Cache (Version 3.1.6): Terminated abnormally.
CPU Usage: 0.004 seconds = 0.004 user + 0.000 sys
Maximum Resident Size: 17568 KB
Page faults with physical i/o: 0
failed!
_______________________________________________________________________________________________
#Squid.conf
acl manager proto cache_object acl localhost src 127.0.0.1/32 acl to_localhost dst 127.0.0.0/8
############## REDE LOCAL #########################
### Aqui ele libera a rede 192.168.0.0/24 para se conectar ao squid ####
acl localnet src 192.168.0.0/255.255.255.0
## Na linha a baixo, ficarao os ips que poderao
## Navegar sem passar pelo proxy
acl ips_sem_senha src 192.168.0.5
############## ACL PORTAS ##############
#acl all src 192.168.0./24
acl SSL_ports port 443
acl Safe_ports port 80 # http
; acl Safe_ports port 21 # ftp
; acl Safe_ports port 25 # SMTP
; 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 autenticacao ##
auth_param basic program /usr/lib/squid3/ncsa_auth /etc/squid/passwd
## Nesta linha a baixo, vc ira informar qual mensagem ira aparecer
## Para o usuario, quando ele abrir o navegador
auth_param basic realm | Proxy Grupo MN - Entre com seu usuario e senha |
auth_param basic credentialsttl 10 hours
auth_param basic children 10
## ACL de GRUPOS ##
acl diretoria proxy_auth "/etc/squid3/grupos/diretoria"
acl administrativo proxy_auth "/etc/squid3/grupos/administrativo"
acl informatica proxy_auth "/etc/squid3/grupos/informatica"
acl financeiro proxy_auth "/etc/squid3/grupos/financeiro"
## ACL de MSN ##
acl usuariosMSN proxy_auth
acl MSN req_mime_type -i ^application/x-msn-messenger$
acl dll_MSN url_regex -i gateway.dll
acl dll2_MSN url_regex -i sqmserver.dll
acl msn_domains dstdomain .msn.com .msn.com:443 .hotmail.com .hotmail.com:443 .live.com .live.com:443 .microsoft.com .microsoft.com:443
#ACL's de update do Windows
acl windows_update dstdomain download.windowsupdate.com download.microsoft.com update.microsoft.com
www.update.microsoft.com:443
update.microsoft.com:443
## ALCs de SITE ##
acl sites_informatica url_regex -i "/etc/squid3/regras/sites_liberados_informatica"
acl sites_administrativo url_regex -i "/etc/squid3/regras/sites_liberados_administrativo"
acl sites_diretoria url_regex -i "/etc/squid3/regras/sites_liberados_diretoria"
acl sites_financeiro url_regex -i "/etc/squid3/regras/sites_liberados_financeiro"
## EXTENCOES BLOQUEADAS ##
acl extencoes urlpath_regex -i "/etc/squid3/regras/extencoes"
## Bloqueando navegadores ##
acl firefox browser Firefox
acl chrome browser Chrome
acl opera browser Opera
hosts_file /etc/hosts
## Mailserver ##
acl mailserver url_regex mailserver
always_direct allow mailserver
http_access allow windows_update
http_access allow msn_domains
http_access allow dll2_MSN
http_access allow dll_MSN usuariosMSN
http_access allow MSN
http_access allow ips_sem_senha
acl pass proxy_auth REQUIRED
http_access allow manager localhost
http_access deny administrativo !sites_administrativo
http_access deny financeiro !sites_financeiro
## Libero tudo da informatica ##
http_access allow informatica
## Libero tudo da diretoria ##
http_access allow diretoria
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost
http_access deny all
icp_access deny all
############## PORTA SQUID ##############
http_port 3128
visible_hostname proxy.xxxxxxx.com.br
hierarchy_stoplist cgi-bin ?
############## LOGS ##############
access_log /var/log/squid3/access.log squid
cache_log /var/log/squid3/cache.log
############## DESEMPENHO/DISCO ##############
cache_mem 512 MB
maximum_object_size_in_memory 8 KB
memory_replacement_policy lru
cache_replacement_policy lru
cache_dir ufs /var/spool/squid3 60000 16 256
### Tamanho maximo do arquivo que ira ser armazenado em cache ###
maximum_object_size 200000 KB
icp_access allow all
______________________________________________________________________________________________
Pra falar a verdade já fuçei tanto que nem sei mais o que está acontecendo. Um abraço!