willhold
(usa CentOS)
Enviado em 24/10/2014 - 09:01h
Amigos,
Preciso de uma ajuda, estou em um abiente de lab, configurando o squid. Sou iniciante em linux e não sei o que acontece mas fico em looping nos erros, ao tentar restar o meu squid as vezes aparece "ERROR: no running copy", ai atualizado o numero do processo dentro do pid em sequencia aparece o erro /var/run/squid.pid: (13) Permission denied. Realizei tanta alteração no squid.conf que me perdi. PODEM ME AJUDAR ? Obrigado
ERRO COM O COMANDO squid -NCd1
[root@proxysquid ~]# squid -NCd1
WARNING: Cannot write log file: /var/log/squid/access.log
/var/log/squid/access.log: Permission denied
messages will be sent to 'stderr'.
2014/10/23 14:50:31| WARNING: Closing open FD 2
2014/10/23 14:50:31| Starting Squid Cache version 2.5.STABLE14 for i686-pc-linux-gnu...
2014/10/23 14:50:31| Process ID 3386
2014/10/23 14:50:31| With 1024 file descriptors available
2014/10/23 14:50:31| Performing DNS Tests...
2014/10/23 14:50:31| Successful DNS name lookup tests...
2014/10/23 14:50:31| DNS Socket created at 0.0.0.0, port 56302, FD 3
2014/10/23 14:50:31| Adding nameserver 192.168.0.120 from /etc/resolv.conf
2014/10/23 14:50:31| Adding nameserver 192.168.0.8 from /etc/resolv.conf
FATAL: Cannot open '/var/log/squid/access.log' for writing.
The parent directory must be writeable by the
user 'squid', which is the cache_effective_user
set in squid.conf.
Squid Cache (Version 2.5.STABLE14): Terminated abnormally.
CPU Usage: 0.009 seconds = 0.000 user + 0.009 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0
Aborted
MEU SQUID.CONF
cache_effective_user squid
error_directory /usr/share/errors/Portuguese/
http_port 3128
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
auth_param basic children 5
auth_param basic realm Squid proxy-caching web server
auth_param basic credentialsttl 2 hours
auth_param basic casesensitive off
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
cache_log /var/log/squid/access.log
cache_mem 512 MB
maximum_object_size_in_memory 64 KB
maximum_object_size 80 MB
minimum_object_size 0 KB
cache_swap_low 90
cache_swap_high 95
cache_dir ufs /var/spool/squid 512 16 256
cache_access_log /var/log/squid/access.log squid
pid_filename /var/run/squid.pid
visible_hostname proxysquid
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
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 purge method PURGE
acl CONNECT method CONNECT
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
acl bloqueados url_regex -i "/etc/squid/bloqueados"
http_access deny bloqueados
http_access allow all