Koozali.org: home of the SME Server

blacklist updating problems

Offline elgoth2003

  • **
  • 23
  • +0/-0
    • Lafayette Data Systems, LLC.
blacklist updating problems
« on: January 22, 2008, 08:52:03 PM »
Hey all, Right now i've downloaded and installed my latest blacklist updates from urlblacklist.com. My problem is that when I try and restart dansguardian to incorporate the latest updates, dansguardian hangs when trying to start up again.  Does anyone have this problem or know what to do?

These are the commands I ran
Quote
[root@ccsserver dansguardian]# chown -R root.root blacklists
[root@ccsserver dansguardian]# chmod -R 640 blacklists
[root@ccsserver dansguardian]# find blacklists -name new\*
blacklists/news
[root@ccsserver dansguardian]# chmod ug+x blacklists
[root@ccsserver dansguardian]# chmod ug+x blacklists/*
[root@ccsserver dansguardian]# /etc/init.d/dansguardian status
dansguardian (pid 23561 23560 23559 20112 20111 20110 20109 20108 20107 20106 20105 20104 20103 20102 20101 20100 20099 20098 20097 20096 20095 20094 20093 20092 20091 18605 18604 15691 15690 5000 4999) is running...
[root@ccsserver dansguardian]# /etc/init.d/dansguardian stop
Shutting down Web Content Filter (dansguardian):           [  OK  ]
[root@ccsserver dansguardian]# /etc/init.d/dansguardian status
dansguardian is stopped
[root@ccsserver dansguardian]# /etc/init.d/dansguardian start
Starting Web Content Filter (dansguardian):

Many Thanks

Offline raem

  • *
  • 3,972
  • +4/-0
Re: blacklist updating problems
« Reply #1 on: January 23, 2008, 11:54:19 AM »
elgoth2003

I downloaded bigblacklist.tar.gz to /etc/dansguardian/lists
and ran those commands except for the find.... line
the files were expanded into
/etc/dansguardian/lists/blacklists
and dansguardian restarts OK

Perhaps you have a bad download or untarred to the wrong location
...

Offline raem

  • *
  • 3,972
  • +4/-0
Re: blacklist updating problems
« Reply #2 on: January 23, 2008, 12:40:52 PM »
elgoth2003

Perhaps your issue is to do with sorted/unsorted lists or one of the other points raised in Q10 - Q14 here
http://urlblacklist.com/?sec=faq

From my old Howto here
http://distro.ibiblio.org/pub/linux/distributions/smeserver/contribs/rmitchell/smeserver/howto/deprecated/sme7/dansguardian%20instal%20&%20configure%20HOWTO%20for%20sme%20server.htm

the find command (to randomize the lists - refer Q10 & Q11) should be:
find blacklists -name new\* -exec rm {} \;
...

Offline elgoth2003

  • **
  • 23
  • +0/-0
    • Lafayette Data Systems, LLC.
Re: blacklist updating problems
« Reply #3 on: January 23, 2008, 05:25:10 PM »
elgoth2003

Perhaps your issue is to do with sorted/unsorted lists or one of the other points raised in Q10 - Q14 here
http://urlblacklist.com/?sec=faq

From my old Howto here
http://distro.ibiblio.org/pub/linux/distributions/smeserver/contribs/rmitchell/smeserver/howto/deprecated/sme7/dansguardian%20instal%20&%20configure%20HOWTO%20for%20sme%20server.htm

the find command (to randomize the lists - refer Q10 & Q11) should be:
find blacklists -name new\* -exec rm {} \;

I use the old howto alot to make sure I don't mess up the dansguardian updates but when I run the command to randomize the lists it returns this error:
Quote
[root@ccsserver dansguardian]# find blacklists -name new\* -exec rm {} \;
rm: cannot remove `blacklists/news': Is a directory

Offline raem

  • *
  • 3,972
  • +4/-0
Re: blacklist updating problems
« Reply #4 on: January 24, 2008, 02:27:06 PM »
elgoth2003

From the URLBlacklist.com FAQ:

Unsorting a single file is very easy. Simply use the 'rl' or 'unsort' unix command on each of the text files. You can find information on these here:
http://ch.tudelft.nl/~arthur/rl/
http://www.vanheusden.com/unsort/

To unsort all the files in the blacklist in one go you could:
cd blacklistdir; find . -type f -exec rl '{}' -o '{}'.tmp \; -exec mv -f '{}'.tmp '{}' \;
This will find all the files in blacklistdir and subdirectories and randomize the lines. It should only take a few seconds if that. If you are using unsort instead of rl you will have to edit the above.
...