SYSTEM WARNING: 'date_default_timezone_get(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone.' in '/usr/share/mantis/www/core.php' line 264

0002300: Content Filter does not work - MantisBT
MantisBT - Endian Firewall
View Issue Details
0002300Endian FirewallProxy HTTPpublic2009-10-27 19:502010-09-21 18:17
Renee 
simon-endian 
normalminorhave not tried
closedfixed 
2.3 
2.3.12.3.1 
0002300: Content Filter does not work
The content filter does not work the dansguardian starts but the blacklists have no effect.
No tags attached.
related to 0002299closed Renee Havp won´t start 
jpg workdone.JPG (145,848) 2009-10-30 03:06
https://bugs.endian.com/file_download.php?file_id=295&type=bug
jpg
Issue History
2009-10-27 19:50ReneeNew Issue
2009-10-29 16:27ReneeNote Added: 0003177
2009-10-29 16:42simon-endianNote Added: 0003179
2009-10-29 16:53peter-endianRelationship addedrelated to 0002299
2009-10-29 16:53peter-endianNote Added: 0003180
2009-10-29 16:53peter-endianStatusnew => feedback
2009-10-29 17:29ReneeNote Added: 0003184
2009-10-29 17:36ReneeNote Edited: 0003184
2009-10-29 17:50ReneeNote Edited: 0003184
2009-10-29 18:19ReneeNote Edited: 0003184
2009-10-30 03:06vaohamaFile Added: workdone.JPG
2009-10-30 21:32ReneeNote Added: 0003200
2009-10-30 21:32ReneeNote Edited: 0003200
2009-10-30 22:30ReneeNote Edited: 0003200
2009-10-30 22:55ReneeNote Edited: 0003200
2009-11-03 17:21mrkroketNote Added: 0003226
2009-11-05 16:41arcanosNote Added: 0003257
2009-11-05 22:55peter-endianStatusfeedback => new
2009-11-05 22:55peter-endianAssigned To => simon-endian
2009-11-05 22:56peter-endianStatusnew => assigned
2009-11-25 09:03christian-endianRelationship addedchild of 0002435
2009-11-25 17:36peter-endianTarget Version => 2.3.1
2009-11-26 16:50simon-endianRelationship addedrelated to 0002248
2009-11-26 16:50simon-endianRelationship addedrelated to 0002419
2009-11-26 16:51simon-endianRelationship addedrelated to 0002397
2009-11-26 16:51simon-endianRelationship addedrelated to 0002404
2009-11-26 16:52simon-endianRelationship deletedrelated to 0002248
2009-11-26 16:52simon-endianRelationship deletedrelated to 0002419
2009-11-26 16:53simon-endianRelationship deletedrelated to 0002397
2009-11-26 16:53simon-endianRelationship deletedrelated to 0002404
2009-11-26 18:23simon-endianNote Added: 0003407
2009-11-26 18:23simon-endianStatusassigned => resolved
2009-11-26 18:23simon-endianFixed in Version => 2.3.1
2009-11-26 18:23simon-endianResolutionopen => fixed
2010-04-13 19:27AnonymousStatusresolved => feedback
2010-04-13 19:27AnonymousResolutionfixed => reopened
2010-09-21 18:17peter-endianStatusfeedback => closed
2010-09-21 18:17peter-endianResolutionreopened => fixed

Notes
(0003177)
Renee   
2009-10-29 16:27   
I search for the error but I found nothing the blacklists exist in /etc/dansguardian/blacklists but dansguardian ignores the blacklists largely and allows to pass itself sides although they blacklistet are and also to block are marked.
(0003179)
simon-endian   
2009-10-29 16:42   
did you create a contentfilter profile and did you create an access policy which uses that contentfilter profile for filter profile.

also check if you have an access rule with higher priority which allows the access.

to test it is best to have only one access rule which uses the contentfilter profile (you could disable all other rules to test)
(0003180)
peter-endian   
2009-10-29 16:53   
so this can also be closed?
(0003184)
Renee   
2009-10-29 17:29   
(edited on: 2009-10-29 18:19)
No it can not closed, yes a have used the standart contentfilter profile and I used the the Standart access policy with filter using 'content1 and no other access rules exist I used the same configuration as with 2.3 Rc1 and there it has functioned.The filter seems to be work but not correctly at example at www.heise.de I have an Input from the blacklist but even not all and at www.computerbase.de it show all the ads from sites although they blacklistet.

//edit/ Can this be the Dansguardian simply the Ips any more cannot determine because sees just most Domains stand as an Ip address in the Blacklist?

@Peter this problem also exists after a new installation where no backup I was played in specially everything has made new once more.

I have tested it again the user-defined black and whitelist works but there it also does not seem to be taken over with the first one sometimes.But the Blacklisten do not function at all, for example, cracks.am stands in the Spyware Blacklist also on block, however, it was put I can access, nevertheless, easily the side.

(0003200)
Renee   
2009-10-30 21:32   
(edited on: 2009-10-30 22:55)
I found the problem the url blacklists works but dansguardian ignores the domain blacklists and this is a very big problem.

/edit/ I found the problem the endian config write the blacklist url entries to /etc/dansguardian/profiles/1/bannedurllist but not the domains entries to /etc/dansguardian/profiles/1/bannedsitelist this file was empty I wrote my entries manually to the file now works the blacklisting.
The config also del by hand provided entries from bannedsitelist again as soon as a change in the profile I am made the problem has avoided first while I have changed the path for bannedsitelist in the conf files.

(0003226)
mrkroket   
2009-11-03 17:21   
The problem is that when they add the option to custom whitelists and blacklists, they broke the non-custom blacklists.

The solution could be to edit the /usr/local/bin/restartdansguardian.py and change the lines 308 and 319:

Line 308: exceptionsitefile = open("/etc/dansguardian/profiles/%s/exceptionsitelist" % number, "w")
Line 319: bannedsitefile = open("/etc/dansguardian/profiles/%s/bannedsitelist" % number, "w")

Change the "w" to "a". That will append custom site lists instead of overwriting them.
(0003257)
arcanos   
2009-11-05 16:41   
I've just confirmed this bug. With a 2.3 new installation non-custom blacklist don't work.

Solution commented by mrkroket works.
(0003407)
simon-endian   
2009-11-26 18:23   
now custom blacklist does not overwrite the entries of bannedsitelist anymore