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

    Dummies guide to custom squidguard filter page?

    Scheduled Pinned Locked Moved pfSense Packages
    4 Posts 2 Posters 1.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.
    • G
      grievsa93
      last edited by

      Hi All,

      Been googling around and looking around the forum for an answer to this one but struggled.

      We're setting up Squidguard but we're wanting to use an internal page/design rather than the standard text when the user hits a blocked site.
      Since we're using the pfSense as a transparent proxy, we're unable to use the internal redirect easily. Has anyone got baby steps on how to do this?

      The closest i could find was http://forum.pfsense.org/index.php?topic=9519.0 but i didn't really understand it. Has anyone got any clear instructions on what to do?

      Thanks,

      grievsa93

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

        Hi,

        I am using "Redirect mode" = "int error page (enter error message)" and then I put some "Redirect info" in the field. Carefully - not all characters and symbols are allowed.

        Then I modified this file:

        /usr/local/www/sgerror.php
        

        and this fuction:

        
        # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        # IE displayed self-page, if them size > 1024
        # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        
        function get_error_page($er_code_id, $err_msg='') {
        .
        .
        .
        }
        
        

        This only works if pfsense GUI is on http and not https.

        1 Reply Last reply Reply Quote 0
        • G
          grievsa93
          last edited by

          @Nachtfalke:

          Hi,

          I am using "Redirect mode" = "int error page (enter error message)" and then I put some "Redirect info" in the field. Carefully - not all characters and symbols are allowed.

          Then I modified this file:

          /usr/local/www/sgerror.php
          

          and this fuction:

          
          # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          # IE displayed self-page, if them size > 1024
          # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          
          function get_error_page($er_code_id, $err_msg='') {
          .
          .
          .
          }
          
          

          This only works if pfsense GUI is on http and not https.

          Hi Nachtfalke,

          Do you mind me asking what you put into 'Redirect info'? just text saying you naughty person get off this site', or coding?

          Thanks,

          g93

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

            I just put in "Access denied for webpage:"

            I am not good at coding so I searched the forum and found a thread where different people offered their blocked pages. Perhaps searching the forum could help you. I think ist simple php coding.

            My page looks something like that:
            http://forum.pfsense.org/index.php/topic,26057.msg207864.html#msg207864

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