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

    Squidguard sgerror.php

    pfSense Packages
    3
    7
    11.7k
    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.
    • U
      UnderCover
      last edited by

      when i blacklist something such as all ip addresses and use internal error redirection then try ot go to a blacklisted ip the page i get states

      
      ERROR
      The requested URL could not be retrieved
      
      --------------------------------------------------------------------------------
      
      While trying to retrieve the URL: https://10.0.0.2/sgerror.php? 
      
      The following error was encountered: 
      
      Connection to 10.0.0.2 Failed 
      The system returned: 
      
          (92) Protocol errorThe remote host or network may be down. Please try the request again. 
      
      Your cache administrator is ...
      
      --------------------------------------------------------------------------------
      
      Generated Wed, 20 Aug 2008 13:02:12 GMT by ... (squid/2.6.STABLE21) 
      
      

      should it not state that this page has been blocked by squidguard blacklists or something?

      1 Reply Last reply Reply Quote 0
      • M
        Monoecus
        last edited by

        This is the usual error page from squid. If you want something more fancy, you can create your own error page and redirect to that.

        1 Reply Last reply Reply Quote 0
        • U
          UnderCover
          last edited by

          when i went to the default tab and select the default redirect textbox and entered

          401 Unauthorized Access to URL for client [n]

          it still takes me to the same sgerror.php with the same message and not the new message…

          i applied changes and tried restarting squidguard and no luck

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

            The sgerror.php not worked with https GUI. This old problem. You can use external redirection (ext error page).

            SquidGuardDoc EN  RU Tutorial
            Localization ru_PFSense

            1 Reply Last reply Reply Quote 0
            • U
              UnderCover
              last edited by

              ok i did default redirect as

              
              https://10.0.0.1/sgerror.php?url=401 Unauthorized Access to URL [u] for client [n]
              
              and redirect mode: external as found http 302 code
              
              and when i apply changes the blocked sites that normally are blocked stopped being blocked.
              
              when i went back to internal and deleted the default redirect and applied changes the websites went back to being blocked....
              [/u]
              
              1 Reply Last reply Reply Quote 0
              • U
                UnderCover
                last edited by

                reinstalled squidguard package and configuration file changed

                when i try to get it to redirect to https://10.0.0.1/sgerror.php?url=401 Unauthorized Access to URL for client [n]

                it just allows the block website through

                1 Reply Last reply Reply Quote 0
                • U
                  UnderCover
                  last edited by

                  it seems it will sucessfully redirect to anything except my firewall 10.0.0.1 ip sgerror.php page

                  if it points to the lan ip it allows the blocked website through, if it points to msn.com it blocks it stating msn.com's content on the page

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