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

    SquidGuard error page on webserver

    Scheduled Pinned Locked Moved Cache/Proxy
    3 Posts 2 Posters 968 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.
    • S
      Spix
      last edited by

      Hello,

      I would like to have the error page on other web server than the pfsense box.

      On the web server:

      • I have one Microsoft iis, installed php on it.
        I created a site "blocked-by-Proxy.lan.mydomain.com"
        I put sgerror.php in this site
        Modified default document to be sgerror.php on this site

      On the pfsense squidgurd gui:

      • On common ACL, I choose ext err page
        On redirect info, I enter blocked-by-Proxy.lan.mydomain.com
        Klick Save
        klick apply on general tab
        Wait for 10 minutes for it to apply

      Sometimes I get a blank page, sometimes I get a blank page with a string of commands.

      What am I doing wrong?

      1 Reply Last reply Reply Quote 0
      • KOMK
        KOM
        last edited by

        What am I doing wrong?

        Your PHP config is somehow broken.  It's not processing the commands if you're seeing them displayed.  Also, I believe that for this to work, the server must be HTTP only.  No HTTPS unless you have a real trusted cert to go with it.  I find it easier to just use the pfSense box for that.

        1 Reply Last reply Reply Quote 0
        • S
          Spix
          last edited by

          Oh now it´s working,

          I use this URL: https://blocked-by-Proxy.lan.mydomain.com/sgerror.php?url=403%20&msg=&a=%a&n=%n&i=%i&s=%s&t=%t&u=%u

          And I have a certificate on my website.

          Working great now  :)

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