SquidGuard rewrite rule bug?
-
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?
-
This post is deleted! -
This workaround works, have to use it before this bugs gets fixed I guess.