fernandopinheiro
(usa Debian)
Enviado em 22/02/2016 - 11:41h
Olá pessoal, tenho alguns problemas na configuração do meu squid, alguem poderia me ajudar??
Squid3 versão 3.3.8 no Ubuntu server 14.04 LTS
Arquivo squid. conf:
http_port 3128 transparent
#----------------- MNHAS ACLS -----------------------------------------#
acl ip src 192.0.0.0/8
acl ips_liberados_site src "/etc/squid3/lista/ips-liberados-site"
acl ips_liberados_download src "/etc/squid3/lista/ips-liberados-download"
acl urls_bloqueadas url_regex -i "/etc/squid3/lista/url-block"
acl extensoes_bloqueadas url_regex -i "/etc/squid3/lista/ext-block"
acl ips_bloqueados src "/etc/squid3/lista/ips-block"
acl localhost src 127.0.0.1/32
acl localnet src 192.168.0.0/24
#-------------------- ACLS DO SQUID ----------------------------#
acl SSL_ports port 443
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
#------------------ PERMISSOES DO SQUID ------------------------#
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost manager
http_access deny manager
http_access allow localhost
http_access deny ip
http_access deny ips_bloqueados
http_access deny urls_bloqueadas
http_access deny extensoes_bloqueadas
http_access allow ips_liberados_site
http_access allow ips_liberados_download
http_access deny all
#------------ PERMITE TAMANHO MAXIMO DE DOWNLOAD DE 2MB EXCETO PARA ACL IPS LIBERADOS -----#
reply_body_max_size 20971520 deny ip !ips_liberados_download
#------------- CONFIGURACOES GERAIS DE LOGS E OUTRAS -------#
cache_mem 1024 MB
cache_swap_low 90
cache_swap_high 95
#cache_dir ufs /var/cache/squid3 100 16 256 Se deixar essa linha da pau
coredump_dir /var/spool/squid3
cache_mgr informatica@informatica.com.br
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern (Release|Packages(.gz)*)$ 0 20% 2880
refresh_pattern . 0 20% 4320
access_log /var/log/squid3/access.log squid
cache_log /var/log/squid3/cache.log
cache_store_log /var/log/squid3/store.log
error_directory /usr/share/squid/errors/Portuguese
#-----------------------------FIM DO SQUID.CONF ----------------------------------------#
Quando tento reiniciar o servico: service squid3 restart a saída é:
root@home:/etc/squid3# service squid3 restart
stop: Unknown instance:
squid3 start/running, process 5100
Quando tento mais algumas vezes ele reinicia normalmente....
Agora a saída do comando squid3 -k check:
root@home:/etc/squid3# squid3 -k check
Segmentation fault (core dumped)
root@home:/etc/squid3#
E então alguém que saiba qual o problema???
Obrigado