
8th May 2006, 00:39
|
|
Member
|
|
Join Date: Dec 2005
Location: Washington, DC
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
possible update
Hey till or falko,
Hey Sorry I haven't done anything in a few months. However, I was recently playing with clamav and noticed it isn't set to allow for auto update. I set this up on my server and it appears to work fine. I haven't tested it fully.
Here is how it is done.
Edit the script that writes clamd.conf /home/admispconfig/ispconfig/tools/clamav/etc/clamd.conf/home/admispconfig/ispconfig/tools/clamav/etc/clamd.conf
Add the lines
DNSDatabaseInfo current.cvd.clamav.net
optional
DatabaseMirror db.XY.clamav.net
where XY is the country code
then have a cron.d job that runs every night with
freshclam -v
|

8th May 2006, 01:13
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,843
Thanks: 781
Thanked 1,557 Times in 1,476 Posts
|
|
ISPConfig uses the freshclam daemon to update the virus signature database, without a cron job. If you run
Code:
ps aux|grep freshclam
you'll see it.
|

8th May 2006, 22:40
|
|
Member
|
|
Join Date: Dec 2005
Location: Washington, DC
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
whoops
I was pretty sure you had it to auto update. sorry guys :-)
|

18th June 2006, 03:52
|
|
Senior Member
|
|
Join Date: Apr 2006
Location: Sydney
Posts: 236
Thanks: 0
Thanked 6 Times in 6 Posts
|
|
hey, I just noticed this post and thought I'd throw this in.
My current (non ispc) server which runs clamav on it for mail does one special little trick which I'd like to share with everyone (since I never hear that anyone has done it).
With the 'freshclam' command getting new pattern updates, I noticed that it can't do anything about the program itself. I haven't really checked on the net for anything that automates it but for those of you who like using tar.gz sources and not RPMs like myself, here's an autoupdate script i wrote which has been working for a year or two to auto update clamav itself.
PHP Code:
#!/bin/bash LOG="/var/log/clamav-prog-update.log"
STATUS="`/usr/local/bin/freshclam --log=/var/log/clam-update.log 2>&1 | grep \"WARNING: Local version\"`"
NEW="`echo $STATUS |awk {'print $7'}`" OLD="`echo $STATUS | awk {'print $4'}`";
# If it's OLD, updated it. if [ "$NEW" ]; then cd /usr/src/source
wget http://easynews.dl.sourceforge.net/sourceforge/clamav/clamav-$NEW.tar.gz >$LOG 2>&1 cd ..
tar xvfz source/clamav-$NEW.tar.gz >$LOG 2>&1 cd clamav-$NEW
../compile-clamav >$LOG 2>&1
RESULT="$?"
if [ "$RESULT" = 0 ]; then echo "OLD=$OLD NEW=$NEW" rm -fr /usr/src/clamav-$OLD/ >$LOG 2>&1 service amavisd restart >$LOG 2>&1 fi
fi
|

18th June 2006, 20:20
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 19,796
Thanks: 285
Thanked 1,805 Times in 1,357 Posts
|
|
Nice script
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 12:30.
|
Recent comments
3 hours 58 min ago
9 hours 14 min ago
9 hours 25 min ago
9 hours 33 min ago
10 hours 35 min ago
12 hours 42 min ago
15 hours 8 min ago
15 hours 26 min ago
15 hours 34 min ago
16 hours 50 min ago