Project

General

Profile

Actions

Bug #13412

open

SquidGuard, Rewrite rules, only one sub-rule will work if more than one sub-rule defined

Added by UserPfbUg User over 1 year ago. Updated over 1 year ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
squidguard
Target version:
-
Start date:
08/10/2022
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Affected Version:
2.6.0
Affected Plus Version:
Affected Architecture:

Description

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 {
@example1.com@ir
@example2.com@ir
log block.log
}

We only get

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

OR

rew app_p {
@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?

Actions

Also available in: Atom PDF