Erro Squid ao Inicializar

1. Erro Squid ao Inicializar

Livio Moreira
liviomm

(usa Debian)

Enviado em 05/02/2010 - 15:41h

O que pode ser galera ?

Failed to start Squid :

Iniciando o squid: [FALHOU]
2010/02/05 15:39:08| Processing Configuration File: /etc/squid/squid.conf (depth 0)
2010/02/05 15:39:08| Starting Authentication on port 0.0.0.0:14348
2010/02/05 15:39:08| Disabling Authentication on port 0.0.0.0:14348 (interception enabled)
2010/02/05 15:39:08| cache_cf.cc(346) squid.conf:86 unrecognized: 'http_Access'
2010/02/05 15:39:08| Initializing https proxy context


Vlwwww ! :)


  


2. Re: Erro Squid ao Inicializar

Welton Cordeiro
weltonpba

(usa Debian)

Enviado em 05/02/2010 - 16:00h

Favor poste a conf do seu squid pra gente dar uma analizada!


3. Squid.Conf

Livio Moreira
liviomm

(usa Debian)

Enviado em 05/02/2010 - 16:16h

hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
cache_mem 8 MB
cache_dir ufs /var/spool/squid 100 16 256
cache_access_log /var/log/squid/access.log

http_port 3128 transparent
http_reply_access allow all
icp_access allow all
visible_hostname tratenge

#Suggested default:
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320

#Recommended minimum configuration:
acl tratenge src 192.168.151.0/255.255.255.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 563 # https, snews
acl SSL_ports port 873 # rsync
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 631 # cups
acl Safe_ports port 873 # rsync
acl Safe_ports port 8080 #http
acl Safe_ports port 901 # SWAT
acl purge method PURGE
acl CONNECT method CONNECT
acl renata src 192.168.151.155
acl renato src 192.168.151.57
acl renato2 src 192.168.151.26
acl estacao src 192.168.151.73
acl beth src 192.168.151.83
acl andre src 192.168.151.89
acl winder src 192.168.151.69
acl agustin src 192.168.151.62
acl aline src 192.168.151.56
acl smart dst 201.76.37.164
acl user1 src 192.168.151.122
acl user4 src 192.168.151.52
acl user5 src 192.168.151.129
acl user6 src 192.168.151.145
acl user2 src 192.168.151.200
acl user3 src 192.168.151.47 192.168.151.210
acl user4 src 192.168.151.54
acl server2 src 192.168.151.2
acl proibido dstdom_regex -i "/etc/squid/proibido"
acl blockmsn src "/etc/squid/ips_deny_msn"
acl sitemsn url_regex -i "/etc/squid/blockmsn"
acl sites_allow url_regex -i "/etc/squid/sites_allow"
acl msn url_regex -i /gateway/gateway.dll
acl fulano src 192.168.151.60
acl MTZ022 src 192.168.151.33
acl TI src 192.168.151.155

# Only allow cachemgr access from localhost
http_access allow sites_allow
http_access allow smart
http_access allow manager localhost
http_access deny manager

# Only allow purge requests from localhost
http_access allow purge localhost
http_access deny purge

# Deny requests to unknown ports
http_access deny !Safe_ports

# Deny CONNECT to other than SSL ports
http_access deny CONNECT !SSL_ports

# INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS
http_access allow winder
http_Access allow user4
http_access allow user1
http_access allow user2
http_access allow user6
http_access allow server2
http_access allow user4
http_access allow user5
http_access allow user3
http_access allow estacao
http_access allow agustin
http_access allow aline !aline
http_access allow renato
http_access allow andre
http_access allow renato2
http_access allow beth
http_access deny msn
a
http_access deny blockmsn sitemsn
http_access allow renata
http_access deny proibido
http_access allow tratenge
http_access deny all
http_access allow localhost
http_access allow TI
http_access deny MTZ022
http_access deny blockmsn sitemsn

# Leave coredumps in the first cache dir
coredump_dir /var/spool/squid


4. Re: Erro Squid ao Inicializar

Jefferson Diego
Diede

(usa Debian)

Enviado em 05/02/2010 - 16:39h

Amigo, os erros no squid são auto-explicativos.
O que se passa é que nesta linha: "http_Access allow user4" você deve escrever o http_access em minísculo, ficando assim "http_access allow user4"

Outras considerações: 8MB é muito pouco para cache_mem. 100MB é muito pouco para cache_dir
Essa letra "a" solta depois da linha "http_access deny msn" vai acusar outro erro...






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts