#3 Squidclamav 6.11

Darold Gilles


I'm trying to use Squid+Squidclamav+SquidGuard on ubuntu.
I have :
-Ubuntu 12.04.4 Server Core
-Squid 3.1.19
-c-icap 0.98
-Squidclamav 6.11
-Squidguard ?

It's doesn't work with this configuration, I have an error (general, ERROR Can't connect to Clamd daemon.)
I try many different tutorial but i always have this problem, actually i find a way to make it work by using squidclamav 6.10.
I'm using this tutorial "http://www.server-world.info/en/note?os=Ubuntu_12.04&p=squid&f=2", I'm only doing this tuto on a clean install.

thank you.


  • Darold Gilles
    Darold Gilles


    You may need to run command:

    dpkg-reconfigure clamav-base

    and answer these questions as follows (accept the default values for all other questions):

    Socket type: <-- TCP
    TCP port clamd will listen on: <-- 3310
    IP address clamd will listen on: <--

    Then restart Clamd and freshclam:

    /etc/init.d/clamav-daemon restart
    /etc/init.d/clamav-freshclam restart

    To test that clamd is listening on localhost:3310

    netstat -tap | grep clamd

    you should see someting like:

    tcp        0      0 localhost.localdom:3310 *:*     LISTEN    29430/clamd

    Then in /etc/squidclamav.conf use the following:

    clamd_port 3310

    and comment the line with clamd_local directive.

    Let me know if that solves your issue.



  • Anonymous

    thanks for your answer but it doesn't resolve the problem.

    My netstat:
    tcp 0 0 localhost:3310 : LISTEN 1308/clamd

    In 6.11 I don't have /etc/squiclamav.conf but I have /etc/c-icap/squidclamav.conf (in 6.10 I have /etc/squidclamav.conf)

    My configuration is exactly the same as the tuto of server-world on new fresh install VM ESX.

    Regards Michael.

  • Darold Gilles
    Darold Gilles

    Ok I understand, please type the folowing command as root:

    ln -s /etc/c-icap/squidclamav.conf /etc/squiclamav.conf

    SquidClamav expect to find the configuration file at /etc/squiclamav.conf so it may start with the default values.

    Are you using an Ubuntu/Debian package ?


    • Anonymous

      There is a typo in the above line (the "d" was missing in the target), should be:

      ln -s /etc/c-icap/squidclamav.conf /etc/squidclamav.conf

      Also, for me, running Ubuntu 12.0.4 the above change to use IP/Port from Socket and adding the symlink above worked for me.

      Thanks a ton for this!


  • Anonymous

    Could you give me the real version of c-icap ? In you first note you said: "c-icap 0.98". But the last release of c-icap is 0.3.3. I have an Ubuntu 12.04 Desktop edition and everything is working well. I'm downloading the server edition and give it a try.

  • Darold Gilles
    Darold Gilles

    The tutorials seems good, but unlike in last link do not use squidguard from squidclamav.conf. You must use squidguard as a squid redirector defined into squid.conf.

    Please upgrade your c-icap package to the latest 0.3.2 version, your running version is obsolete. Even if it may works, it will be easiest to help with the last version.

    You can look at package information at this url: https://launchpad.net/ubuntu/+source/c-icap/1:0.3.2-1 but I don't now if is part of the Ubuntu server 12.04.



  • Anonymous


    I post this message because I had a similar problem with Clamav.

    My configuration :
    Debian Wheezy 7.1
    Squid 3.1.2
    Squidguard 1.5
    c-icap 1:0.1.6-1.1
    clamav 0.98.1
    with squidclamav 6.11

    Just to say that I fixed my problem with the recommandations above.

    My error in /var/log/c-icap/server.log was:
    Wed Jun 11 17:57:54 2014, general, squidclamav.c(617) squidclamav_end_of_data_handler: Wed Jun 11 17:57:54 2014, general, ERROR Can't connect to Clamd daemon.

    I had no need to upgrade c-icap.

    Thank you,



Cancel   Add attachments