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

SquidGuard rewrite rule bug?

Scheduled Pinned Locked Moved Cache/Proxy
3 Posts 1 Posters 3.4k 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
    PFbest
    last edited by PFbest Aug 10, 2022, 11:22 AM Aug 10, 2022, 11:22 AM

    So, SquidGuard - Rewrites
    If we create a new rewrite rule, add 1 rewrite condition and save it, Apply, it works fine, we can also check SquidGuard - Log - Filter config, we can see the rewrite rule we have created.

    However, if we add more conditions in the same rewrite rule, and if we go to SquidGuard - Log - Filter config and check again, there will always be only 1 condition under the rule which we have defined.

    So,

    Instead of

    rew app_p {
    s@11.22.33.44@example1.com@ir
    s@11.22.33.55@example2.com@ir
    log block.log
    }

    We only get

    rew app_p {
    s@11.22.33.55@example2.com@ir
    log block.log
    }

    OR

    rew app_p {
    s@11.22.33.44@example1.com@ir
    log block.log
    }

    No matter hoe many conditions we add to the rule, there will only be one condition show here, which eventually effects how the condition works, because all other conditions defined in the rule are ignored, only the shown one will work.

    Will someone be able to fix this bug?

    1 Reply Last reply Reply Quote 0
    • P
      PFbest
      last edited by Aug 17, 2022, 4:27 AM

      This post is deleted!
      1 Reply Last reply Reply Quote 0
      • P
        PFbest
        last edited by PFbest Aug 17, 2022, 9:07 AM Aug 17, 2022, 9:06 AM

        This workaround works, have to use it before this bugs gets fixed I guess.

        https://dannyda.com/2022/08/17/how-to-fix-squidguard-on-pfsense-only-the-first-rewrite-rule-work-bug-workaround/

        1 Reply Last reply Reply Quote 0
        1 out of 3
        • First post
          1/3
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
          This community forum collects and processes your personal information.
          consent.not_received