warning squid [RESOLVIDO]

1. warning squid [RESOLVIDO]

julianderson de souza pereira
julianderson

(usa Debian)

Enviado em 01/03/2011 - 16:09h

ola amigos da vol , estou configurando o squid em uma maquina com debian squeeze,
estou ultilizando o squid 3.1.6, já dei algumas olhadas nas configuraçoes padroes e ainda não consegui identificar o que deve estar dando errado,

toda vez que eu ponho o servico para rodar aparece o seguinte aviso
Restarting Squid HTTP Proxy 3.x: squid3 Waiting.....................done.
2011/03/01 15:10:57| WARNING: the "Hs" formating code is deprecated use the ">Hs" instead
2011/03/01 15:10:57| WARNING: Netmasks are deprecated. Please use CIDR masks instead.
2011/03/01 15:10:57| WARNING: IPv4 netmasks are particularly nasty when used to compare IPv6 to IPv4 ranges.
2011/03/01 15:10:57| WARNING: For now we will assume you meant to write /24
2011/03/01 15:10:57| WARNING: Netmasks are deprecated. Please use CIDR masks instead.
2011/03/01 15:10:57| WARNING: IPv4 netmasks are particularly nasty when used to compare IPv6 to IPv4 ranges.
2011/03/01 15:10:57| WARNING: For now we will assume you meant to write /32

Voces poderiam me dizer o que pode estar acontecendo

obrigado a todos


  


2. MELHOR RESPOSTA

Renato Carneiro Pacheco
renato_pacheco

(usa Debian)

Enviado em 01/03/2011 - 17:26h

Mude as linhas abaixo:

logformat squid %ts.%3tu %tr %>a %Ss /%03Hs %<st %rm %ru %un %Sh/$<A %mt
acl redelocal src 192.168.0.0/255.255.255.0
acl localhost src 127.0.0.1/255.255.255.255

Para essas linhas:

logformat squid %ts.%3tu %tr %>a %Ss /%03>Hs %<st %rm %ru %un %Sh/$<A %mt
acl redelocal src 192.168.0.0/24
acl localhost src 127.0.0.1/32

3. Re: warning squid [RESOLVIDO]

Renato Carneiro Pacheco
renato_pacheco

(usa Debian)

Enviado em 01/03/2011 - 16:45h

Poste o seu squid.conf q a gente t fala.


4. Re: warning squid [RESOLVIDO]

julianderson de souza pereira
julianderson

(usa Debian)

Enviado em 01/03/2011 - 17:18h

olha aew renato

este e o meu arquivo squid.conf

blz e obrigado pela ajuda


# <<_Porta padrao Squid3_>> #
#-----------------------------------------------#
http_port 3128 transparent
# ----------------------------------------------#
# <<_Nome Servidor para squid transparent_>> #
visible_hostname pole
# ----------------------------------------------#
# CONFIGURAÇOES PADRÃO #
#-----------------------------------------------#

icp_port 0
hierarchy_stoplist cgi-bin?

acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY

cache_replacement_policy heap LFUDA
memory_replacement_policy heap GDSF

cache_mem 128 MB
cache_dir ufs /var/spool/squid3 3000 16 256

maximum_object_size 4000 KB
minimum_object_size 4 KB
maximum_object_size_in_memory 64 KB

cache_access_log /var/log/squid3/access.log
cache_log /var/log/squid3/cache.log
cache_swap_log /var/spool/squid3/swap.log

ipcache_size 1024
ipcache_low 90
ipcache_high 95

logformat squid %ts.%3tu %tr %>a %Ss /%03Hs %<st %rm %ru %un %Sh/$<A %mt
access_log /var/log/squid3/access.log squid

cache_swap_low 90
cache_swap_high 95

dns_nameservers 8.8.8.8


cache_mgr dril_jsp@hotmail.com
coredump_dir /var/spool/squid3

refresh_pattern -i ^http://.*\.(css|htm|html|ico|js|jsp|xml)$ 1440 80% 999999
refresh_pattern -i ^http://.*\.(bmp|gif|jpeg|jpg|png)$ 1440 80% 999999 ignore-reload
refresh_pattern -i ^http://.*\.(ace|adt|arj|asf|avi|bin|bz2|bzip|cab|dat|dll|doc|dot|exe|fla|flv|gz|iso|lha|log|lzh|mdb|mid|mov|mp3|mpeg|mpg|msi|mso|ogg|pps|ppt|rar|rm|rtf|shs|src|sys|swf|tgz|tif|ttf|wav|wma|wri|wmv|vpu|vpaa|vqf|vob|zip)$ 43200 100% 999999 ignore-reload

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

ie_refresh on
half_closed_clients off
httpd_suppress_version_string on

# -----------------------------------------#
# <<_Inicio das ACLs Padão do Squid_>> #
#------------------------------------------#

# acl nocache dstdomain nfse.manaus.am.gov.br
acl redelocal src 192.168.0.0/255.255.255.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl SSl_ports port 443 563 # snews
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 56 # https. snews
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 #wains
acl Safe_ports port 1028-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 # msn
acl Safe_ports port 25 # smtp
acl Safe_ports port 110 # pop
acl purge method PURGE
acl CONNECT method CONNECT
# ----------------------------------------------------------------------#
# Politicas de ACls Para Pole Position #
# ----------------------------------------------------------------------#

http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow PURGE localhost
http_access deny purge
http_access allow redelocal
# ----------------------------------------------------------------------#
cache_effective_user proxy
cache_effective_group proxy
error_directory /usr/share/squid3/errors/Portuguese
# ----------------------------------------------------------------------#

#





5. Re: warning squid [RESOLVIDO]

julianderson de souza pereira
julianderson

(usa Debian)

Enviado em 01/03/2011 - 18:33h

Bem Renato Obrigado era isso mesmo, cara obriado mesmo
Ei renato aproveitando o topico voce sabe me dizer aonde eu econtro o sarg para o debian squeeze


6. Re: warning squid [RESOLVIDO]

Fernando Cesar Vaini
vaini

(usa Debian)

Enviado em 01/03/2011 - 20:05h

respondendo a sua pergunta do sarg...
o sarg não esta disponivel (pelo menos por enquanto) para o squeeze

Para resolver esse problema, adicione o repositorio do debian sid

deb http://ftp.debian.org/debian/ sid main contrib non-free

depois não esqueça de remover...


7. Re: warning squid [RESOLVIDO]

julianderson de souza pereira
julianderson

(usa Debian)

Enviado em 02/03/2011 - 18:37h

Ola amigos da vol, agradeco a ajuda de voce e problema resolvido,

Obrigado Renato e vaini o squid e o sarg estao funcionado blz.

Abraço


8. problemas com squid

cleverson
cleversonbh

(usa Outra)

Enviado em 20/01/2014 - 14:34h

Amigos nao consigo iniciar o squid3 por causa deste erro preciso de ajuda

2014/01/20 14:27:37| WARNING: Netmasks are deprecated. Please use CIDR masks instead.
2014/01/20 14:27:37| WARNING: IPv4 netmasks are particularly nasty when used to compare IPv6 to IPv4 ranges.
2014/01/20 14:27:37| WARNING: For now we will assume you meant to write /32
2014/01/20 14:27:37| WARNING: Netmasks are deprecated. Please use CIDR masks instead.
2014/01/20 14:27:37| WARNING: IPv4 netmasks are particularly nasty when used to compare IPv6 to IPv4 ranges.
2014/01/20 14:27:37| WARNING: For now we will assume you meant to write /32
2014/01/20 14:27:37| WARNING: Netmasks are deprecated. Please use CIDR masks instead.
2014/01/20 14:27:37| WARNING: IPv4 netmasks are particularly nasty when used to compare IPv6 to IPv4 ranges.
2014/01/20 14:27:37| WARNING: For now we will assume you meant to write /32
2014/01/20 14:27:37| WARNING: Netmasks are deprecated. Please use CIDR masks instead.
2014/01/20 14:27:37| WARNING: IPv4 netmasks are particularly nasty when used to compare IPv6 to IPv4 ranges.
2014/01/20 14:27:37| WARNING: For now we will assume you meant to write /32


segue meu config



http_port 3128 transparent

emulate_httpd_log off
ie_refresh on

visible_hostname BRIMAN

hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
cache deny QUERY
acl apache rep_header Server ^Apache
#broken_vary_encoding allow apache

cache_mem 1024 MB
cache_swap_low 50%
cache_swap_high 90%

maximum_object_size 6144 KB
minimum_object_size 0 KB
maximum_object_size_in_memory 100 KB

ipcache_size 1024 MB
ipcache_low 50%
ipcache_high 90%

cache_replacement_policy lru
memory_replacement_policy lru

cache_dir ufs /var/spool/squid3 5000 16 256
cache_access_log /var/log/squid3/access.log
cache_log /var/log/squid3/cache.log
cache_store_log /var/log/squid3/store.log
mime_table /usr/share/squid3/mime.conf
pid_filename /var/run/squid3.pid
unlinkd_program /usr/share/squid3/libexec/unlinkd.exe

#DEBUG - Depurador do proxy, respons�vel pelos LOGs.
debug_options ALL,1

#Trabalhando com Base de Dados para um melhor controle
client_db on
netdb_low 900
netdb_high 1000

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


acl manager proto cache_object
logformat squid %ts.%3tu %tr %>a %Ss /%03>Hs %<st %rm %ru %un %Sh/$<A %mt
acl redelocal src 192.168.1.0/24
acl localhost src 127.0.0.1/32

# servidor DNS
dns_nameservers 192.168.1.254

acl SSL_ports port 110 25 443 143 587 22 10000
acl Safe_ports port 110 587 25 80 21 443 70 210 280 488 591 777 22 10000
acl Safe_ports port 1025-65535

acl CONNECT method CONNECT

# linha 1 - Par�metros para Consultar Usu�rios no AD:
auth_param basic program /usr/lib/squid3/squid_ldap_auth -R -b "dc=BRIMAN,dc=LOCAL" -D "cn=proxy01,cn=Users,dc=BRIMAN,dc=LOCAL" -w "ca160201" -f sAMAccountName=%s -h 192.168.1.1
# linha 2:
auth_param basic children 5
# linha 3 - Mensagem que ira aparecer na caixa de autentica��o:
auth_param basic realm BRIMAN.LOCAL
# linha 4:
auth_param basic credentialsttl 1 hour
# Linha 5: acl que pede autentica��o:
acl autentica proxy_auth REQUIRED


#acl DE ACESSO TOTAL
acl acessototal src "/etc/squid3/acl/acessototal"

#acl pra sites direto, n�o passar pelo cache
acl NOCACHE url_regex -i "/etc/squid3/acl/NOCACHE"
no_cache deny NOCACHE

#acl pra liberar sites com exess�es
acl sitesliberados url_regex -i "/etc/squid3/acl/sitesliberados"

http_access allow acessototal all
http_access allow NOCACHE all
http_access allow sitesespeciais all
http_access allow java all
http_access deny [*****]
http_access allow ipliberado sitesliberados
http_access deny negasites
http_access deny download
http_access deny streaming

# Linha que Libera a internet para rede local somente com autentica��o
http_access allow autentica redelocal

http_access allow redelocal all
http_access deny all
http_access allow all

cache_mgr cleversonbh@yahoo.com.br
cache_effective_user proxy
cache_effective_group proxy



9. Re: warning squid [RESOLVIDO]

Junior Rocha
junior

(usa Ubuntu)

Enviado em 20/01/2014 - 14:55h

Amigo cleversonbh, sugiro abrir um novo tópico com a sua dúvida, visto que este já está encerrado e com a melhor resposta escolhida.

[]'s






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts