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

    ClamAV

    pfSense Packages
    5
    8
    8.0k
    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.
    • R
      rds_correia
      last edited by

      Anyone seen that guy that took m0n0wall core and is using it for ClamAV?
      Maybe that guy could make up a nice AV package.
      I just can't seem to find his mails on the mailing list…as usual.
      If any of you guys know who I am talking about just post his email address or contact him and tell him about pfSense and ask him if he's willing to commit some of his work to pfS ;).
      Cheers

      pfSense 2.2.4 running on a HP DL385 G5
      WAN bce(4) + LAN em(4) + OPTn em(4) with 10 VLANs + Snort + PPTP VPN soon to be trashed by OVPN

      1 Reply Last reply Reply Quote 0
      • S
        sullrich
        last edited by

        You mean this one?  GMail + mailing lists to the rescue yet again.

        From: Cimino Vittorio cimino@teamufficio.itMailed-By: lists.m0n0.ch
        To: David Henry dhenry@nauticallandings.com, Jayden Phillips trainguy77@shaw.ca, lola lola@yais.net, Monowall DEV m0n0wall-dev@lists.m0n0.chDate: Oct 24, 2005 9:33 AM
        Subject: Re: [m0n0wall-dev] m0n0 <-> proxy suggestion
        Reply | Reply to all | Forward | Print | Add sender to Contacts list | Delete this message | Report phishing | Show original | Message text garbled?
        20051006
        Update clamav 0.87 support for rar 3.0
        http://www.teamufficio.it/teamwall/To20051006.tgz

        20051005
        http://www.teamufficio.it/teamwall/av1.jpg
        http://www.teamufficio.it/teamwall/av2.jpg
        http://www.teamufficio.it/teamwall/av3.jpg
        http://www.teamufficio.it/teamwall/av4.jpg
        http://www.teamufficio.it/teamwall/av5.jpg
        http://www.teamufficio.it/teamwall/av6.jpg
        http://www.teamufficio.it/teamwall/av7.jpg
        http://www.teamufficio.it/teamwall/av8.jpg
        http://www.teamufficio.it/teamwall/av9.jpg
        http://www.teamufficio.it/teamwall/av10.jpg
        http://www.teamufficio.it/teamwall/av11.jpg
        http://www.teamufficio.it/teamwall/av12.jpg

        Require Hd - / filesystem (/dev/ad0a) - swap slice (/dev/ad0b)
        http://www.teamufficio.it/teamwall/ufsroot-1.2b9av-20051005.tgz

        Example:

        Hd mounted as secondary master "ad2"

        dd if=/dev/zero of=/dev/ad2 bs=1k count=20
        disklabel -Bwr ad2 auto ; disklabel -e ad2

        make a: slice type 4.2BSD
        make b: slice type swap (mem * 1.5)
        make c: slice unused

        newfs -b 8192 -f 1024 -U /dev/ad2a
        mount /dev/ad2a /mnt
        cd /mnt
        tar xvzf /yourdirectory/ufsroot-1.2b9av-20051005.tgz
        sync
        cd /
        umount /mnt

        Restart the system with ad2 mounted as primary master (ad0)

        The first boot take time for making log file… Wait the system is not
        locked !!!

        The http port is 81 (admin - mono) Administrative
        The http port is 83 (user - user) User/m0n0wall-dev@lists.m0n0.ch/lola@yais.net/trainguy77@shaw.ca/dhenry@nauticallandings.com/cimino@teamufficio.it

        1 Reply Last reply Reply Quote 0
        • R
          rds_correia
          last edited by

          That's the one Scott :D.
          I'll send im an email 1st thing in the morning ;).
          Thanks for the tip.
          Cheers

          pfSense 2.2.4 running on a HP DL385 G5
          WAN bce(4) + LAN em(4) + OPTn em(4) with 10 VLANs + Snort + PPTP VPN soon to be trashed by OVPN

          1 Reply Last reply Reply Quote 0
          • ?
            Guest
            last edited by

            What exactly did you want done with a clamav package?  There are two packages in development that will eventually use clamav for doing different things, and a stand-alone clamav package would be almost completely useless.  As it stands, Myntric is intending to include virus scanning functionality to the squid package, this will involve HAVP which relies on clamav.  Also I am working on a spam/virus filter for email which will use clamav.

            1 Reply Last reply Reply Quote 0
            • R
              rds_correia
              last edited by

              @submicron:

              Also I am working on a spam/virus filter for email which will use clamav.

              That's what I'd like to do with ClamAV :).
              And since you're working on it already I won't bother that Italian buddy from m0n0's ML.
              Thanks for the info as I wasn't aware of your work.
              Cheers

              pfSense 2.2.4 running on a HP DL385 G5
              WAN bce(4) + LAN em(4) + OPTn em(4) with 10 VLANs + Snort + PPTP VPN soon to be trashed by OVPN

              1 Reply Last reply Reply Quote 0
              • P
                penoycentral
                last edited by

                clamav with havp will be great!!!!

                1 Reply Last reply Reply Quote 0
                • R
                  raj2569
                  last edited by

                  Any progress on clam? I have havp 0.77 working on FreeBSD and have made it a freebsd package. Now looking to include it in pfSense. If you have semi working clam av packages I am willing to take it forward, else i am starting from scratch.

                  raj

                  1 Reply Last reply Reply Quote 0
                  • R
                    raj2569
                    last edited by

                    Hi,

                    I have made a clamav package, it's not complete as yet and I have not added any web gui for starting or stopping or for other options in config files. As of now you can just test it from command line by running clamscan. The actual use for clamscan is for havp. As of now havp has experimental FreeBSD support and I am working on packaging it for FreeBSD. In the mean time pl test the clamav package. This is my first stab at packaging some thing for pfSense, so there will be lot's of things that can be improved.

                    raj

                    I am posting the clamav section from pkg_config.xml and the package configuration files.

                    
                              <package><name>clamav</name>
                              <website>http://www.clamav.net/</website>
                              <descr>Opensource anti virus</descr>
                              <category>Services</category>
                              <config_file>http://agni.linuxense.com/packages/config/clamav.xml</config_file>
                              <depends_on_package_base_url>http://ftp13.freebsd.org/pub/FreeBSD/ports/i386/packages-6.0-release/All</depends_on_package_base_url>
                              <depends_on_package>clamav-0.87.tbz</depends_on_package>
                              <version>0.1</version>
                              <status>BETA</status>
                              <maintainer>raj@linuxense.com</maintainer>
                              <configurationfile>clamav.xml</configurationfile>
                              <logging><facilityname>clamav</facilityname>
                                    <logfilename>clamav.log</logfilename></logging></package> 
                    
                    

                    config.xml

                    
                     <packagegui><name>clamav</name>
                            <version>0.1</version>
                            <title>ClamAV: Settings</title>
                            <include_file>/usr/local/pkg/clamav.inc</include_file>
                    
                            <service><name>clamav</name>
                                    <rcfile>/usr/local/etc/rc.d/clamav.sh</rcfile></service> 
                    
                            <additional_files_needed><prefix>/usr/local/pkg/</prefix>
                                <chmod>0755</chmod>
                                http://agni.linuxense.com/packages/config/clamav.inc</additional_files_needed> 
                    
                            <custom_php_install_command>clamav_install_command();</custom_php_install_command> 
                            <custom_php_deinstall_command>clamav_deinstall_command();</custom_php_deinstall_command> 
                            <custom_delete_php_command>sync_package_clamav();</custom_delete_php_command> 
                            <custom_php_resync_config_command>sync_package_clamav();</custom_php_resync_config_command> 
                            <custom_add_php_command>sync_package_clamav();</custom_add_php_command></packagegui> 
                    
                    

                    clamav.inc

                    
                    function sync_package_clamav() {
                            conf_mount_rw();
                            config_lock();
                            global $config;
                            $start = "/usr/local/sbin/clamd &\n";
                            $stop  = "/usr/bin/killall clamd\n" .
                            "sleep 2";
                            write_rcfile(array(
                                               "file" => "clamav.sh",
                                               "start" => $start,
                                               "stop" =>  $stop
                                               )
                                         );
                            conf_mount_ro();
                            config_unlock();
                            mwexec("killall -HUP cron");
                            mwexec("/usr/local/etc/rc.d/clamav.sh stop");
                            mwexec("/usr/local/etc/rc.d/clamav.sh start");
                    }
                    
                    function clamav_install_command() {
                            global $config, $g;
                            mwexec ("mkdir -p /var/db/clamav");
                            mwexec ("/usr/local/bin/freshclam");
                            sync_package_clamav();
                    }
                    
                    function clamav_deinstall_command() {
                            global $config, $g;
                            conf_mount_rw();
                            unlink_if_exists("/usr/local/etc/rc.d/clamav.sh");
                            unlink_if_exists("/var/db/clamav/daily.cvd");
                            unlink_if_exists("/var/db/clamav/main.cvd");
                            unlink_if_exists("/var/db/clamav");
                            conf_mount_ro();
                    }
                    
                    ?>
                    
                    
                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post
                    Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.