Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    Squidguard redirect broken in 2.9.0 - workaround

    Scheduled Pinned Locked Moved Cache/Proxy
    1 Posts 1 Posters 159 Views 1 Watching
    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.
    • D
      DBMandrake
      last edited by DBMandrake

      Hi All,

      I've updated a couple of systems from 2.8.2 to 2.9.0 and discovered that squidGuard blocking does not work depending on how you have it set up. I was previously using the redirect option to redirect it to the error page:

      33603072-6d2c-48cb-a87c-0618fbf06998-image.png

      Where my.domain.com is the full hostname of pfsense. This worked on Squid 6.12 (PFSense 2.8.2) and earlier but does not work on Squid 7.4 as found in PFSense 2.9.0.

      In cache.log you will see errors like kid1| ERROR: URL-rewrite produces invalid request.

      A bit of sleuthing by ChatGPT found the following discussion, indicating that this type of rewrite (at least as the configuration is generated currently by PFSense) will no longer work with the CONNECT method using explicit proxy settings:

      https://ml-archives.squid-cache.org/squid-users/2025-October/027677.html

      The easiest workaround is to change it from redirect to found:

      c11fde6d-ead8-4e05-9f90-64f15f4dd6d1-image.png

      Instead of trying to do an internal rewrite to make Squid fetch the error page as if it was the original page, it sends a 302 found redirect back to the client and causes the client to go fetch the error page directly.

      Depending on your network/firewall setup you may need to change your firewall rules to allow clients to connect to the port hosting the error page (eg the web interface) as previously they would only need access to the proxy port with the redirection occuring internally in Squid.

      Not ideal, but if they can't connect to this port the function of blocking will still be achieved - they just won't see an error message.

      If anyone knows a way to get the internal redirect working again instead of using a 302 redirect I'd be interested to know!

      1 Reply Last reply
      Reply Quote 0

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      • First post
        Last post
      Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
      Privacy Policy · Cookie Policy