Squidclamav 6.11
Brought to you by:
darold
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.
Anonymous
Hi
You may need to run command:
and answer these questions as follows (accept the default values for all other questions):
Then restart Clamd and freshclam:
To test that clamd is listening on localhost:3310
you should see someting like:
Then in /etc/squidclamav.conf use the following:
and comment the line with clamd_local directive.
Let me know if that solves your issue.
Regards,
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.
Ok I understand, please type the folowing command as root:
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 ?
There is a typo in the above line (the "d" was missing in the target), should be:
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!
Does this solves your issue ?
Hi,
I try the command ln this morning but it's not working.
I have the same error.
I'm using the same configuration/package in this tutorial.
aptitude -y install squid3
aptitude -y install clamav-daemon
aptitude -y install gcc make curl libcurl4-gnutls-dev c-icap libicapapi-dev
http://downloads.sourceforge.net/project/squidclamav/squidclamav/6.11/squidclamav-6.11.tar.gz
regards Michael.
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.
Hi, i certainly made a mistake with the version of i-cap.
here the light result of dpkg -s c-icap
Version: 1:0.1.6-1ubuntu1
I exactly do the tutorial on :
http://www.server-world.info/en/note?os=Ubuntu_12.04&p=squid&f=1
and
http://www.server-world.info/en/note?os=Ubuntu_12.04&p=squid&f=2
At this time squidguard is not install.
But you can continue with squidguard:
http://www.server-world.info/en/note?os=Ubuntu_12.04&p=squid&f=3
Thank you.
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,
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
Please do not report issue on SourceForge, you must report at github project: https://github.com/darold/squidclamav
To answer to your question, if you take a look at the squidckamav.conf file you will see a directive called clamd_local that will allow to specify the exact path to the unix socket file.
Regards