I try to get squid proxy running in combination with clamav on a complete fresh NS installation.
Within cache.log I get following message:
/var/log/squid/cache.log:2020/08/07 13:57:01 kid1| WARNING: Squid got an invalid ICAP OPTIONS response from service icap://127.0.0.1:1344/squidclamav; error: unsupported status code of OPTIONS response
Could it be that there is a “Service squidclamav” line missing within /etc/c-icap/c-icap.conf as I can find it for “Service echo”?
Or is that squidclamav Service available via another internal function?
Aug 19 15:03:29 nethserver clamd[6824]: SWF support enabled.
Aug 19 15:03:29 nethserver clamd[6824]: HTML support enabled.
Aug 19 15:03:29 nethserver clamd[6824]: XMLDOCS support enabled.
Aug 19 15:03:29 nethserver clamd[6824]: HWP3 support enabled.
Aug 19 15:03:29 nethserver clamd[6824]: Self checking every 600 seconds.
Aug 19 15:03:31 nethserver systemd[1]: Started clamd scanner (squidclamav) daemon.
Aug 19 15:04:12 nethserver clamd[6824]: instream(local): Eicar-Test-Signature.UNOFFICIAL FOUND
Aug 19 15:05:16 nethserver clamd[6824]: instream(local): Eicar-Test-Signature.UNOFFICIAL FOUND
Aug 19 15:07:52 nethserver clamd[6824]: instream(local): Eicar-Test-Signature.UNOFFICIAL FOUND
Aug 19 15:13:41 nethserver clamd[6824]: SelfCheck: Database status OK.
[root@nethserver ufdbguard]#
But Virus check is just working after adding the following line to /etc/c-icap/c-icap.conf:
I think I could reproduce the issue. With (auto)removal of nethserver-squidguard and ufdbguard, nethserver-squidclamav is removed too.
Please check if nethserver-squidclamav is installed:
But I had to modify /etc/e-smith/templates/etc/c-icap/c-icap.conf/10base to get this line activated.
Is this something which needs to be modified within the following RPM?
There should be a template fragment /etc/e-smith/templates/etc/c-icap/c-icap.conf/90squidclamav writing the line to /etc/c-icap/c-icap.conf when squidclamav is enabled. There’s no need to modify a fragment to add the line manually.