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

    Squid 0.3.9.2 ICAP protocol error.

    Scheduled Pinned Locked Moved Cache/Proxy
    6 Posts 4 Posters 2.8k Views
    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.
    • Q
      qqlaw
      last edited by

      Hello Everyone,

      After i upgraded my squid3 to 0.3.9.2 and i enable AntiVirus i keep getting "ICAP Protocol error" when I try to browse http. SSL links with https seem to open fine

      http://picpaste.com/pics/icap-gJDopVv6.1444613572.jpg

      When I go in Real Time logs i see this:
      11.10.2015 || 21:33:26 || 192.168.2.10 || TAG_NONE/500  || http://www.speedtest.net/ || - || -

      As you see for Address is shows the URL but for Destination all i see is the dash -

      Any ideas what is causing this and how to fix this?

      Thank you!

      1 Reply Last reply Reply Quote 0
      • D
        doktornotor Banned
        last edited by

        @qqlaw:

        Any ideas what is causing this and how to fix this?

        Here. Or wait for 0.4.0. If that doesn't fix it, simply don't use the AV.

        1 Reply Last reply Reply Quote 0
        • S
          shersinghrawat
          last edited by

          Go to menu Diagnostics - Edit File - Browse to the file /usr/local/pkg/squid_antivirus.inc

          Find the  following lines of code :

          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

          and replace with the following

          icap_service service_avi_req reqmod_precache icap://localhost:1344/squid_clamav bypass=on
          adaptation_access service_avi_req allow all
          icap_service service_avi_resp respmod_precache icap://localhost:1344/squid_clamav bypass=on
          adaptation_access service_avi_resp allow all

          Save and restart the Squid and Antivirus service.

          1 Reply Last reply Reply Quote 0
          • D
            doktornotor Banned
            last edited by

            That makes C-ICAP totally useless. You can as well turn it off. Please, stop suggesting BS "fixes" already debunked many times before.

            1 Reply Last reply Reply Quote 0
            • Q
              qqlaw
              last edited by

              Okay thanks you guys I will just wait for a new version to be released.

              1 Reply Last reply Reply Quote 0
              • P
                Pakken
                last edited by

                I actually managed to get it going by deleting all of the advanced feature .conf

                Stop&Start antivirus service and everything's fine. I must admit I didn't further investigate the issue but it's worth a try.
                By the way, great job doktornotor, seriously.
                Bye

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