Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    SquidGuard redirect

    Scheduled Pinned Locked Moved pfSense Packages
    3 Posts 2 Posters 2.0k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • W
      wilpig
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • D
        dvserg
        last edited by

        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";

        SquidGuardDoc EN  RU Tutorial
        Localization ru_PFSense

        1 Reply Last reply Reply Quote 0
        • W
          wilpig
          last edited by

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

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.