Hello ,
I have installed icap server by referring https://sourceforge.net/p/c-icap/wiki/c-icapInstall/
I got the application status as mentioned. We have configured our application by giving the icap server IP, and port. When we try to upload a file that file should be scanned by icap we are getting error. From the icap access log I can see the below log. during upload .
04/Feb/2022:04:41:34 +0000, 127.0.0.1 127.0.0.1 OPTIONS srv_clamav?allow204=on&force=on&sizelimit=off&mode=simple 200
04/Feb/2022:04:42:11 +0000, 127.0.0.1 127.0.0.1 OPTIONS SYMCScanResp-AV 404
04/Feb/2022:04:42:48 +0000, 127.0.0.1 127.0.0.1 OPTIONS SYMCScanResp-AV 404
Can you help us to figure out the reason.
*Note application is hosted in the same machine where the icap is installed.
Anonymous
From the logs I am seeing that you are trying to access the ICAP service SYMCScanResp-AV which does not exist in your c-icap server.
Hi @chtsanti
Thank you for the reply. Can you let me know. How to include SYMCScanResp-AV in c-icap server and rectify the issue.
Hi,
Instead of SYMCScan can we use any other Antivirus. Can you let me know where to change it.
Try to define an alias of virus_scan service. Just add the following in your virus_scan service configuration file:
ServiceAlias SYMCScanResp-AV virus_scan
I am not sure if this is will work however, it depends on the ICAP client you are trying to use.
Last edit: chtsanti 2022-02-11
Maybe I am able to help if you report the type of ICAP client you are using. IS this an HTTP proxy? A client which just scan files for viruses? Something else?
I am using c-icap with squidcalmav, A client which scan files for virus during uploading from our file manager.
Our requirement is to scan files for virus that we are uploading from our application, In our application we have option to configure antivirus server.
If you use squidclamav then you need a service alias like the following:
ServiceAlias SYMCScanResp-AV squidclamav
For more squidclamav options you need help from squidclamav project.