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

    SquidGuard

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    4 Posts 2 Posters 948 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.
    • P Offline
      pkjacobsen
      last edited by

      Hello forum,

      I'm trying to block access to certain web sites. That part works. But my problem is that I would like to have a custom message saying e.g. "Access denied", but all I get is a blank page with redirection to for example:

      https://xxx.xxx.xxx.xxx/sgerror.php?url=blank&msg=&a=xxx.xxx.xxx.xxx&n=&i=&s=default&t=blk_BL_porn&u=http://playboy.com/

      I have set "Redirect Mode" to "int error page (enter error message)" with a custom text under "Redirect Info".

      My system versions:
      pfSense v2.1.4
      Squid v2.7.9 pkg v4.3.4
      SquidGuard v1.4_4 pkg v1.9.6

      Any suggestions?

      1 Reply Last reply Reply Quote 0
      • KOMK Offline
        KOM
        last edited by

        Where are you setting your redirect, on the Target Category or on the Common ACL?

        1 Reply Last reply Reply Quote 0
        • P Offline
          pkjacobsen
          last edited by

          Common ACL

          1 Reply Last reply Reply Quote 0
          • KOMK Offline
            KOM
            last edited by

            I've had this working in the past, and I remember using the Target Category to handle the redirect.  I don't remember if I had any problems when using the Common ACL redirect.  Try creating a Target Category for your blocked sites, add the sites you want blocked and then change the redirect message.  Then set Common ACL to Deny that Target Category.

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