Netgate SG-1000 microFirewall

Author Topic: SquidGuard LOG  (Read 167 times)

0 Members and 1 Guest are viewing this topic.

Offline Altomani

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
SquidGuard LOG
« on: January 03, 2018, 08:55:50 am »
Hi everyone!

Im using Pfsense 2.4.2, and i already installed squid and squidguard packeges. Everything is configured and working, but im really having trouble to configure squidguard logs.

The logs from squid are already configured, im sending them to my external syslog, but i would that pfsense sends the squidguard denied logs to my syslog too.

In squid configuration i have this option: "Makes it possible for SquidGuard denied log to be included on Squid logs." For this to work, squid sais that is necessary to put this code in the sgerror.php file:

Code: [Select]
$sge_prefix = (preg_match("/\?/", $cl['u']) ? "&" : "?");
$str[] = '< iframe > src="'. $cl['u'] . $sge_prefix . 'sgr=ACCESSDENIED" width="1" height="1" > < /iframe >';

The problem is that i have no idea where to put this code inside the file.

In my google research i found some instructions for older versions of pfsense, but it seems that the sgerror.php file is different in ver. 2.4.2.

Does anyone knows how to configure the squidguard logs in this new version?

Obs. Im using transparent proxy mode.

« Last Edit: January 04, 2018, 11:03:56 am by Altomani »