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

    Clamav pfSense missing clamav.sock on /var/run/clamav

    Scheduled Pinned Locked Moved Cache/Proxy
    3 Posts 2 Posters 1.1k 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.
    • L
      lexposito1986
      last edited by

      Hey there, I have some issue. I installed pfSense 2.6.0 version and configured squid on it. Then tried to configure clamav and this one refused to start.

      So, I checked in many places unsing information from many forums and..... found many clues like:

      /var/log/server.log

      Sun Apr 16 16:26:17 2023, 67437/21540864, squidclamav.c(2081) dconnect: Sun Apr 16 16:26:17 2023, 67437/21540864, ERROR Can't connect to clamd on local socket /var/run/clamav/clamd.sock.
      Sun Apr 16 16:26:17 2023, 67437/21540864, squidclamav.c(787) squidclamav_end_of_data_handler: Sun Apr 16 16:26:17 2023, 67437/21540864, ERROR Can't connect to Clamd daemon.
      

      Then, I went to /usr/local/etc/clamd.conf and found directive LocalSocket pointing to /var/run/clamd/clamd.sock

      So, I checked pointed location and realyzed that clamd directory in that location is empty.

      How can I fix this situation??. I am not a handy person in freeBSD.

      I think clamav installation went wrong during squid pkg installation. Icap service is runing but clamd service refuse to start (oviously).

      PS: Squid is working properly, only issued when icap service is runing.

      Regards Leo.

      Dobby_D 1 Reply Last reply Reply Quote 0
      • Dobby_D
        Dobby_ @lexposito1986
        last edited by

        @lexposito1986

        Can you connect to the pfSense web-configurator?
        If so, you may show us a screenshot of the config page
        like shown below;

        clamav.jpg

        You can try out the two following things;

        • set it up, click save, and run an signature update
        • go to the main page an have a look for all running tasks
          can be added as a widget on the dachboard
          It should be now showing the following like shown below;
          ClammAV 2.jpg

        The second try out is to connect to the console (Putty)
        and set up the following command;

        [23.01-RELEASE][root@xxxxxxxxx]/root: pkg update
        Updating pfSense-core repository catalogue...
        pfSense-core repository is up to date.
        Updating pfSense repository catalogue...
        pfSense repository is up to date.
        All repositories are up to date.
        
        
        [23.01-RELEASE][root@xxxxxxxxxx]/root: pkg upgrade
        Updating pfSense-core repository catalogue...
        pfSense-core repository is up to date.
        Updating pfSense repository catalogue...
        pfSense repository is up to date.
        All repositories are up to date.
        Checking for upgrades (0 candidates): 100%
        Processing candidates (0 candidates): 100%
        Checking integrity... done (0 conflicting)
        Your packages are up to date.
        
        

        That you can be sure that all of your installed packages are
        up to date. You may also be able to have a look over the patches you can install, install first the patch system and
        then you may be able to apply the patches you need.
        Make sure that all "Recommended System Patches "
        will be installed.

        #~. @Dobby

        Turris Omnia - 4 Ports - 2 GB RAM / TurrisOS 7 Release (Btrfs)
        PC Engines APU4D4 - 4 Ports - 4 GB RAM / pfSense CE 2.7.2 Release (ZFS)
        PC Engines APU6B4 - 4 Ports - 4 GB RAM / pfSense+ (Plus) 24.03_1 Release (ZFS)

        L 1 Reply Last reply Reply Quote 1
        • L
          lexposito1986 @Dobby_
          last edited by

          @dobby_ Thanks a lot, I am going to try.

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