ERRO NA SQUID3 AUTENTICADO

1. ERRO NA SQUID3 AUTENTICADO

Jean Carlos Busnello Oleques
jcbusnello

(usa Debian)

Enviado em 04/07/2016 - 11:33h

Estou com problema no envio de solicitações pelo programa ERP da empresa ele tem sistema de solicitações mas quando chega a hora de enviar a solicitação. ele da erro da comunicação e pelos log do squid3 ele nega o envio da mesma como exemplo abaixo.

 
1467640574.255 1121 10.1.1.5 TCP_MISS/200 1158 POST http://portal.tecnicon.com.br:8080/Tecnicon/ControllerAjax? - DIRECT/187.5.208.202 text/html
1467640583.951 106 10.1.1.5 TCP_MISS/200 584 POST http://portal.tecnicon.com.br:8080/Tecnicon/ControllerAjax? - DIRECT/187.5.208.202 text/html
1467640584.400 413 10.1.1.5 TCP_MISS/200 6892 POST http://idema.ddns.net:8080/Tecnicon/Controller? jean DIRECT/177.44.229.254 text/html
1467640584.424 0 10.1.1.5 NONE/400 11694 POST http://portal.tecnicon.com.br:8080/Tecnicon/ControllerAjax?s=LX7olOPZ5Xm7p%2BPXrd9DRQR7z%2B5DWH7YSodiALLxSaYmaPIBAp6PpSPnfV20oChlgtlI%2F%2BdhctlLBzGzFEIzG61%2BZVl%2BWwI217TxYIrNNP8XCCoFXj0CwT6HdEIhhG0oJDoFJ1Yh0M3nloJZgj6CD%2FONleC66kNVd6YkEWU4FfZjZ6hB4rLLPeCIbniRnn4aVWp0G9iE4RzVPuV0JC0BYi9D542R009fc4agJBHjMQ33eu8rlb9TQBJ31AoYxfbzYx0qWZCbg4so9mPC2%2BrhEI2m2VI78TBOzo%2BYwX2gPeD%2BfWJ2arEiw820M3avkgUVIBuFju9id6%2FN4tTrqmfSm0eQ8mdllJKOCIKZTRylRyIe%2F6lT%2Fws2h8Lr2ardPoR0HeHwVKX25dTuT03kngfk%2Fskc%2BnpWIG0t6EOBHM746IomSYteSwJTb3AGtgQSjzfRR%2FbLWInn%2FjqyNMeHdIx7DhyjjqiqBZ1JCK4ErPrm52hv7oUtRDpAaz0aA9NpR459hNNaFG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aByiYjY2W7oHuSTgow63tDpS1F6n0p32hEQUHIFhdM4uRXKUWBRF60icDbeYq3%2BOyixuic2QwVOp7fWWoGkamUwf5euklslBoD8NAuqhjXlBwFOUaXPSb4NgXXD2ELwsXRq6sS3N%2FSYoKmpN%2F8P8Yyw2ZrAoTU2XBHMwmvUSEHtl4r6kRf%2BaUjaPsAZbSn5wNaTJs62pTy7Pool5BM5DLRPfV7yVBuSbJX7TwMGUdMabhpzmdOyL3kI6F1es7jlr%2BNnGuOty27%2 - NONE/- text/html
1467640756.134 532 10.1.1.5 TCP_MISS/200 9165 POST http://idema.ddns.net:8080/Tecnicon/Controller? jean DIRECT/177.44.229.254 text/html
1467640765.058 243386 10.1.1.5 TCP_MISS/200 60134 CONNECT www.google.com.br:443 jean DIRECT/172.217.29.67 -
 




  


2. Re: ERRO NA SQUID3 AUTENTICADO

natha
ncampos

(usa Debian)

Enviado em 05/07/2016 - 15:42h

Ja verificou se a porta 8080 esta liberada para saida?
tente acessar via navegador com o usuario "jean" o link http://portal.tecnicon.com.br:8080/Tecnicon/ControllerAjax ,caso retornar erro como "tempo esgotado" libere na ACL de sites sem autenticação (caso voce possua a acl).




3. Re: ERRO NA SQUID3 AUTENTICADO

Jean Carlos Busnello Oleques
jcbusnello

(usa Debian)

Enviado em 05/07/2016 - 16:55h

ncampos escreveu:

Ja verificou se a porta 8080 esta liberada para saida?
tente acessar via navegador com o usuario "jean" o link http://portal.tecnicon.com.br:8080/Tecnicon/ControllerAjax ,caso retornar erro como "tempo esgotado" libere na ACL de sites sem autenticação (caso voce possua a acl).



opa tudo bem !!! fiz isso e retorna vou postar os meus arquivos squid.conf

###########################PROXY JEAN BUSNELLO #######################################
http_port 3128
visible_hostname PROXYAGRIMEC

########### REGRAS DE CACHE ######################
cache_mem 512 MB
maximum_object_size_in_memory 128 KB
maximum_object_size 128 MB
minimum_object_size 0 KB

cache_swap_low 90
cache_swap_high 95

cache_dir ufs /var/spool/squid3 2048 16 256
logformat squid3 %ts.%03tu %6tr %>a %Ss/%03>Hs %<st %rm %ru %un %Sh/%<A %mt
cache_access_log /var/log/squid3/access.log
cache_mgr info@agrimec.com.br
error_directory /usr/share/squid3/errors/pt-br

refresh_pattern ^ftp: 15 20% 2280
refresh_pattern ^gopher: 15 0% 2280
refresh_pattern . 15 20% 2280

#############CACHE WINDOWS UPDATE#################
refresh_pattern -i update.microsoft.com/.*\.(cab|exe|ms[i|u|f]|asf|wm[v|a]|dat|zip|dsft) 4320 80% 432000 reload-into-ims
refresh_pattern -i microsoft.com/.*\.(cab|exe|ms[i|u|f]|asf|wm[v|a]|dat|zip|dsft) 4320 80% 432000 reload-into-ims
refresh_pattern -i windowsupdate.com/.*\.(cab|exe|ms[i|u|f]|asf|wm[v|a]|dat|zip|dsft) 4320 80% 432000 reload-into-ims
refresh_pattern -i windows.com/.*\.(cab|exe|ms[i|u|f]|asf|wm[v|a]|dat|zip|dsft) 4320 80% 432000 reload-into-ims
refresh_pattern -i c2r.microsoft.com/.*\.(cab|exe|ms[i|u|f]|asf|wm[v|a]|dat|zip|dsft) 4320 80% 432000 reload-into-ims
refresh_pattern -i download.windowsupdate.com/.*\.(cab|exe|ms[i|u|f]|asf|wm[v|a]|dat|zip|dsft) 4320 80% 432000 reload-into-ims
############ FIM CACHE WINDOWS#############

##################AUTENTICAÇÃO SERVIDOR###########################
auth_param basic program /usr/lib/squid3/ncsa_auth /etc/squid3/passwd
auth_param basic children 5
auth_param basic realm Para obter login e senha solicite o administrador da rede
auth_param basic credentialsttl 3 hours
auth_param basic casesensitive on

##################FIM############################################

##############PORTAS SEGURAS PARA O PROXY #############
acl SSL_ports port 443 563 873 # https
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 # msn
acl Safe_ports port 25 # smtp
acl Safe_ports port 110 # pop
acl Safe_ports port 995 # popseg
acl Safe_ports port 465 # smtpseg
######################### FIM ########################

######################regras#########################
################################################
#### Liberando IP'S ####
################################################

acl ipsliberados src "/etc/squid3/ipsliberados.conf"
http_access allow ipsliberados
#################################################
############ REGRAS DE AUTENTICAÇÃO #############
#################################################
acl password proxy_auth REQUIRED
#http_access allow password
acl usuarios_limitado proxy_auth "/etc/squid3/limitado"
acl usuarios_diretoria proxy_auth "/etc/squid3/diretoria"
acl usuarios_operacional proxy_auth "/etc/squid3/operacional"
acl usuarios_adm proxy_auth "/etc/squid3/administracao"
################ Fim ###########################################

######### Regras para controle do acesso dos grupos ############
acl sexo_regex url_regex -i "/etc/squid3/listas/sexo_regex"
acl redes_sociais_regex url_regex -i "/etc/squid3/listas/redes_sociais_regex"
acl stream_regex url_regex -i "/etc/squid3/listas/stream_regex"
acl sexo dstdomain "/etc/squid3/listas/sexo"
acl redes_sociais dstdomain "/etc/squid3/listas/redes_sociais"
acl diversos dstdom_regex -i "/etc/squid3/listas/diversos"
acl stream dstdomain "/etc/squid3/listas/stream"
acl skype url_regex -i "/etc/squid3/skype"
acl tecnicon dstdomain "/etc/squid3/tecnicon"
acl windowsupdate dstdomain .microsoft.com .windowsupdate.com c2r.microsoft.com download.windowsupdate.com windows.com
############### FIM ###########################

acl CONNECT method CONNECT
acl lan src 10.0.0.0/8
http_access allow tecnicon
http_access allow windowsupdate
http_access allow skype
http_access allow usuarios_limitado diversos
http_access allow usuarios_diretoria !sexo
#http_access allow usuarios_suporte !sexo !sexo_regex
http_access allow usuarios_operacional !sexo !sexo_regex !redes_sociais !redes_sociais_regex
#http_access deny sexo_regex
http_access allow usuarios_adm !sexo !sexo_regex !stream !stream_regex !redes_sociais !redes_sociais_regex
##################### FIM ######################

#http_access allow manager localhost
#http_access allow localhost
http_access allow lan
http_access deny CONNECT !SSL_ports
http_access deny !Safe_ports
#http_access deny manager
http_access deny all
#################### Fim do arquivo ###################







Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts