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

    SquidGuard rewrite rule bug?

    Cache/Proxy
    1
    3
    3.3k
    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

      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

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • P
          PFbest
          last edited by PFbest

          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
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.