SquidGuard redirect



  • I have just made the jump to pfSense from a custom solution I was using and have been very impressed so far.  I am trying to get my squidGuard to function as I had it working previously and cannot seem to get the redirect to function quite right.  If I use the default internal redirector the line looks like:

    redirect http://192.168.0.146/sgerror.php?url=http://pr0n.ics.local&a=%a&n=%n&i=%i&s=%s&t=%t&u=%u

    if I use the other methods it is either a 301 or a 302 but not a hidden redirect.  Before I had it set if they hit a blocked site it would just leave the URL up there as whatever the blocked site was but would display my error from pr0n.ics.local instead.  As far as they could tell the website just didn't resolve.  Now…  they can tell I am blocking things and won't just accept it as being down.  Is there a way to get my original redirect line back?  It was simply:

    redirect http://pr0n.ics.local



  • Short way - need change file /usr/local/pkg/squidguard_configurator.inc
    1123:
    from
    <$rdr_path = "301:$url";
    to

    $rdr_path = "$url";

    1127:
    from
    <$rdr_path = "302:$url";
    to

    $rdr_path = "$url";



  • excellent thx.  I will give that a shot this afternoon.


Log in to reply