DansGuardian Antivirus plugin

In this howto explain step by step how to install an antivirus in our proxy to the Internet, so that all content and files downloaded from the internet are inspected by an antivirus software before being downloaded to the user's machine.

Our proxy server is a Debian Sarge Linux 2.6.10-1-686-smp, and it is necessary to take root permissions and verify that our system has the tools necessary for compilation.
We will assume that the Squid proxy as well as the content filter DansGuardian are already installed and working.

First you need to upgrade, so I type in the following;

  # Apt-get update 
  Hit http://security.debian.org stable / updates / main Packages 
  Hit http://security.debian.org stable / updates / main Release 
 ............................ 
  Fetcher 5922kB in 2m50s (34.8kB / s) 
  Reading Package Lists ...  Donate 

By deploying this last line means that our listing it has been updated. Now install the ClamAV anti-virus and the necessary libraries,

  # apt-get install libclamav1-dev 
  # apt-get install clamav-freshclam 
  # apt-get install libesmtp5 libesmtp-dev 

It is now necessary to download the plug-in antivirus here.

Next we will move the file, unpack and then compile it for later installation

  # mv DansGuardian-2.8.0.3-antivirus-6.3.8.tar.bz2 / usr / src / installers / 
  # cd / usr / src / installers / 
  # tar-xvjf DansGuardian-2.8.0.3-antivirus-6.3.8.tar.bz2 
  # cd dansguardianXXXXX 

Clamd running as daemon

Clamd to run as a daemon is necessary to apply the patch before setting:

  # patch-p1 <clamdscan.patch 

Likewise, the path of the file of local socket has to be properly written in dansguardian.conf. For DansGuardian can communicate with clamd, both should bear the same user and group,
usually nobody.

  #. / configure 
  with the above command is enough, but not this remind you of most, it is necessary to the group and user nobody. 
  # make 
  # make install 
The previous command installed this version of DansGuardian on the previous one, because the file you downloaded the plugin already has antivirus.

DansGuardian reboot;

  # DansGuardian-r 

We reviewed it in the configuration file ClamAV (/ etc / clamav / clamd.conf) and DansGuardian (/ etc / DansGuardian / dansguardian.conf) are pointing to the same socket ClamAV, regularly this socket is located at / tmp / clamd .

And that's it now our proxy-server us towards a free internet virus.

  • Official Web Page of DansGuardian
  • http://dansguardian.org/
    http://dansguardian.org/?page=extras

  • DansGuardian Anti-Virus Plugin
  • http://www.pcxperience.org/dgvirus/

  • Web Content Filtering Portal
  • http://www.harvest.com.br/asp/afn/dg.nsf

    Popularity: 1% [?]