Squid + SquidGuard
-
We wanted to have our pfsense using https for the admin panel and squid + squidGuard with a custom error message, on the same box, this is what I came up with.
Get a second lighttpd process running, listening on port 80, with the document root pointing to /usr/local/www/errorpage, this is where our error.php lies, it's a customized version of sgerror.php.
The second instance of lighttp is started using the package Shellcmd, the following line is executed:
/usr/local/sbin/lighttpd -f /var/etc/lighty-errorpage.confThis lighty-errorpage.conf, is based on lighty-webConfigurator.conf, where we deleted the ssl stuff and got it to run on port 80.
squid:
is running in transparent mode.squidGuard:
Services > Proxy filter > Common ACL
Redirect mode: ext url found
Redirect info: http://firewall_ip_address/error.php?url=401&a=%a&n=%n&i=%i&s=%s&t=%t&u=%u