Welcome, Guest. Please login or register.
Did you miss your activation email?
September 10, 2010, 05:41:29 pm

Login with username, password and session length
Visit the Official Endian Knowledge Base  HERE
5230 Posts in 1721 Topics by 1650 Members
Latest Member: amasek
Search:     Advanced search
+  EFW Support
|-+  EFW Support
| |-+  EFW Firewall General Support
| | |-+  2.3 Final: Bug con Content Filter. Banned sites are not being blocked
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: 2.3 Final: Bug con Content Filter. Banned sites are not being blocked  (Read 1067 times)
mrkroket
Hero Member
*****
Offline Offline

Posts: 262


« on: November 04, 2009, 04:12:21 am »

See: http://bugs.endian.it/view.php?id=2300

Symptons: Well known porn sites (hustler, playboy) are not being blocked by content filter, even with updated URL blacklists. Regular expressions filtering still works.

Cause: Bug in restart content filter script, it overwrites insteand append custom blacklists. So the system is only using the custom blacklist domain filter, removing any other domain blacklist.

Quickfix: Append custom files instead of replacing. Use at your own risk:
cp -p /usr/local/bin/restartdansguardian.py /usr/local/bin/ORI_restartdansguardian.py
cat /usr/local/bin/ORI_restartdansguardian.py | sed -e 's/sitelist" % number, "w")/sitelist" % number, "a")/g' >/usr/local/bin/restartdansguardian.py

What i do is to make a copy of the original script, and then to change the "w" to "a" on lines 308 and 318. you can also edit the files and manually change those two "w" chars to "a".
This will append the custom lists on the main blacklist file, instead overwriting it.
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Page created in 4.116 seconds with 16 queries.
Powered by SMF 1.1 RC2 | SMF © 2001-2005, Lewis Media Design by 7dana.com