darold / squidguardmgr

SquidGuard Manager is a Perl CGI script used to manage SquidGuard blocklists and ACLs. It also have a GUI for SquidClamav. It support all configurations directives of SquidGuard and SquidClamav, configuration files can still be edited by hand.
http://squidguardmgr.darold.net/
Other
12 stars 5 forks source link

Filters autocreation double other rules/classes specifications #38

Closed e-gaulue closed 9 years ago

e-gaulue commented 10 years ago

Using default squidGuard.conf file coming with wheezy installation. If I ask auto creation in squidguardmgr filters page, all the lines in the rules/classes are doubled like this:

# Global variables
logdir  /var/log/squidguard
dbhome  /var/lib/squidguard/db

# Time rules
# abbrev for weekdays:
# s = sun, m = mon, t =tue, w = wed, h = thu, f = fri, a = sat
time workhours {
        weekly mtwhf 08:00-16:30
        weekly *-*-01 08:00-16:30
        weekly mtwhf 08:00-16:30
        weekly *-*-01 08:00-16:30
}

# Source addresses
src admin {
        ip      1.2.3.4  1.2.3.5
        ip      1.2.3.4  1.2.3.5
        user    root foo bar
        user    root foo bar
        within  workhours
}
src foo-clients {
        ip      172.16.2.32-172.16.2.100 172.16.2.100 172.16.2.200
        ip      172.16.2.32-172.16.2.100 172.16.2.100 172.16.2.200
}
src bar-clients {
        ip      172.16.4.0/26
        ip      172.16.4.0/26
}

Regards,

darold commented 9 years ago

Fixed in commit 3022233. Thanks for the report.