Tem como o lightsquid mostrar os logs de acessos negados ?
-
Olá pessoal, estou tentando por o lightsquid para exibir os logs de acessos bloqueados que os usuários tentaram acessar, lendo nas configurações do pfsense achei uma opção que ao marcar ele envia esses logs de bloqueio de acesso junto aos logs de acesso porem temos que por no final do arquivo sgerror.php a strig já indicada pelo pfsense, alguém conseguiu fazer isso funcionar ? já pus e não obtive sucesso.
Segue a opção marcada no Squid Server
Log Pages Denied by SquidGuard Makes it possible for SquidGuard denied log to be included on Squid logs.
Note: This option will only work if you include the code below in your sgerror.php file.
This forces the client browser to send a second request to Squid with the denied string in URL.$sge_prefix = (preg_match("/?/", $cl['u']) ? "&" : "?");
$str[] = '< iframe > src="'. $cl['u'] . $sge_prefix . 'sgr=ACCESSDENIED" width="1" height="1" > < /iframe >';Hint: You MUST remove extra spaces in the above iframe HTML tags.