kidmatheus
(usa CentOS)
Enviado em 02/12/2013 - 10:07h
Bom dia pessoal,
Primeiro é um prazer poder entrar para o fórum pois sempre pude consultar e adquirir conhecimento aqui com vocês.Hoje estou com uma dúvida que não consigo resolver e não encontrei um tópico relacionado.
Abaixo as informações e minhas configurações, se puderem me ajudar.
Obrigado.
Quando eu inicio ou para o meu SQUIDele está apresentando a seguinte mensagem :
service squid reload
squid: ERROR: Could not read pid file
/var/run/squid.pid: (13) Permission denied
2013/12/02 05:35:01.016| ACL::~ACL: '
2013/12/02 05:35:01.016| ACL::~ACL: '
2013/12/02 05:35:01.016| ACL::~ACL: '
2013/12/02 05:35:01.016| ACL::~ACL: '
2013/12/02 05:35:01.016| ACL::~ACL: '
2013/12/02 05:35:01.016| ACL::~ACL: '
2013/12/02 05:35:01.016| ACL::~ACL: '
2013/12/02 05:35:01.016| ACL::~ACL: '
2013/12/02 05:35:01.016| ACL::~ACL: '
2013/12/02 05:35:01.016| ACL::~ACL: '
2013/12/02 05:35:01.016| ACL::~ACL: '
2013/12/02 05:35:01.016| ACL::~ACL: '
2013/12/02 05:35:01.016| ACL::~ACL: '
2013/12/02 05:35:01.016| ACL::~ACL: '
2013/12/02 05:35:01.016| ACL::~ACL: '
2013/12/02 05:35:01.016| ACL::~ACL: '
2013/12/02 05:35:01.016| ACL::~ACL: '
2013/12/02 05:35:01.016| ACL::~ACL: '
2013/12/02 05:35:01.016| ACL::~ACL: '
2013/12/02 05:35:01.016| ACL::~ACL: '
2013/12/02 05:35:01.016| ACL::~ACL: '
2013/12/02 05:35:01.016| ACL::~ACL: '
2013/12/02 05:35:01.016| ACL::~ACL: '
2013/12/02 05:35:01.016| ACL::~ACL: '
2013/12/02 05:35:01.016| ACL::~ACL: '
2013/12/02 05:35:01.016| ACL::~ACL: '
2013/12/02 05:35:01.016| ACL::~ACL: '
2013/12/02 05:35:01.016| ACL::~ACL: '
2013/12/02 05:35:01.016| ACL::~ACL: '
2013/12/02 05:35:01.016| ACL::~ACL: '
2013/12/02 05:35:01.016| ACL::~ACL: '
2013/12/02 05:35:01.016| ACL::~ACL: '
2013/12/02 05:35:01.016| ACL::~ACL: '
2013/12/02 05:35:01.016| ACL::~ACL: '
2013/12/02 05:35:01.016| ACL::~ACL: '
2013/12/02 05:35:01.016| ACL::~ACL: '
2013/12/02 05:35:01.016| ACL::~ACL: '
2013/12/02 05:35:01.016| ACL::~ACL: '
2013/12/02 05:35:01.016| ACL::~ACL: '
2013/12/02 05:35:01.016| ACL::~ACL: '
Este é o meu arquivo de configuração do SQUID:
# +------------------------------------+
# | ################################## |
# | ## Config SQUID NOV/2013 ## |
# | ################################## |
# +------------------------------------+
#Porta Padrao Squid
http_port 3128
#We recommend you to use at least the following line.
hierarchy_stoplist cgi-bin ?
#We recommend you to use the following two lines.
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
debug_options ALL,3
#Cache do Squid
cache_mem 64 MB
cache_swap_low 90
cache_swap_high 95
maximum_object_size_in_memory 256 KB
maximum_object_size 1024 KB
minimum_object_size 0 KB
ipcache_size 1024
ipcache_low 90
ipcache_high 95
cache_replacement_policy heap LFUDA
memory_replacement_policy heap GDSF
#Config do Cache
cache_dir ufs /var/cache/squid 100 16 256
cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_swap_log /var/log/squid/swap.log
cache_store_log /var/log/squid/store.log
#Error em Portugues
error_directory /usr/share/squid/errors/pt-br
#Dns Squid
dns_nameservers 200.204.0.10 200.204.0.138
#Autenticando Squid
auth_param basic program /usr/lib64/squid/ncsa_auth /etc/squid/passwd
auth_param basic children 5
auth_param basic realm Firewall - [ Entre com o Login : ]
auth_param basic credentialsttl 1 hours
acl AuthorizedUser proxy_auth REQUIRED
http_access allow all AuthorizedUser
#Suggested default:
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
#ACL REDE Padrao SQUID
#acl all src 0.0.0.0/0.0.0.0
acl redelocal src 192.168.0.0/24
# ACL Para Usuarios Com Autenticacao Squid
acl group_adm proxy_auth "/etc/squid/group_adm"
acl group_usu proxy_auth "/etc/squid/group_usu"
acl site_usu url_regex -i "/etc/squid/site_usu"
# ACL Para Bloquear Downloads
acl block_list dstdom_regex "/etc/squid/downloads"
acl downloads url_regex -i "/etc/squid/downloads"
#ACL Padrao SQUID
acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 563
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # https, snews
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 137 # SAMBA
acl Safe_ports port 138 # SAMBA
acl Safe_ports port 139 # SAMBA
acl Safe_ports port 445 # SAMBA
acl Safe_ports port 1900 # SAMBA
acl Safe_ports port 10000 # WEBMIN
acl purge method PURGE
acl CONNECT method CONNECT
# Only allow cachemgr access from localhost
http_access allow localhost
http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access deny purge
cache deny QUERY
# Deny requests to unknown ports
http_access deny !Safe_ports
# Deny CONNECT to other than SSL ports
http_access deny CONNECT !SSL_ports
# And finally deny all other access to this proxy
http_access allow localhost
http_access allow group_usu site_usu
http_access allow group_adm
http_access allow redelocal
http_access deny block_list
http_access deny downloads
http_access deny all
# and finally allow by default
http_reply_access allow all
#Allow ICP queries from everyone
icp_access allow all
# Nome do host
visible_hostname firewall.liliantex
# E-Mail WebMaster
cache_mgr tiago@3cfast.com.br
# Acelerando Proxy
#httpd_accel_host virtual
#httpd_accel_port 80
# Habilita o Proxy Transparente ON/OFF
#httpd_accel_with_proxy on
# Acelerando Proxy
#httpd_accel_uses_host_header on