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

    Squid filter giving me errors

    Scheduled Pinned Locked Moved pfSense Packages
    6 Posts 3 Posters 6.3k 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
      pman860507
      last edited by

      i set up my squid filter to int error page with me entering an error message. (pictures are below) and every time i go to a website that is blocked it give me the error below, but if i do a url redirect to http://google.com it will take me to google. this setting worked perfectly before for me but now it seems to be broken does anyone know what happened?

      This is the web address of what its trying to reassign me to.

      # ----------------------------------------------------------------------------------------------------------------------
      # SquidGuard error page generator
      # (C)2006-2007 Serg Dvoriancev
      # ----------------------------------------------------------------------------------------------------------------------
      # This programm processed redirection to specified URL or generated error page for standart HTTP error code.
      # Redirection supported http and https protocols.
      # ----------------------------------------------------------------------------------------------------------------------
      # Format:
      # sgerror.php?url=[http://myurl]or[https://myurl]or[error_code[space_code]output-message][incoming SquidGuard variables]
      # Incoming SquidGuard variables:
      # a=client_address
      # n=client_name
      # i=client_user
      # s=client_group
      # t=target_group
      # u=client_url
      # Example:
      # sgerror.php?url=http://myurl.com&a=..&n=..&i=..&s=..&t=..&u=..
      # sgerror.php?url=https://myurl.com&a=..&n=..&i=..&s=..&t=..&u=..
      # sgerror.php?url=404%20output-message&a=..&n=..&i=..&s=..&t=..&u=..
      # ----------------------------------------------------------------------------------------------------------------------
      # Tags:
      # myurl and output messages can include Tags
      # [a] - client address
      # [n] - client name
      # [i] - client user
      # [s] - client group
      # [t] - target group
      # [u] - client url
      # Example:
      # sgerror.php?url=401 Unauthorized access to URL [u] for client [n]
      # sgerror.php?url=http://my_error_page.php?cladr=%5Ba%5D&clname=%5Bn%5D // %5b=[ %d=]
      # ----------------------------------------------------------------------------------------------------------------------
      # Special Tags:
      # blank - get blank page
      # blank_img - get one-pixel transparent image (for replace banners and etc.)
      # Example:
      # sgerror.php?url=blank
      # sgerror.php?url=blank_img
      # ----------------------------------------------------------------------------------------------------------------------
      HTTP error codes (ERROR_CODE):
      301 Moved Permanently
      302 Found
      303 See Other
      305 Use Proxy
      400 Bad Request
      401 Unauthorized
      402 Payment Required
      403 Forbidden
      404 Not Found
      405 Method Not Allowed
      406 Not Acceptable
      407 Proxy Authentication Required
      408 Request Time-out
      409 Conflict
      410 Gone
      411 Length Required
      412 Precondition Failed
      413 Request Entity Too Large
      414 Request-URI Too Large
      415 Unsupported Media Type
      416 Requested range not satisfiable
      417 Expectation Failed
      500 Internal Server Error
      501 Not Implemented
      502 Bad Gateway
      503 Service Unavailable
      504 Gateway Time-out
      505 HTTP Version not supported
      [/u][/u][/s][/i]
      
      1 Reply Last reply Reply Quote 0
      • D
        dvserg
        last edited by

        You webGUI use HTTPS proto - this is a prolem.

        SquidGuardDoc EN  RU Tutorial
        Localization ru_PFSense

        1 Reply Last reply Reply Quote 0
        • P
          pman860507
          last edited by

          @dvserg:

          You webGUI use HTTPS proto - this is a prolem.

          why? anyway i can change it so the redirect isnt https but the gui still is?

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

            @pman860507:

            @dvserg:

            You webGUI use HTTPS proto - this is a prolem.

            why? anyway i can change it so the redirect isnt https but the gui still is?

            Try Select ext error page type.

            SquidGuardDoc EN  RU Tutorial
            Localization ru_PFSense

            1 Reply Last reply Reply Quote 0
            • N
              ncolunga
              last edited by

              Same problem here, the ext redirect doesn't work ¿Is there any other workaround?

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

                @ncolunga:

                Same problem here, the ext redirect doesn't work ¿Is there any other workaround?

                Change Redirect type to Ext..

                SquidGuardDoc EN  RU Tutorial
                Localization ru_PFSense

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