• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

Squid3-dev ICAP Protocol Error on 32-bit

Cache/Proxy
17
30
53.6k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E
    exograpix
    last edited by Jun 4, 2014, 5:55 PM

    Does it work with squidguard included in the equation too. I tried but didn't work.

    1 Reply Last reply Reply Quote 0
    • M
      MIT
      last edited by Jun 4, 2014, 7:44 PM

      @exograpix:

      Does it work with squidguard included in the equation too. I tried but didn't work.

      I don't use squidguard, so I am no help on that one.

      1 Reply Last reply Reply Quote 0
      • O
        orochvilato
        last edited by Jul 11, 2014, 2:51 PM

        I've got the same problem on PFSense 2.1.4-RELEASE (amd64)

        Enabling debug on squid, I've seen the following messages :

        2014/07/11 10:36:29.862 kid1| url.cc(386) urlParse: urlParse: Split URL 'icap://127.0.0.1:1344/squidclamav ICAP/1.0
        ' into proto='icap', host='127.0.0.1', port='1344', path='/squidclamav ICAP/1.0'
        2014/07/11 10:36:29.862 kid1| url.cc(422) urlParse: urlParse: URI has whitespace: {icap://127.0.0.1:1344/squidclamav ICAP/1.0
        RESPMOD icap://127.0.0.1:1344/squidclamav ICAP/1.0
        ICAP/1.0 204 Unmodified
        Server: C-ICAP/0.2.5
        2014/07/11 10:36:29.869 kid1| ModXact.cc(742) parseHeaders: parse ICAP headers
        2014/07/11 10:36:29.869 kid1| Xaction.cc(503) setOutcome: ICAP_ERR_OTHER
        2014/07/11 10:36:29.870 kid1| Server.cc(828) handleAdaptationAborted: creating ICAP error entry after ICAP failure
        2014/07/11 10:36:29.870 kid1| forward.cc(397) fail: ERR_ICAP_FAILURE "Internal Server Error"

        It seems the url used to contact ICAP server is malformed (there is a whitespace in it).

        1 Reply Last reply Reply Quote 0
        • N
          netn00b
          last edited by Sep 15, 2014, 4:21 AM

          Sorry to necro this…

          Has anyone found a solution to this? I get this same error message and if the issue is a malformed url in a config file, which one is it?

          1 Reply Last reply Reply Quote 0
          • I
            ikonspirasi
            last edited by Feb 3, 2015, 9:14 PM

            Thanks MIT for the details, however in squid 3.4.10_2 pkg 0.2.6 there are changes in the squid.inc file.
            it's like this:
            icap_service service_avi_req reqmod_precache icap://[::1]:1344/squid_clamav bypass=off
            adaptation_access service_avi_req allow all
            icap_service service_avi_resp respmod_precache icap://[::1]:1344/squid_clamav bypass=on
            adaptation_access service_avi_resp allow all

            i changed the squid_clamav bypass=off to on and the eicar detection is working.

            thank you again :)

            1 Reply Last reply Reply Quote 0
            • M
              marcelloc
              last edited by Feb 3, 2015, 9:51 PM

              As I've posted on other many squid3 topics, clamav integration will work if you:

              • Enable antivirus on squid

              • fix config warnings alerts

              • wait first freshclam to finish

              • stop and start (not restart) squid and c-icap service

              Configure a clamav bypass has the same effect as disabling the antivirus integration.

              I've tested it on amd64 at least 3 times and had a working on all tests.

              Treinamentos de Elite: http://sys-squad.com

              Help a community developer! ;D

              1 Reply Last reply Reply Quote 1
              • F
                fragged
                last edited by Feb 3, 2015, 10:05 PM

                Can you fix the default config so that it works by default. While the GUI does tell you what to do if you save the page again, I'm sure that a lot of people on the forum and irc having issues with Squid do not go back there and save the page a second time.

                1 Reply Last reply Reply Quote 0
                • M
                  marcelloc
                  last edited by Feb 3, 2015, 10:10 PM

                  @fragged:

                  Can you fix the default config so that it works by default. While the GUI does tell you what to do if you save the page again, I'm sure that a lot of people on the forum and irc having issues with Squid do not go back there and save the page a second time.

                  Decide what ip to use on sarg reports warn_php for example is not that simple. If I force Lan IP on package config then somebody will ask to listen on WLAN and/or internal http server.

                  This is a first run configuration. Once configured, you do not need to check again antivurus options.

                  Treinamentos de Elite: http://sys-squad.com

                  Help a community developer! ;D

                  1 Reply Last reply Reply Quote 0
                  • T
                    Topper727
                    last edited by Feb 5, 2015, 6:41 AM

                    I have this problem on the 64 bit version RC 2.2 and I just go to the antivirus page and click save again and then the system comes back up .. but wish it stop messing up

                    Dell 2950 g3 server
                    Intel(R) Xeon(R) CPU E5430 @ 2.66GHz
                    Current: 2000 MHz, Max: 2667 MHz
                    8 CPUs: 2 package(s) x 4 core(s)
                    8152 MiB and 600meg 10k drive
                    Pfsense 2.4 .. Hoping to get the phpvirtualbox going again.

                    1 Reply Last reply Reply Quote 0
                    • A
                      Antonio_Grande
                      last edited by Feb 6, 2015, 7:14 AM Feb 5, 2015, 5:23 PM

                      Friends, help, please, how to solve a problem with this error ICAP?
                      Configuring a clamav bypass=1 is disabling the antivirus integration!
                      PFsense 2.1.5 x64, squid 3.3.10

                      1 Reply Last reply Reply Quote 0
                      • M
                        marcelloc
                        last edited by Feb 5, 2015, 6:40 PM

                        Did you read the topic first?

                        https://forum.pfsense.org/index.php?topic=77264.msg485524#msg485524

                        Treinamentos de Elite: http://sys-squad.com

                        Help a community developer! ;D

                        1 Reply Last reply Reply Quote 0
                        • A
                          Antonio_Grande
                          last edited by Feb 6, 2015, 5:25 AM

                          @marcelloc:

                          Did you read the topic first?
                          https://forum.pfsense.org/index.php?topic=77264.msg485524#msg485524

                          Friend, yes, I read it. But to my regret, I didn't understand part of instructions:
                          fix config warnings alerts
                          wait first freshclam to finish
                          Please, explain more in detail which needs to be made here.
                          Thanks!

                          1 Reply Last reply Reply Quote 0
                          • BismarckB
                            Bismarck
                            last edited by Feb 6, 2015, 6:23 AM

                            Antonio, don't waste your time in pfSense 2.1.5 x64 i-cap ist still broken there, since it has never worked before.

                            I guess you need to upgrade to pfSense 2.2 x64 to get it work, if I get marcelloc right?

                            fix config warnings alerts = look in Status: System logs: General for errors and fix it

                            wait first freshclam to finish = execute freshclam in the console/shell and watch via top till its finished

                            Good luck.

                            1 Reply Last reply Reply Quote 0
                            • A
                              Antonio_Grande
                              last edited by Feb 6, 2015, 7:13 AM

                              Error in system log (PFsense 2.1.5 x64, squid 3.3.10):

                              kernel: pid 85487 (c-icap), uid 9595: exited on signal 11
                              

                              It is possible to fix it, or it really nonremovable error in 2.1.5 x64 in ICAP?
                              I don't like 2.2. With it I have many more problems with Squid+SquidGuard+Lightsquid. May be later, build of PFsense will be stable and I update it.

                              1 Reply Last reply Reply Quote 0
                              • M
                                marcelloc
                                last edited by Feb 6, 2015, 1:41 PM

                                @Antonio_Grande:

                                It is possible to fix it, or it really nonremovable error in 2.1.5 x64 in ICAP?

                                Unfortunatelly no. the icap error are related to freebsd 8.x and icap, not pfsense itself. the same compile args and config options works fine on freebsd 8.x 32bit version.

                                An workaround for pfsense 2.1.x 64bits if you are not using ssl interception is to use clamav on dansguardian ou havp.

                                Treinamentos de Elite: http://sys-squad.com

                                Help a community developer! ;D

                                1 Reply Last reply Reply Quote 0
                                • J
                                  jvamos
                                  last edited by Mar 27, 2015, 5:31 PM Mar 26, 2015, 5:27 PM

                                  I am receiving ICAP errors with squid3 on amd64 pfSense 2.2 but only on http sites. I think I must have something misconfigured because HTTPS is fine. How does one use HAVP with squid, I feel like I have too many redundant proxies with HAVP and Dansguardian.

                                  1 Reply Last reply Reply Quote 0
                                  • J
                                    jonesr
                                    last edited by Mar 28, 2015, 2:11 PM

                                    I was having a similar problem until I saw this: https://forum.pfsense.org/index.php?topic=87424.msg480232#msg480232

                                    fresh 2.2 install
                                        Install squid3
                                    …
                                        chech squid tabs, save, fix config options pointed by gui alerts
                                        On antivirus tab, save config twice as first time it will load sample files and second check config options.
                                        via console wait (repeating ps ax | grep -i fresclam  or tail -f /var/log/clamav/freshclam.log) clamav database first slow update
                                        enable transparent mode(do not select loopback on any squid option)
                                        stop and start squid via gui to force c-icap to restart too after first freshclam.
                                    …

                                    Edited original post to describe my steps. The key part is the "save twice" on the AV tab. Fix the problems presented, each has its solution right in the message. I am now able to browse HTTP sites without the ICAP errors.

                                    pfSense AMD64 VGA - Assume latest version.
                                    Suricata, pfBlockerNG, SquidGuard, squid3.

                                    1 Reply Last reply Reply Quote 0
                                    • J
                                      jvamos
                                      last edited by Mar 30, 2015, 4:10 PM

                                      $ repeating ps ax | grep -i freshclam  or tail -f /var/log/clamav/freshclam.log
                                      grep: freshclam: No such file or directory
                                      grep: or: No such file or directory
                                      grep: tail: No such file or directory
                                      

                                      For some reason I can't freshclam

                                      1 Reply Last reply Reply Quote 0
                                      • M
                                        marcelloc
                                        last edited by Mar 30, 2015, 9:33 PM

                                        @jvamos:

                                        $ repeating ps ax | grep -i freshclam  or tail -f /var/log/clamav/freshclam.log
                                        

                                        This line means

                                        repeat this cmd on console every 30 seconds for example

                                        ps ax | grep -i freshclam 
                                        

                                        or this one once

                                        tail -f /var/log/clamav/freshclam.log
                                        

                                        Treinamentos de Elite: http://sys-squad.com

                                        Help a community developer! ;D

                                        1 Reply Last reply Reply Quote 0
                                        • J
                                          jonesr
                                          last edited by Mar 31, 2015, 2:19 PM

                                          I think I just typed "freshclam" (without quotes) to update, as marcelloc says the other commands are to show the status of freshclam, not to execute it.

                                          pfSense AMD64 VGA - Assume latest version.
                                          Suricata, pfBlockerNG, SquidGuard, squid3.

                                          1 Reply Last reply Reply Quote 0
                                          • First post
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.