Clamav
Clamav on Debian Lenny
The current version of clam with Debian stable aka Lenny does not seem to work with FOG. I did the following to get clam working.
- First remove stable version of clam: aptitude purge clamav-freshclam clamav clamav-daemon
- Now add the source for the newer version of clam: nano /etc/apt/sources.list
- I added:
#clam
deb http://volatile.debian.org/debian-volatile stable/volatile main contrib non-free
- aptitude update
- Now proceed with the fog installation script
Note: The above must be done before you install fog. For testing download the Eicar Test Virus to a test workstation and run the clam task on that system. Once the scan has finished the result can be found in the reports section of the FOG web interface.
ClamAV on Ubuntu
Ubuntu 10.04 LTS
- *Optional Steps*
- Remove ClamAV installed with Fog because it's out of date and generates too many warnings when trying to update, if it updates at all
- Add the PPA to your sources list: ppa:ubuntu-clamav/ppa
- Get the newest clamav installed on your Fog Server
- Update your definitions by running freshclam
- Disable scripted updates and let ClamAV download definitions to the root of the web server. Add "ScriptedUpdates off" to the freshclam.conf file on the Fog Server.
- Expand the Fog init file. (from Modifying_the_Init_Image)
- cd /tftpboot/fog/images
- gunzip init.gz
- mkdir initmountdir
- mount -o loop init initmountdir
- Modify the freshclam.conf file inside the init. Add "DatabaseMirror MyFogServerNameOrIP" and "ScriptedUpdates off" to this file.
- Compress the init file.
- cd /tftpboot/fog/images
- umount initmountdir/
- rmdir initmountdir
- gzip init
- Make symbolic links to the ClamAV files in the root of the web server
- cd /var/www
- ln -s /var/lib/clamav/bytecode.cvd
- ln -s /var/lib/clamav/daily.cvd
- ln -s /var/lib/clamav/main.cvd
- Setup a virus scan task for a host and watch your client download the definitions from your Fog server and run the scan