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

    Squid + SquidGuard

    Scheduled Pinned Locked Moved General pfSense Questions
    1 Posts 1 Posters 871 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 Offline
      preacher
      last edited by

      We wanted to have our pfsense using https for the admin panel and squid + squidGuard with a custom error message, on the same box, this is what I came up with.

      Get a second lighttpd process running, listening on port 80, with the document root pointing to /usr/local/www/errorpage, this is where our error.php lies, it's a customized version of sgerror.php.

      The second instance of lighttp is started using the package Shellcmd, the following line is executed:
      /usr/local/sbin/lighttpd -f /var/etc/lighty-errorpage.conf

      This lighty-errorpage.conf, is based on lighty-webConfigurator.conf, where we deleted the ssl stuff and got it to run on port 80.

      squid:
      is running in transparent mode.

      squidGuard:
      Services > Proxy filter > Common ACL
      Redirect mode: ext url found
      Redirect info: http://firewall_ip_address/error.php?url=401&a=%a&n=%n&i=%i&s=%s&t=%t&u=%u

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