Ajuda no squid3 [RESOLVIDO]

1. Ajuda no squid3 [RESOLVIDO]

Gilvan
gilvanbrrn

(usa Ubuntu)

Enviado em 01/11/2012 - 00:35h

Boa noite família do VOL.
Estou precisando de uma ajuda de vocês, estou usando o ubuntu 12.10 e instalei o squid3 para poder usa-lo, so que quando vou restarta-lo: service squid3 restart,aparece o seguinte erro:
stop: Unknown instance:
start: Job failed to start

Abaixo ta a configuração do squid.conf
Desde ja agradeço quem poder me ajudar.

####Configuração padrao ####

http_port 3128
visible_hostname servlinux
cache_mem 128 MB
maximum_object_size_in_memory 100 KB
maximum_object_size 6144 KB
minimum_object_size 0 KB
ipcache_size 1024
ipcache_low 90
ipcache_high 95
cache_replacement_policy lru
memory_replacement_policy lru
logformat squid %ts.%03tu %6tr %>a %Ss/%03Hs %<st %rm %ru %un %Sh/%<A %mt

maximum_object_size_in_memory 4 MB
cache_dir ufs /var/spool/squid3 3000 16 256
cache_swap_low 90
cache_swap_high 95
access_log /var/log/squid3/access.log squid
cache_mgr eu@gmail.com
error_directory /usr/share/squid3/errors/pt-br
coredump_dir /var/spool/squid3
refresh_pattern ^ftp: 15 20% 2280
refresh_pattern ^gopher: 15 0% 2280
refresh_pattern . 15 20% 2280

###################################################3

 

## Autenticaçao##

auth_param basic program /usr/lib/squid3/ncsa_auth /etc/squid3/senhas
auth_param basic children 10
auth_param basic renalm PARA OBTER LOG E SENHA FALE COM O ADM DA REDE
auth_param basic credentialsttl 1 hour
auth_param basic casesensitive off

###################################################################

 

#### ACLS ##########

acl SSL_ports port 443 563 # snews
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 407 1863 5190 # msn
acl Safe_ports port 25 # smtp
acl Safe_ports port 110 # pop
acl CONNECT method CONNECT
acl autenticados proxy_auth REQUIRED
acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl all src all

 

##### acl onde ficarão os bloqueios####
acl negados1 url_regex -i “/etc/squid3/bloqueios/negados1”
acl negados2 url_regex -i “/etc/squid3/bloqueios/negados2”
acl negados3 url_regex -i “/etc/squid3/bloqueios/negados3”
acl downloads url_regex -i “/etc/squid3/bloqueios/downloads”
acl downloadsliberados url_regex -i “/etc/squid3/bloqueios/downloadsliberados”

 

#####acl das hierarquias ####
acl diretores Proxy_auth “/etc/squid3/grupos/diretores”
acl funcionarios Proxy_auth “/etc/squid3/grupos/funcionarios”
acl estagiarios Proxy_auth “/etc/squid3/grupos/estagiarios”

###http_access permissões e negações ###

http_access allow manager localhost
http_access deny manager
http_access deny negados1
http_access deny downloads !downloadsliberados
http_access allow diretores
http_access deny negados2
http_access allow funcionarios
http_access deny negados3
http_access allow estagiarios
http_access deny all


  


2. Re: Ajuda no squid3 [RESOLVIDO]

Gilvan
gilvanbrrn

(usa Ubuntu)

Enviado em 01/11/2012 - 11:49h

E ai galera, alguém tem alguma ideia ?


3. Re: Ajuda no squid3 [RESOLVIDO]

Phillip Vieira
phrich

(usa Slackware)

Enviado em 01/11/2012 - 13:21h

Como foi feita a instalação do Squid? Via apt ou compilado?


4. Re: Ajuda no squid3 [RESOLVIDO]

Renato Carneiro Pacheco
renato_pacheco

(usa Debian)

Enviado em 01/11/2012 - 13:50h

Execute o seu squid dessa forma: squid -Ncd1. Cole a saída do comando aki.


5. Re: Ajuda no squid3 [RESOLVIDO]

Gilvan
gilvanbrrn

(usa Ubuntu)

Enviado em 01/11/2012 - 21:46h

phrich escreveu:

Como foi feita a instalação do Squid? Via apt ou compilado?

foi instalado via terminal apt-get


6. Re: Ajuda no squid3 [RESOLVIDO]

Gilvan
gilvanbrrn

(usa Ubuntu)

Enviado em 01/11/2012 - 21:47h

renato_pacheco escreveu:

Execute o seu squid dessa forma: squid -Ncd1. Cole a saída do comando aki.


renato_pacheco: um detalhe eu estou usando o squid3
squid -Ncd1 : squid: command not found
squid3 -Ncd1 :
Usage: squid [-cdhvzCFNRVYX] [-s | -l facility] [-f config-file] [-[au] port] [-k signal]
-a port Specify HTTP port number (default: 3128).
-d level Write debugging to stderr also.
-f file Use given config-file instead of
/etc/squid3/squid.conf
-h Print help message.
-k reconfigure|rotate|shutdown|interrupt|kill|debug|check|parse
Parse configuration file, then send signal to
running copy (except -k parse) and exit.
-s | -l facility
Enable logging to syslog.
-u port Specify ICP port number (default: 3130), disable with 0.
-v Print version.
-z Create swap directories
-C Do not catch fatal signals.
-D OBSOLETE. Scheduled for removal.
-F Don't serve any requests until store is rebuilt.
-N No daemon mode.
-R Do not set REUSEADDR on port.
-S Double-check swap during rebuild.
-X Force full debugging.
-Y Only return UDP_HIT or UDP_MISS_NOFETCH during fast reload.



7. Re: Ajuda no squid3 [RESOLVIDO]

Carlos A. P. Cunha
Carlos_Cunha

(usa Linux Mint)

Enviado em 02/11/2012 - 01:29h

gilvanbrrn escreveu:

e ai galera, mais alguém pode tentar me ajudar ?


Limpa seu cache.log ( : > /var/log/squid3cache.log)

Dai tentar startar o squid e posta o que apareceu no cache.log

Abraço




8. Re: Ajuda no squid3 [RESOLVIDO]

Gilvan
gilvanbrrn

(usa Ubuntu)

Enviado em 02/11/2012 - 01:49h

PretooOO escreveu:

gilvanbrrn escreveu:

e ai galera, mais alguém pode tentar me ajudar ?


Limpa seu cache.log ( : > /var/log/squid3cache.log)

Dai tentar startar o squid e posta o que apareceu no cache.log

Abraço



Limpei o cache,restartei o squid3, e o cache estar vazio


9. Re: Ajuda no squid3 [RESOLVIDO]

Gilvan
gilvanbrrn

(usa Ubuntu)

Enviado em 02/11/2012 - 02:07h

squid3 -k parse
2012/11/02 01:03:45| Processing Configuration File: /etc/squid3/squid.conf (depth 0)
2012/11/02 01:03:45| Processing: http_port 3128
2012/11/02 01:03:45| Processing: visible_hostname servlinux
2012/11/02 01:03:45| Processing: cache_mem 128 MB
2012/11/02 01:03:45| Processing: maximum_object_size_in_memory 100 KB
2012/11/02 01:03:45| Processing: maximum_object_size 6144 KB
2012/11/02 01:03:45| Processing: minimum_object_size 0 KB
2012/11/02 01:03:45| Processing: ipcache_size 1024
2012/11/02 01:03:45| Processing: ipcache_low 90
2012/11/02 01:03:45| Processing: ipcache_high 95
2012/11/02 01:03:45| Processing: cache_replacement_policy lru
2012/11/02 01:03:45| Processing: memory_replacement_policy lru
2012/11/02 01:03:45| Processing: maximum_object_size_in_memory 4 MB
2012/11/02 01:03:45| Processing: cache_dir ufs /var/spool/squid3 3000 16 256
2012/11/02 01:03:45| Processing: cache_swap_low 90
2012/11/02 01:03:45| Processing: cache_swap_high 95
2012/11/02 01:03:45| Processing: access_log /var/log/squid3/access.log squid
2012/11/02 01:03:45| Processing: cache_mgr eu@gmail.com
2012/11/02 01:03:45| Processing: error_directory /usr/share/squid3/errors/pt-br
2012/11/02 01:03:45| Processing: coredump_dir /var/spool/squid3
2012/11/02 01:03:45| Processing: refresh_pattern ^ftp: 15 20% 2280
2012/11/02 01:03:45| Processing: refresh_pattern ^gopher: 15 0% 2280
2012/11/02 01:03:45| Processing: refresh_pattern . 15 20% 2280
2012/11/02 01:03:45| Processing:  
2012/11/02 01:03:45| cache_cf.cc(381) parseOneConfigFile: squid.conf:30 unrecognized: ' '
2012/11/02 01:03:45| Processing: auth_param basic program /usr/lib/squid3/ncsa_auth /etc/squid3/senhas
2012/11/02 01:03:45| Processing: auth_param basic children 10
2012/11/02 01:03:45| Processing: auth_param basic renalm PARA OBTER LOG E SENHA FALE COM O ADM DA REDE
2012/11/02 01:03:45| basic/auth_basic.cc(348) parse: unrecognised basic auth scheme parameter 'renalm'
2012/11/02 01:03:45| Processing: auth_param basic credentialsttl 1 hour
2012/11/02 01:03:45| Processing: auth_param basic casesensitive off
2012/11/02 01:03:45| Processing:  
2012/11/02 01:03:45| cache_cf.cc(381) parseOneConfigFile: squid.conf:42 unrecognized: ' '
2012/11/02 01:03:45| Processing: acl SSL_ports port 443 563 # snews
2012/11/02 01:03:45| Processing: acl Safe_ports port 80 # http
2012/11/02 01:03:45| Processing: acl Safe_ports port 21 # ftp
2012/11/02 01:03:45| Processing: acl Safe_ports port 443 563 # https, snews
2012/11/02 01:03:45| Processing: acl Safe_ports port 70 # gopher
2012/11/02 01:03:45| Processing: acl Safe_ports port 210 # wais
2012/11/02 01:03:45| Processing: acl Safe_ports port 1025-65535 # unregistered ports
2012/11/02 01:03:45| Processing: acl Safe_ports port 280 # http-mgmt
2012/11/02 01:03:45| Processing: acl Safe_ports port 488 # gss-http
2012/11/02 01:03:45| Processing: acl Safe_ports port 591 # filemaker
2012/11/02 01:03:45| Processing: acl Safe_ports port 777 # multiling http
2012/11/02 01:03:45| Processing: acl Safe_ports port 407 1863 5190 # msn
2012/11/02 01:03:45| Processing: acl Safe_ports port 25 # smtp
2012/11/02 01:03:45| Processing: acl Safe_ports port 110 # pop
2012/11/02 01:03:45| Processing: acl CONNECT method CONNECT
2012/11/02 01:03:45| Processing: acl autenticados proxy_auth REQUIRED
2012/11/02 01:03:45| Processing: acl manager proto cache_object
2012/11/02 01:03:45| Processing: acl localhost src 127.0.0.1/32
2012/11/02 01:03:45| Processing: acl all src all
2012/11/02 01:03:45| WARNING: (B) '::/0' is a subnetwork of (A) '::/0'
2012/11/02 01:03:45| WARNING: because of this '::/0' is ignored to keep splay tree searching predictable
2012/11/02 01:03:45| WARNING: You should probably remove '::/0' from the ACL named 'all'
2012/11/02 01:03:45| Processing:  
2012/11/02 01:03:45| cache_cf.cc(381) parseOneConfigFile: squid.conf:66 unrecognized: ' '
2012/11/02 01:03:45| Processing: acl negados1 url_regex -i “/etc/squid3/bloqueios/negados1”
2012/11/02 01:03:45| Processing: acl negados2 url_regex -i “/etc/squid3/bloqueios/negados2”
2012/11/02 01:03:45| Processing: acl negados3 url_regex -i “/etc/squid3/bloqueios/negados3”
2012/11/02 01:03:45| Processing: acl downloads url_regex -i “/etc/squid3/bloqueios/downloads”
2012/11/02 01:03:45| Processing: acl downloadsliberados url_regex -i “/etc/squid3/bloqueios/downloadsliberados”
2012/11/02 01:03:45| Processing:  
2012/11/02 01:03:45| cache_cf.cc(381) parseOneConfigFile: squid.conf:75 unrecognized: ' '
2012/11/02 01:03:45| Processing: acl diretores proxy_auth “/etc/squid3/grupos/diretores”
2012/11/02 01:03:45| Processing: acl funcionarios proxy_auth “/etc/squid3/grupos/funcionarios”
2012/11/02 01:03:45| Processing: acl estagiarios proxy_auth “/etc/squid3/grupos/estagiarios”
2012/11/02 01:03:45| Processing: http_access allow manager localhost
2012/11/02 01:03:45| Processing: http_access deny manager
2012/11/02 01:03:45| Processing: http_access deny negados1
2012/11/02 01:03:45| Processing: http_access deny downloads !downloadsliberados
2012/11/02 01:03:45| Processing: http_access allow diretores
2012/11/02 01:03:45| Processing: http_access deny negados2
2012/11/02 01:03:45| Processing: http_access allow funcionarios
2012/11/02 01:03:45| Processing: http_access deny negados3
2012/11/02 01:03:45| Processing: http_access allow estagiarios
2012/11/02 01:03:45| Processing: http_access deny all



10. Re: Ajuda no squid3 [RESOLVIDO]

Gilvan
gilvanbrrn

(usa Ubuntu)

Enviado em 02/11/2012 - 10:37h

E ai turma, mais alguém pode tentar me ajudar.


11. Re: Ajuda no squid3 [RESOLVIDO]

Reginaldo de Matias
saitam

(usa Slackware)

Enviado em 02/11/2012 - 16:34h

segue e compara com o how-to de configuração do proxy autenticado no squid
http://mundodacomputacaointegral.blogspot.com.br/2011/12/configurando-servidor-proxy-autenticado.htm...


12. Re: Ajuda no squid3 [RESOLVIDO]

Gilvan
gilvanbrrn

(usa Ubuntu)

Enviado em 02/11/2012 - 16:51h

saitam escreveu:

segue e compara com o how-to de configuração do proxy autenticado no squid
http://mundodacomputacaointegral.blogspot.com.br/2011/12/configurando-servidor-proxy-autenticado.htm...


Obrigado pela dica, mais eu ja conheço esse tutorial.



01 02



Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts