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

    Custom Error Page redirect for SquidGuard?

    Scheduled Pinned Locked Moved pfSense Packages
    9 Posts 2 Posters 15.5k 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.
    • M
      mnelson
      last edited by

      Afternoon all.  I was wondering if it's possible to specify a custom error page when "Internal" is choosen as the redirect mode?  If so, what's the best way to go about it?  Ideally I'd like it to include a message indicating that the page was blocked internally by us, possibly with our logo, etc.

      Thanks,

      -Marty

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

        This possible
        http://youURL/page.php?&cla=%a&cln=%n&cli=%i&cls=%s&clt=%t&clu=%u
        variables supported by squidGuard:
        #        %a=client_address
        #        %n=client_name
        #        %i=client_user
        #        %s=client_group
        #        %t=target_group
        #        %u=client_url

        SquidGuardDoc EN  RU Tutorial
        Localization ru_PFSense

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

          Thanks dvserg.  Let me ask, is it possible to load a page onto the firewall itself, and then point squid guard to it (locally)?

          Thanks again,

          Marty

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

            Store this to /usr/local/www

            SquidGuardDoc EN  RU Tutorial
            Localization ru_PFSense

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

              Thanks again!  How would I tell SquidGuard to look at that custom 403 file?  I would assume Internal vs. External, but when I try to just enter the file name, it doesn't work.

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

                @mnelson:

                Thanks again!  How would I tell SquidGuard to look at that custom 403 file?  I would assume Internal vs. External, but when I try to just enter the file name, it doesn't work.

                file path not supported - only http
                http://youpfsense_LAN_IP/youfile

                SquidGuardDoc EN  RU Tutorial
                Localization ru_PFSense

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

                  When I try and access that page, IE simply times out, with "Internet Explorer cannot display the webpage".  Is there anything else I need to configure?

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

                    @mnelson:

                    When I try and access that page, IE simply times out, with "Internet Explorer cannot display the webpage".  Is there anything else I need to configure?

                    if you have webGUI non-standart port
                    http://pfsenseIP:GUIPort/youpage.ext

                    SquidGuardDoc EN  RU Tutorial
                    Localization ru_PFSense

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

                      [smacks head]duh![/smacks head]

                      Thanks, I had a major brain fart.  We do use a different than 80 port, and of course that fixed it.

                      Thanks for everything (including SG!)

                      -Marty

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