#3 Squidclamav 6.11

v1.0_(example)
open
Darold Gilles
None
5
2014-09-05
2014-04-15
Anonymous
No

Hi,

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.

Discussion

  • Darold Gilles
    Darold Gilles
    2014-04-15

    Hi

    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: <-- 127.0.0.1
    

    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_ip 127.0.0.1
    clamd_port 3310
    

    and comment the line with clamd_local directive.

    Let me know if that solves your issue.

    Regards,

     

  • Anonymous
    2014-04-16

    Hi,
    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
    2014-04-16

    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
      2014-06-18

      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
    2014-04-23

    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
    2014-04-25

    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.

    Regards,

     

  • Anonymous
    2014-06-11

    Hello,

    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,
    Ben

     


Anonymous


Cancel   Add attachments