Navigation

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

    HAVP Antivirus -> scan via GUI failed

    pfSense Packages
    2
    2
    2784
    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.
    • M
      MaxHeadroom last edited by

      Hi
      i have Fresh installation of Antivirus HAVP pkg and  pf 2.1 today snapshot

      2013.01.29 17:13:06 Starting scan file '/var/db'.
      –------------------------------------
      ERROR: Can't connect to clamd: No such file or directory

      ----------- SCAN SUMMARY -----------
      Infected files: 0
      Total errors: 1
      Time: 0.000 sec (0 m 0 s)

      Any hint what's wrong? (All selectable dirs failed)

      regards max

      1 Reply Last reply Reply Quote 0
      • A
        ax112 last edited by

        sorry for the necro post, but this issue still is around and I wanted to post my workaround.

        It seems pfsense is setting up clamav with a non-default location for its socks and pid file (/var/run).  The default location is /var/run/clamav.  But when the scanning program is called by the gui, it's not given the path of the config file and doesn't know about the location of the sock file.  This creates a symlink as a work around.

        I'm not sure if the pid file is needed, but I linked it anyway.

        mkdir /var/run/clamav
        ln -s /var/run/clamd.pid /var/run/clamav/clamd.pid
        ln -s /var/run/clamd.sock /var/run/clamav/clamd.sock
        

        And it now works.

        2013.05.28 02:08:31 Starting scan file '/var/db'.
        
        ----------- SCAN SUMMARY -----------
        Infected files: 0
        Time: 4.963 sec (0 m 4 s)
        
        1 Reply Last reply Reply Quote 0
        • First post
          Last post