14.7.09

Using clamAV in FreeNAS

blog moved to : Anonymond.com new home, no ads! :D

10 comments:

  1. i am using freenas which uses freebsd 7.2 and i am receiving a similar file missing error but the file name is libbz2.so.2
    nitesh

    ReplyDelete
  2. libbz2 is bzip library. it supposed to be included with gzip/bzip. try searching for arc / arj package in the ports. The ftp server is down right now anyway.

    ReplyDelete
  3. ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-7.2-release/archivers/lbzip2-0.15.tbz

    try that already?

    ReplyDelete
  4. So you are install ClamAV onto FreeNAS FULL installation not embended right?

    ReplyDelete
  5. This comment has been removed by the author.

    ReplyDelete
  6. @Cyber Knights
    Yes, Full installation, not embedded

    ReplyDelete
  7. Maybe im slow but just want to be sure

    So the "/usr/local/bin/freshclam" causes clamav to update its virusdatabase or the folders that is going to be searched?

    Is the "/usr/local/bin/clamscan -ri -l /mnt/data location>a" command running all the time once started to search the data location for viruses or just when you execute the command? If so shouldnt this be preformed regularly via the cron?

    And last how do I know that clamav have identified a virus/trojan and what will happen with the virus/infected files?

    ReplyDelete
  8. /user/local/bin/freshclam - causes vlamav to update its database

    ah sorry for the typos, it is actually

    /usr/local/bin/clamscan -ri -l logfile /mnt/"your data location". wysiwyg editor problem. sorry.

    -ri = recursive, infected

    means it scans directories recursively and it will only print out the infected file in the screen and the logfile.

    to remove the infected file automatically use "--remove" without quotation.

    ReplyDelete
  9. I added clamav in my freenas (freebsd) 7.2 using the follwing command and it installed successfully "pkg_add -rv ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-7-stable/security/clamav-0.95.2.tbz"

    I also ran "/usr/local/bin/freshclam"

    It updated the database upto 100% the i performed file scan using

    /usr/local/bin/clamscan -ri -l logfile /mnt/"your data location"
    and it functioned properly BUT AFTER THAN WHEN I TRY TO RUN FRESHCLAM IT GIVE ME THE FOLLOWING ERROT" WARNING: Can't get information about user clamav. pLEASE HELP HOW DO I UPADATE THE DATABASE: CIRKIT

    ReplyDelete
  10. I have managed to resolve the above problem by modifying the owner of clamav databses. this setting is present in /usr/local/etc/freshclam.conf, change the database owner from clamav to root and then freshclam update works well. But now i have another problem, I have set a cron job to execute freshclam upadte every hour by adding cron job in advanced - cro in FreenAS 7.2 4735 but when I click on "execute now" I get a message cron job failed, If I run it from shell it runs perfect Please help to solve this problem...Cirkit

    ReplyDelete