# ICAP integration will not work

**URL:** <https://community.f5.com/t/icap-integration-will-not-work/12108>\
**Category:** Technical Forums\
**Tags:** design, management, security, icap\
**Created:** [March 10, 2014, 2:55pm UTC](https://community.f5.com/t/icap-integration-will-not-work/12108 "2014-03-10T14:55:53Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![seilemor\_131269](https://avatars.discourse-cdn.com/v4/letter/s/53a042/32.png) [@seilemor\_131269](https://community.f5.com/u/seilemor_131269)\
**Post date:** [March 10, 2014, 2:55pm UTC](https://community.f5.com/t/icap-integration-will-not-work/12108/1 "2014-03-10T14:55:53Z")

</div>

Hello community,

I want to check with the ASM module uploaded files against an ICAP server (Bluecoat Proxy AV). I´ve configured the ICAP settings and the settings in the asm policy. If I now upload a file in a upload form I see in the tcpdump that the F5 communicates with the ICAP server. If I upload a eicar test file I see in the ICAP log that the file has been recognized. The problem is that the F5 did not block the file. In the asm log I see that the “request” is okay and not a dangerous attack. What can I do? The ICAP server works fine. We are using it with more than one system.

---

<div class="post-metadata">

**Author:** ![boneyard](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/boneyard/32/20419_2.png) [@boneyard](https://community.f5.com/u/boneyard)\
**Post date:** [March 11, 2014, 6:54pm UTC](https://community.f5.com/t/icap-integration-will-not-work/12108/2 "2014-03-11T18:54:21Z")

</div>

what is your ASM policy set to? what does the message exactly say?

---

<div class="post-metadata">

**Author:** ![seilemor\_131269](https://avatars.discourse-cdn.com/v4/letter/s/53a042/32.png) [@seilemor\_131269](https://community.f5.com/u/seilemor_131269)\
**Post date:** [March 12, 2014, 7:22am UTC](https://community.f5.com/t/icap-integration-will-not-work/12108/3 "2014-03-12T07:22:47Z")

</div>

here are some screenshots from the settings of my asm policy regarding the AntiVirus settings.

 ![0691T000006AqRqQAK.jpg](https://d20hrnpixdzcsd.cloudfront.net/original/2X/8/8578525cef13f618abf9f18d0be61cc783d6d73f.jpeg)

 ![0691T000006AqRrQAK.jpg](https://d20hrnpixdzcsd.cloudfront.net/original/2X/e/e25a427d061482b7a084d762e3b4650630644d8c.jpeg)

At the moment the policy is transparent but if there is a violation I should see it in the asm log.

 ![0691T000006AqRsQAK.jpg](https://d20hrnpixdzcsd.cloudfront.net/original/3X/4/2/429076953d54243db8e528ac4d7991cde7aa8a86.jpeg)

And here is the log of the ICAP scanner…

```tcl
TIME;TIME-INT;PROTOCOL;CLIENT;SERVER;VIRUS;URL;HWSERIALNUMBER;MACHINENAME;MACHINEIP;AVVENDOR;AVENGINEVERS;AVPATTERNVERS;AVPATTERNDATE;APPVERSION
2014/03/10 14:15:49;1394460949;ICAP;10.2.160.101;;EICAR-AV-Test;;3609081087;pxghza-av5;10.160.72.18;Sophos, Plc.;3.50.1;4.98G.6465406.2540362744;2014/03/10 08:06:00;ProxyAV (Version 3.5.1.3(122676))
2014/03/10 14:16:28;1394460988;ICAP;10.2.160.101;;EICAR-AV-Test;;3609081087;pxghza-av5;10.160.72.18;Sophos, Plc.;3.50.1;4.98G.6465406.2540362744;2014/03/10 08:06:00;ProxyAV (Version 3.5.1.3(122676))
2014/03/10 14:17:10;1394461030;ICAP;10.2.160.101;;EICAR-AV-Test;;3609081087;pxghza-av5;10.160.72.18;Sophos, Plc.;3.50.1;4.98G.6465406.2540362744;2014/03/10 08:06:00;ProxyAV (Version 3.5.1.3(122676))

```

Do you need more informations?

---

<div class="post-metadata">

**Author:** ![boneyard](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/boneyard/32/20419_2.png) [@boneyard](https://community.f5.com/u/boneyard)\
**Post date:** [March 13, 2014, 7:17pm UTC](https://community.f5.com/t/icap-integration-will-not-work/12108/4 "2014-03-13T19:17:10Z")

</div>

all seems fine, dont directly see a reason why this would fail, is your ICAP scanner supported by the F5? there is some config needed i believe for some other then the default.

---

<div class="post-metadata">

**Author:** ![seilemor\_131269](https://avatars.discourse-cdn.com/v4/letter/s/53a042/32.png) [@seilemor\_131269](https://community.f5.com/u/seilemor_131269)\
**Post date:** [March 17, 2014, 8:09am UTC](https://community.f5.com/t/icap-integration-will-not-work/12108/5 "2014-03-17T08:09:27Z")

</div>

do you know which ICAP scanners are supported or should I open a case for the F5 support?

---

<div class="post-metadata">

**Author:** ![seilemor\_131269](https://avatars.discourse-cdn.com/v4/letter/s/53a042/32.png) [@seilemor\_131269](https://community.f5.com/u/seilemor_131269)\
**Post date:** [March 17, 2014, 9:28am UTC](https://community.f5.com/t/icap-integration-will-not-work/12108/6 "2014-03-17T09:28:01Z")

</div>

All right… I have found the problem. The configuration of the virus\_header\_name in the system variables are wrong. The configuration are ok for the McAfee ICAP scanner (this is the default). For BluecoatProxy AV the configuration must be “X-Error-details,X-Virus-Details”.

Thank you for the help.

---

<div class="post-metadata">

**Author:** ![Philipp\_Stadler](https://avatars.discourse-cdn.com/v4/letter/p/e47c2d/32.png) [@Philipp\_Stadler](https://community.f5.com/u/Philipp_Stadler)\
**Post date:** [July 10, 2014, 1:08pm UTC](https://community.f5.com/t/icap-integration-will-not-work/12108/7 "2014-07-10T13:08:12Z")

</div>

Hi,

I’ve similar problems for the file scanning - I configured the settings as you described (virus\_header\_name and other av settings in ASM).

When I do a tcpdump I can see:

1. REQMOD icap://1.2.3.4:1344/reqmod ICAP/1.0\r\n
2. no ICAP answer from server
3. multiple “Continuation” from F5
4. nothing else

I’ve also tested the request adaption method, but I don’t want to send every request to the ICAP server (only file uploads). With request adaption I got:

1. REQMOD icap://1.2.3.4:1344/avscan ICAP/1.0\r\n

2. ICAP/1.0 200 OK\r\n

3. multiple “Continuation” from F5 with TCP-ACKs from Bluecoat

4. nothing else

This seems better to me, because Bluecoat answers with ICAP OK.

So I have some questions:

Is there any log or anything else for better troubleshooting this issue?

Can I adjust the “servicename” in ASM config method?

Does anyone have an idea, what may be the problem?

Thanks for your response, Philipp

---

<div class="post-metadata">

**Author:** ![seilemor\_131269](https://avatars.discourse-cdn.com/v4/letter/s/53a042/32.png) [@seilemor\_131269](https://community.f5.com/u/seilemor_131269)\
**Post date:** [July 15, 2014, 6:29am UTC](https://community.f5.com/t/icap-integration-will-not-work/12108/8 "2014-07-15T06:29:15Z")

</div>

Hey Philipp,

do you have a Firewall between the F5 and the ICAP servers and do you know the value which your ICAP server use for “tacking” a mail!? My problem in the past was that I´ve used the wrong value for identify if the ICAP has found a virus or not. One other problem at my structure was that I´ve configured the first time only the internal floating IP in the firewall for accessing the ICAP server. For successfully connection it is neccessary to permit also the internal self IPs from the appliances.

The problem which you´ve describe sounds similiar like my second problem.

Best regards

---

<div class="post-metadata">

**Author:** ![Philipp\_Stadler](https://avatars.discourse-cdn.com/v4/letter/p/e47c2d/32.png) [@Philipp\_Stadler](https://community.f5.com/u/Philipp_Stadler)\
**Post date:** [July 15, 2014, 6:42am UTC](https://community.f5.com/t/icap-integration-will-not-work/12108/9 "2014-07-15T06:42:52Z")

</div>

Hi, I can eliminate a firewall issue on the way between F5 and ICAP server, because I already did a dump on both firewall interfaces, which exactly matches. What do you mean by “do you know the value which your ICAP server use for “tacking” a mail!?” Thanks

---

<div class="post-metadata">

**Author:** ![seilemor\_131269](https://avatars.discourse-cdn.com/v4/letter/s/53a042/32.png) [@seilemor\_131269](https://community.f5.com/u/seilemor_131269)\
**Post date:** [July 15, 2014, 11:34am UTC](https://community.f5.com/t/icap-integration-will-not-work/12108/10 "2014-07-15T11:34:41Z")

</div>

Each ICAP server will maybe use a different value to identify if a virus exists or not (x-headers) and if you do not configure the right value to search for the F5 will not see that the file which was inspected is bad.

Additional see the post above which is tagged as answer.

---

<div class="post-metadata">

**Author:** ![Philipp\_Stadler](https://avatars.discourse-cdn.com/v4/letter/p/e47c2d/32.png) [@Philipp\_Stadler](https://community.f5.com/u/Philipp_Stadler)\
**Post date:** [July 15, 2014, 2:07pm UTC](https://community.f5.com/t/icap-integration-will-not-work/12108/11 "2014-07-15T14:07:57Z")

</div>

yes - I already referred to the tagged answer and already configured “X-Error-details,X-Virus-Details” at virus\_header\_name variable. But how can I be sure, that I configured the right values?

---

<div class="post-metadata">

**Author:** ![seilemor\_131269](https://avatars.discourse-cdn.com/v4/letter/s/53a042/32.png) [@seilemor\_131269](https://community.f5.com/u/seilemor_131269)\
**Post date:** [July 15, 2014, 2:14pm UTC](https://community.f5.com/t/icap-integration-will-not-work/12108/12 "2014-07-15T14:14:32Z")

</div>

You must know it 🙂

But it is already strange that if you do a TCPdump at the F5 you´ll see no answer package.

---

<div class="post-metadata">

**Author:** ![Philipp\_Stadler](https://avatars.discourse-cdn.com/v4/letter/p/e47c2d/32.png) [@Philipp\_Stadler](https://community.f5.com/u/Philipp_Stadler)\
**Post date:** [July 16, 2014, 6:09am UTC](https://community.f5.com/t/icap-integration-will-not-work/12108/13 "2014-07-16T06:09:04Z")

</div>

I see answer packages (TCP-ACKs), but no ICAP answers.

---

<div class="post-metadata">

**Author:** ![robert\_83958](https://avatars.discourse-cdn.com/v4/letter/r/dfb087/32.png) [@robert\_83958](https://community.f5.com/u/robert_83958)\
**Post date:** [October 29, 2014, 2:02pm UTC](https://community.f5.com/t/icap-integration-will-not-work/12108/14 "2014-10-29T14:02:06Z")

</div>

i have a simmilar problem. I’ve set the icap uri to /avscan in the settings (and restarted asm module), but according to the tcpdump the F5 still tries with /reqmod Anyone solved this?

---

<div class="post-metadata">

**Author:** ![AntonyLovric\_15](https://avatars.discourse-cdn.com/v4/letter/a/ea666f/32.png) [@AntonyLovric\_15](https://community.f5.com/u/AntonyLovric_15)\
**Post date:** [March 19, 2015, 2:15pm UTC](https://community.f5.com/t/icap-integration-will-not-work/12108/15 "2015-03-19T14:15:03Z")

</div>

Has anyone configured ASM [ICAP] with Sophos yet?
