Blacklist Update
hi
i have install and configure squidguard now the problem is that i want to update the blacklists 1)how can i update the blacklists 2)i want to remove a domain from the domain list like linuxquestions.org is present in my CHAT list i want to remove it from this list how can i do this waiting for ur help Bilal |
I setup a cron job to do a weekly download from urlblacklist.com, then I extract the tarball and rebuild all the indexes using the squidGuard command. I would suggest to read the O'Reilly Squid book. It really teaches you how to do manage squid in detail. The rest you will have to google.
|
thanks ram
this help me and i update my data base can u help in cron utility... actuly i want i update my data base at midnight and i want to run "squidGuard -C all" command automaticaly thnks again |
Below is my script. It works like a charm. It downloads the latest blacklist every weekend and automatically updates it. Squid is interrupted only for a couple of minutes. It's built for Debian so you may have to modify it if using something else. Save it to /root/scripts/blacklistupdate.sh then run 'crontab -e' as root to add it. Remember to restart cron. I have it running every Sunday night at 2AM or so.
################################ #!/bin/sh # cd /tmp wget -Y on "http://urlblacklist.com/cgi-bin/commercialdownload.pl?type=download&file=bigblacklist" -O blacklist.tar.gz tar -zxf blacklist.tar.gz cd blacklists rsync -a . /var/lib/squidguard/db/ /etc/init.d/squid stop squidGuard -C all chown -R proxy.proxy /var/lib/squidguard/db /etc/init.d/squid start rm -rf /tmp/blackl* ################################ |
hi ram
how r u. thanks for your kind information.i understand your whole information above. but i want to know what is code of your cron file.i want to clear my problem that is given bellow. i write script with the file name "script" for my cron utility i make it executeable and it work manuly but when i use it in cron then no responce form it.This is my cron file. SHELL=/bin/bash PATH=/sbin:/bin:/usr/sbin:/usr/bin MAILTO=root HOME=/ # run-parts */2 * * * * (/./script >> cronmessage.log) #*/15 * * * * (/./pingo >> cronmessage.log) 02 4 * * * root run-parts /etc/cron.daily 22 4 * * 0 root run-parts /etc/cron.weekly 42 4 1 * * root run-parts /etc/cron.monthly this line of code #*/15 * * * * (/./pingo >> cronmessage.log) is my test line and it work properly.it mean that there is not problem in my cron file. can you give me yor cron file please and guide me more in this reguard thanks |
Move the script to the directory /etc/cron.daily and then it will get executed daily at 4:02AM.
|
Better yet, move it to the directory /etc/cron.weekly. You don't need to update you lists every day but only every week. Make sure that cron trully is running in the background after you restart. I hope this helps.
|
hi ram
how r u as i told you in my last post that my "script" file is working manulay.but when i put it into my cron weakly or cron daily dorectories then it is not working. is there any other method or some thing other to do..... bilal |
Obviously, you where able to narrow down the problem to cron. Start doing some troubleshooting with cron.
|
All times are GMT -5. The time now is 08:03 AM. |