Olá Mauro,Você utiliza autenticação de usuário pelo squid?Se utiliza, o %a faz esse trabalho, fiz o teste aqui.Abraço.--2013/6/5 Mauro Collin <maurocollin@gmail.com>
alguém?2013/6/4 Mauro Collin <maurocollin@gmail.com>
Boa noite galera!Seguinte, ja personalizei a pagina de bloqueio do squid, soh que eu queria que aparecesse o nome do usuario que esta sendo bloqueado.tipo:Olá "FULANINHO" você foi bloqueado segundo as regras da empresa....etc...etc...Um amigo já fez isso numa empresa e sei que tem correlação com o /etc/hosts pois foi eu que configurei o hosts assim:192.168.0.1 fulaninho fulaninho.dominio192.168.0.2 beltraninho beltrano.dominioalguém ai pode dar uma luz? abaixo segue os codigos que o squid retorna em html. Abs e obrigado!%a User identity %B URL with FTP %2f hack %c Squid error code %d seconds elapsed since request received (not yet implemented) %D Squid-generated error details. May contain other error page formating codes. Currently only SSL connection failures are detailed. For example, %D in a customizedERR_SECURE_CONNECT_FAIL response may be expanded into "The host name you are connecting to (foo.com) does not match any of the certificate names (foo.org, foo.net)..."). Supported since Squid v3.2.0.4. See also: application-level error code (%x) and system level error code/detail (%e/%E).%e errno %E strerror() %f FTP request line %F FTP reply line %g FTP server message %h cache hostname %H server host name %i client IP address %I server IP address (NP: upper case i)%l Local site CSS stylesheet. (Squid-3.1 and later) (NP: lower case L)%L contents of err_html_text config option%M Request Method %m Error message returned by external auth helper %o Message returned by external acl helper %p URL port \# %P Protocol %R Full HTTP Request %S squid default signature. (Squid prior to 3.1 automatically add unless %s is used.) %s caching proxy software with version %t local time %T UTC %U URL without password %u URL with password. (Squid-2.5 and later only.) %W Extended error page data URL-encoded for mailto links. %w cachemgr email address %x Application-level error name or identifier (e.g., X509_V_ERR_UNABLE_TO_GET_CRL). Currently only supported for SSL certificate validation errors. See also: system-level error code/detail (%e/%E) and application-level error detail (%D). %z DNS server error message %Z Message generated during the process which failed. May be ASCII-formatted. Use within HTML PRE tags. Att.Mauro Collin.
Analista de Suporte Pleno.TI-Infraestrutura / Rede / Servidores Linux/Windows.Skype: mauro.collin--Att.Mauro Collin.
Analista de Suporte Pleno.TI-Infraestrutura / Rede / Servidores Linux/Windows.Skype: mauro.collinCel: 21 9600-5348 (Vivo).
# Thiago Alves Finardi
# tfinardiΘgmail.com :: email / gtalk / msn
# twitter: @tfinardi# site: finardi.eti.br# blog: www.botecodigital.info
# Xbox: Finardi