• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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 2 Watching
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.
  • J Offline
    JonathanLee
    last edited by Nov 30, 2022, 1:43 AM

    Hello Fellow Netgate community,

    Can you please help? I recently noticed that the Virus logs that track the Viruses that Clam AV catches for my HTTPS proxy are no longer working inside of Squid as of a couple weeks ago.

    I am running SSL intercept this has worked before please see attached:

    Reference how to install the Squid certificate I had to generate it in the command line and load it into the Pfsense

    This works for version 22.05 better when you load the certificate.

    Check it out Ref: https://forum.it-monkey.net/index.php?topic=23.0

    This site had the best walk through with setting this up outside of the advanced options.

    1667109903018-screen-shot-2022-10-29-at-11.04.40-pm.png
    (Image how redirect use to work)

    Now it will only redirect to a blank page and the test signature is no longer a 100 percent catch

    The logs stopped working I cleaned them and they have all restored except the Virus logs.

    Screenshot 2022-11-29 at 5.30.41 PM.png
    (Virus Catching functional)

    Screenshot 2022-11-29 at 5.30.54 PM.png
    (Logs no longer saving for CLAM AV Virus Table for tracking empty on clear)

    I had to clear the logs as it would no longer save them something got corrupted.

    Screenshot 2022-11-29 at 5.32.26 PM.png

    (I have cleared all log files locally and they have restored)

    Screenshot 2022-11-29 at 5.31.40 PM.png

    (I have also cleared all log files locally for C-iap)

    The virus table will not restore.

    The red stopped page no longer is functional.

    Screenshot 2022-11-29 at 5.42.25 PM.png

    (system will not catch test file)

    Again when it does catch a virus it shows an errored page that the certificate is unknown.

    J 1 Reply Last reply Nov 30, 2022, 1:44 AM Reply Quote 0
    • J Offline
      JonathanLee @JonathanLee
      last edited by Nov 30, 2022, 1:44 AM

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

      G 1 Reply Last reply Nov 30, 2022, 1:48 PM Reply Quote 0
      • G Offline
        Gertjan @JonathanLee
        last edited by Nov 30, 2022, 1:48 PM

        @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 ??

        J 1 Reply Last reply Nov 30, 2022, 1:50 PM Reply Quote 0
        • J Offline
          JonathanLee @Gertjan
          last edited by Nov 30, 2022, 1:50 PM

          This post is deleted!
          G 1 Reply Last reply Nov 30, 2022, 1:58 PM Reply Quote 0
          • G Offline
            Gertjan @JonathanLee
            last edited by Nov 30, 2022, 1:58 PM

            @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 ??

            J 1 Reply Last reply Nov 30, 2022, 2:01 PM Reply Quote 0
            • J Offline
              JonathanLee @Gertjan
              last edited by Nov 30, 2022, 2:01 PM

              @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

              J 1 Reply Last reply Nov 30, 2022, 2:13 PM Reply Quote 0
              • J Offline
                JonathanLee @JonathanLee
                last edited by Nov 30, 2022, 2:13 PM

                @jonathanlee

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

                J 1 Reply Last reply Nov 30, 2022, 2:14 PM Reply Quote 0
                • J Offline
                  JonathanLee @JonathanLee
                  last edited by JonathanLee Nov 30, 2022, 8:41 PM Nov 30, 2022, 2:14 PM

                  @jonathanlee

                  Adapted

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

                  J 1 Reply Last reply Nov 30, 2022, 2:21 PM Reply Quote 0
                  • J Offline
                    JonathanLee @JonathanLee
                    last edited by Nov 30, 2022, 2:21 PM

                    @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
                    • J Offline
                      JonathanLee
                      last edited by Nov 30, 2022, 3:29 PM

                      @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
                      • J Offline
                        JonathanLee
                        last edited by JonathanLee Dec 1, 2022, 12:07 AM Dec 1, 2022, 12:04 AM

                        @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
                        11 out of 11
                        • First post
                          11/11
                          Last post
                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                          This community forum collects and processes your personal information.
                          consent.not_received