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

    Squid Log Clam AV Files Stopped Working and Redirect now blank

    Scheduled Pinned Locked Moved Cache/Proxy
    11 Posts 2 Posters 1.3k 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.
    • JonathanLeeJ
      JonathanLee @JonathanLee
      last edited by

      @jonathanlee
      Ref also
      https://forum.netgate.com/topic/138455/squid-clamav-antivirus-not-working-properly/11?_=1669772030240

      GertjanG 1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan @JonathanLee
        last edited by

        @jonathanlee
        You saw :

        a788cf37-a9ae-4471-ae9e-bafdcd30c985-image.png

        which means, to me, that the part that feeds de data to be tested can't contact the scan deamon, clamd.
        Because it isn't running ?
        Because the socket 'rights' are not ok ?
        Because something else ?

        Check the 'clamd' log file.
        When it start, and fails to create the socket, it should log this.
        Tthe proxy can't pipe the received info through the scanner. Result : info isn't scanned any more.

        Btw : I'm not using also these packages on pfSense.
        I do use "clamav" (clamd) on my mail server, as mails are stored in clear in the mail box folders, and after receiving a mail, they are parsed/scanned for common BS.

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

        JonathanLeeJ 1 Reply Last reply Reply Quote 0
        • JonathanLeeJ
          JonathanLee @Gertjan
          last edited by

          This post is deleted!
          GertjanG 1 Reply Last reply Reply Quote 0
          • GertjanG
            Gertjan @JonathanLee
            last edited by

            @jonathanlee
            Probably.
            Remember : I'm not using these pfSense packages

            Under /var/log/ - files are subsequent sub folder.
            Or differently, as you've shown an example above : /var/squid/log/....

            Btw : you use squid clam proxy etc : you should have a console (SSH) open all times (I'm not kidding) with these logs files.
            These 'pfSEnse addons' you use interacts with most incoming traffic : you better know what is going on in real time : that's why there are log files, as they tell you what's going on.
            I would tail them all .....

            No "help me" PM's please. Use the forum, the community will thank you.
            Edit : and where are the logs ??

            JonathanLeeJ 1 Reply Last reply Reply Quote 0
            • JonathanLeeJ
              JonathanLee @Gertjan
              last edited by

              @gertjan Thanks for your help here is the 29th error Can't save PID after it ran again and worked.

              2b7c1580-2275-40f7-83fb-a6bd92b413b7-image.png

              JonathanLeeJ 1 Reply Last reply Reply Quote 0
              • JonathanLeeJ
                JonathanLee @JonathanLee
                last edited by

                @jonathanlee

                49f1876a-05f5-43a1-a3ee-1884ec25ad11-image.png

                JonathanLeeJ 1 Reply Last reply Reply Quote 0
                • JonathanLeeJ
                  JonathanLee @JonathanLee
                  last edited by JonathanLee

                  @jonathanlee

                  Adapted

                  b1946ab3-7480-4f21-837b-4d22338866cf-image.png

                  JonathanLeeJ 1 Reply Last reply Reply Quote 0
                  • JonathanLeeJ
                    JonathanLee @JonathanLee
                    last edited by

                    @jonathanlee

                    I think this fixed it

                    42852bd7-d9ec-427d-9afa-8d1b8066925b-image.png

                    6eb9ac9d-a5b7-455d-a8c8-342828a2987b-image.png

                    Time stamps stopped now

                    1 Reply Last reply Reply Quote 0
                    • JonathanLeeJ
                      JonathanLee
                      last edited by

                      @jonathanlee

                      I wonder if the port is required in the rules that is why I added the firewall ACL for 127.0.0.1:. to the firewall, I feel this is a bit risky however and would only like the one port, I am going to change it to 1344 again I had that listed for use as it is part of the remote cache load from other content acceleration systems. What port does the clamd use for accessing the loopback? Squid already uses 1344 if you look at the config options it is used with I-CAP

                      1 Reply Last reply Reply Quote 0
                      • JonathanLeeJ
                        JonathanLee
                        last edited by JonathanLee

                        @gertjan

                        Error

                        squidclamav_check_preview_handler: Wed Nov 30 15:56:36 2022, 92197/1098002432, ERROR clientip is null, you must set 'icap_send_client_ip on' into squid.conf

                        Screenshot 2022-11-30 at 4.02.08 PM.png

                        It goes on and on...

                        I have also just added

                        adaptation_send_client_ip {$icap_send_client_ip}

                        to line 234 of

                        Screenshot 2022-11-30 at 3.32.23 PM.png

                        ref https://forum.netgate.com/topic/129331/adaptation_send_client_ip-vs-icap_send_client_ip?_=1669853066007

                        It seems to already be enabled also, any ideas?

                        Screenshot 2022-11-30 at 4.06.21 PM.png

                        Keep in mind it all worked until a week or so ago, not it will not even see the test virus anymore

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