Navigation

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

    Custom SquidGuard Error Page not working

    Cache/Proxy
    3
    6
    2323
    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
      MrGlasspoole last edited by

      Hi,

      if SquidGuard blocks a page all i get is 404 - Not Found. So i decided i need
      something custom and found: https://forum.pfsense.org/index.php?topic=26057.0

      I'm trying to do it like 3dinfluence: https://forum.pfsense.org/index.php?topic=26057.msg173293#msg173293

      I can show the site with "http://warning.mydomain.net/index.html" fine.
      I'm not sure if i should put
      http://warning.skulltronics.net/index.html&a=%a&n=%n&i=%i&s=%s&t=%t&u=%u
      or
      http://warning.skulltronics.net/lg_block.php&a=%a&n=%n&i=%i&s=%s&t=%t&u=%u
      in Common ACL > Redirect info.
      Redirect mode is set to "ext url move".

      If i call a blocked site i get the URL:
      http://warning.mydomain.net/index.html&a=192.168.0.70&n=&i=&s=default&t=blk_malicious&u=http://rarlab.com/%20192.168.0.70/-%20-%20GET
      But i only see a white page with 404 - Not Found.

      With this method do i still need to modify the sgerror.php somehow?

      1 Reply Last reply Reply Quote 0
      • V
        veyron last edited by

        I'm having the same issue… need some help here :)

        1 Reply Last reply Reply Quote 0
        • V
          veyron last edited by

          Well, one way to go over the problem is add a ? to the end of the url. So, imagine that we are redirecting to http://google.com. If we replace it by http://google.com/? we get the correct page, but the url still have the *-%20-%20GET…

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

            So you have it working?

            Where did you place the "?"

            1 Reply Last reply Reply Quote 0
            • jimp
              jimp Rebel Alliance Developer Netgate last edited by

              Place the ? between the page title (e.g. blocked.php) and the parameters, so something.php?one=1&two=2&three=3, and so on.

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

                Ok with

                http://warning.mydomain.net/index.html?&a=%a&n=%n&i=%i&s=%s&t=%t&u=%u
                

                the 404 is gone and i can see the source code in Firebug.

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post

                Products

                • Platform Overview
                • TNSR
                • pfSense Plus
                • Appliances

                Services

                • Training
                • Professional Services

                Support

                • Subscription Plans
                • Contact Support
                • Product Lifecycle
                • Documentation

                News

                • Media Coverage
                • Press
                • Events

                Resources

                • Blog
                • FAQ
                • Find a Partner
                • Resource Library
                • Security Information

                Company

                • About Us
                • Careers
                • Partners
                • Contact Us
                • Legal
                Our Mission

                We provide leading-edge network security at a fair price - regardless of organizational size or network sophistication. We believe that an open-source security model offers disruptive pricing along with the agility required to quickly address emerging threats.

                Subscribe to our Newsletter

                Product information, software announcements, and special offers. See our newsletter archive to sign up for future newsletters and to read past announcements.

                © 2021 Rubicon Communications, LLC | Privacy Policy