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

    What Squid version and SquidGuard or DansGuardian?

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    46 Posts 6 Posters 25.8k 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.
    • D
      doktornotor Banned
      last edited by

      @MrGlasspoole:

      ps ax | grep -i fresclam or tail -f /var/log/clamav/freshclam.log tells me:

      grep: fresclam: No such file or directory
      grep: or: No such file or directory
      grep: tail: No such file or directory
      

      LULz… :D Those were supposed to be two separate commands....

      
      ps ax | grep -i freshclam
      
      
      
      tail -f /var/log/clamav/freshclam.log
      
      
      1 Reply Last reply Reply Quote 0
      • M
        MrGlasspoole
        last edited by

        lol - nobody told this guy neither: https://forum.pfsense.org/index.php?topic=87562.msg481208#msg481208

        The output is:

         2560  -  Is     0:01.78 /usr/local/bin/freshclam --daemon -p /var/run/clamav/freshclam.pid
        48264  0  S+     0:00.00 grep -i freshclam
        
        getfile: Can't write 1448 bytes to /var/db/clamav/clamav-e7d674823863b493974d944efdd05df5.tmp/clamav-b69402a7fda033c3acff60eb7da8b732.tmp
        WARNING: Can't download main.cvd from database.clamav.net
        Received signal: wake up
        ClamAV update process started at Thu Jan 29 16:42:08 2015
        WARNING: Your ClamAV installation is OUTDATED!
        WARNING: Local version: 0.98.5 Recommended version: 0.98.6
        DON'T PANIC! Read http://www.clamav.net/support/faq
        getfile: Can't write 1448 bytes to /var/db/clamav/clamav-26487302f658d4bfe55c0f00608d77a0.tmp/clamav-51d39e1a1042c682cfd37d9fe5df5094.tmp
        WARNING: Can't download main.cvd from database.clamav.net
        

        OUTDATED? I just installed it…

        1 Reply Last reply Reply Quote 0
        • marcellocM
          marcelloc
          last edited by

          @MrGlasspoole:

          OUTDATED? I just installed it…

          Minor version changes that need a long update sequence. (clamav developer, freebsd  package maintainer, pfsense package update, pfsense pbi build,…)

          Treinamentos de Elite: http://sys-squad.com

          Help a community developer! ;D

          1 Reply Last reply Reply Quote 0
          • M
            MrGlasspoole
            last edited by

            And what to do now?

            1 Reply Last reply Reply Quote 0
            • marcellocM
              marcelloc
              last edited by

              @MrGlasspoole:

              And what to do now?

              Update virus definitions, the version alert is just a warning, not a service stop.

              Treinamentos de Elite: http://sys-squad.com

              Help a community developer! ;D

              1 Reply Last reply Reply Quote 0
              • M
                MrGlasspoole
                last edited by

                I can't find a tab where i see something like update definitions…

                1 Reply Last reply Reply Quote 0
                • marcellocM
                  marcelloc
                  last edited by

                  @MrGlasspoole:

                  I can't find a tab where i see something like update definitions…

                  run freshclam via console/ssh

                  Treinamentos de Elite: http://sys-squad.com

                  Help a community developer! ;D

                  1 Reply Last reply Reply Quote 0
                  • M
                    MrGlasspoole
                    last edited by

                    still the same message:

                    getfile: Can't write 1448 bytes to /var/db/clamav/clamav-e1dc9c51263e0827cd2a0b973ba41d4e.tmp/clamav-d6889ae227e0a4134d824971de0a4a84.tmp
                    WARNING: Can't download main.cvd from database.clamav.net
                    
                    1 Reply Last reply Reply Quote 0
                    • C
                      Cino
                      last edited by

                      Can your ping database.clamav.net from your box?

                      1 Reply Last reply Reply Quote 0
                      • M
                        MrGlasspoole
                        last edited by

                        Yes

                        PING db.other.clamav.net (193.1.193.64): 56 data bytes
                        64 bytes from 193.1.193.64: icmp_seq=0 ttl=51 time=35.980 ms
                        64 bytes from 193.1.193.64: icmp_seq=1 ttl=51 time=40.412 ms
                        64 bytes from 193.1.193.64: icmp_seq=2 ttl=51 time=35.124 ms
                        
                        --- db.other.clamav.net ping statistics ---
                        3 packets transmitted, 3 packets received, 0.0% packet loss
                        round-trip min/avg/max/stddev = 35.124/37.172/40.412/2.318 ms
                        
                        1 Reply Last reply Reply Quote 0
                        • M
                          MrGlasspoole
                          last edited by

                          And now?

                          1 Reply Last reply Reply Quote 0
                          • C
                            Cino
                            last edited by

                            reinstall squid3 and see if that resolves the issue. i'm wondering if a folder wasn't created to store the av db

                            1 Reply Last reply Reply Quote 0
                            • M
                              MrGlasspoole
                              last edited by

                              That did not help.

                              $ freshclam
                              ClamAV update process started at Fri Jan 30 23:32:23 2015
                              WARNING: Your ClamAV installation is OUTDATED!
                              WARNING: Local version: 0.98.5 Recommended version: 0.98.6
                              DON'T PANIC! Read http://www.clamav.net/support/faq
                              ERROR: Can't download main.cvd from database.clamav.net
                              Giving up on database.clamav.net...
                              Update failed. Your network may be down or none of the mirrors listed in /usr/local/etc/freshclam.conf is working.
                              
                              1 Reply Last reply Reply Quote 0
                              • marcellocM
                                marcelloc
                                last edited by

                                Check first if there is another freshclam process running before trying to execute another one.

                                Look foe other squid 3 threads on 2.2.  I've posted a really step by step guide to get it working on 64bits version.

                                Treinamentos de Elite: http://sys-squad.com

                                Help a community developer! ;D

                                1 Reply Last reply Reply Quote 0
                                • M
                                  MrGlasspoole
                                  last edited by

                                  I already saw that other threads.

                                  Now i had this:

                                  /var: write failed, filesystem is full
                                  getfile: Can't write 8192 bytes to /var/db/clamav/clamav-2786ca6469a9b9aafef1622f0f0f13be.tmp/clamav-f58a45f6084309de3a81938d410d397b.tmp
                                  WARNING: Can't download main.cvd from database.clamav.net
                                  

                                  After i saw the FULL i disabled "Use RAM Disks" and ClamAV works now.
                                  But the squidGuard service still does not start.

                                  1 Reply Last reply Reply Quote 0
                                  • C
                                    Cino
                                    last edited by

                                    why were you using a ram disk? I can see using it if your using pfSense without any packages… Once you add packages, you need /var to not disappear

                                    anything in the log for squidguard? Which version did you install?

                                    /var/squid/logs/cache.log
                                    /var/squidGuard/log

                                    1 Reply Last reply Reply Quote 0
                                    • D
                                      doktornotor Banned
                                      last edited by

                                      @Cino:

                                      why were you using a ram disk?

                                      Because people have no clue what they are doing.

                                      1 Reply Last reply Reply Quote 0
                                      • M
                                        MrGlasspoole
                                        last edited by

                                        @Cino:

                                        why were you using a ram disk?

                                        RAM is faster and takes stress away from the disk.
                                        I increased the ram disk and thought after the virus definitions are now there i can turn ram disk
                                        on again. But when i do that clamd does not start.

                                        @Cino:

                                        anything in the log for squidguard? Which version did you install?

                                        squidGuard-squid3 1.4_7 pkg v.1.9.6

                                        squidGuard/log is empty.

                                        Here is some stuff from squid/logs/cache.log:

                                        Shared object "libldap-2.4.so.2" not found, required by "squidGuard"
                                        2015/01/31 13:50:37 kid1| WARNING: redirector #Hlpr0 exited
                                        Shared object "libldap-2.4.so.2" not found, required by "squidGuard"
                                        2015/01/31 13:50:37 kid1| Warning: empty ACL: acl throttle_exts urlpath_regex -i "/var/squid/acl/throttle_exts.acl"
                                        Shared object "libldap-2.4.so.2" not found, required by "squidGuard"
                                        Shared object "libldap-2.4.so.2" not found, required by "squidGuard"
                                        2015/01/31 13:50:37| pinger: Initialising ICMP pinger ...
                                        2015/01/31 13:50:37|  icmp_sock: (1) Operation not permitted
                                        2015/01/31 13:50:37| pinger: Unable to start ICMP pinger.
                                        2015/01/31 13:50:37|  icmp_sock: (1) Operation not permitted
                                        2015/01/31 13:50:37| pinger: Unable to start ICMPv6 pinger.
                                        2015/01/31 13:50:37| FATAL: pinger: Unable to open any ICMP sockets.
                                        Shared object "libldap-2.4.so.2" not found, required by "squidGuard"
                                        Shared object "libldap-2.4.so.2" not found, required by "squidGuard"
                                        2015/01/31 13:50:40 kid1| Warning: empty ACL: acl throttle_exts urlpath_regex -i "/var/squid/acl/throttle_exts.acl"
                                        2015/01/31 13:50:40| pinger: Initialising ICMP pinger ...
                                        2015/01/31 13:50:40|  icmp_sock: (1) Operation not permitted
                                        2015/01/31 13:50:40| pinger: Unable to start ICMP pinger.
                                        2015/01/31 13:50:40|  icmp_sock: (1) Operation not permitted
                                        2015/01/31 13:50:40| pinger: Unable to start ICMPv6 pinger.
                                        2015/01/31 13:50:40| FATAL: pinger: Unable to open any ICMP sockets.
                                        2015/01/31 13:50:47 kid1| Warning: empty ACL: acl throttle_exts urlpath_regex -i "/var/squid/acl/throttle_exts.acl"
                                        2015/01/31 13:50:47| pinger: Initialising ICMP pinger ...
                                        2015/01/31 13:50:47|  icmp_sock: (1) Operation not permitted
                                        2015/01/31 13:50:47| pinger: Unable to start ICMP pinger.
                                        2015/01/31 13:50:47|  icmp_sock: (1) Operation not permitted
                                        2015/01/31 13:50:47| pinger: Unable to start ICMPv6 pinger.
                                        2015/01/31 13:50:47| FATAL: pinger: Unable to open any ICMP sockets.
                                        FATAL: Received Segment Violation...dying.
                                        CPU Usage: 659.029 seconds = 69.054 user + 589.975 sys
                                        Maximum Resident Size: 154112 KB
                                        Page faults with physical i/o: 12
                                        2015/01/31 14:01:45 kid1| Starting Squid Cache version 3.4.10 for amd64-portbld-freebsd10.1...
                                        2015/01/31 14:01:45| pinger: Initialising ICMP pinger ...
                                        2015/01/31 14:01:45|  icmp_sock: (1) Operation not permitted
                                        2015/01/31 14:01:45| pinger: Unable to start ICMP pinger.
                                        2015/01/31 14:01:45|  icmp_sock: (1) Operation not permitted
                                        2015/01/31 14:01:45| pinger: Unable to start ICMPv6 pinger.
                                        2015/01/31 14:01:45| FATAL: pinger: Unable to open any ICMP sockets.
                                        2015/01/31 16:38:35 kid1| Starting Squid Cache version 3.4.10 for amd64-portbld-freebsd10.1...
                                        2015/01/31 16:38:36| pinger: Initialising ICMP pinger ...
                                        2015/01/31 16:38:36|  icmp_sock: (1) Operation not permitted
                                        2015/01/31 16:38:36| pinger: Unable to start ICMP pinger.
                                        2015/01/31 16:38:36|  icmp_sock: (1) Operation not permitted
                                        2015/01/31 16:38:36| pinger: Unable to start ICMPv6 pinger.
                                        2015/01/31 16:38:36| FATAL: pinger: Unable to open any ICMP sockets.
                                        2015/01/31 16:10:32 kid1| Warning: empty ACL: acl throttle_exts urlpath_regex -i "/var/squid/acl/throttle_exts.acl"
                                        2015/01/31 16:10:32| pinger: Initialising ICMP pinger ...
                                        2015/01/31 16:10:32|  icmp_sock: (1) Operation not permitted
                                        
                                        1 Reply Last reply Reply Quote 0
                                        • D
                                          doktornotor Banned
                                          last edited by

                                          @MrGlasspoole:

                                          I increased the ram disk and thought after the virus definitions are now there i can turn ram disk
                                          on again. But when i do that clamd does not start.

                                          They are NOT there any more. Guess why.  ::) ::) ::)

                                          Sigh. Someone make the package bail out on install when people configure similar BS.

                                          1 Reply Last reply Reply Quote 0
                                          • C
                                            Cino
                                            last edited by

                                            @MrGlasspoole:

                                            @Cino:

                                            why were you using a ram disk?

                                            RAM is faster and takes stress away from the disk.
                                            I increased the ram disk and thought after the virus definitions are now there i can turn ram disk
                                            on again. But when i do that clamd does not start.

                                            If your going to use squid or any package that writes persistent data to /var, dont use ramdisk. It will wipe /var every time you reboot and will make the packages fail to start. You will then have to re-install the packages again every reboot…

                                            For the other issues. If you have searched the forum; you would have found solutions.

                                            In the Squid config page. check 'Disable ICMP' to get rid of the 'FATAL: pinger: Unable to open any ICMP sockets' errors

                                            for squidGuard run the following commands for amd64... (make sure path /usr/pbi/squidguard-squid3-amd64 exist first)

                                            
                                            ln -s /usr/pbi/squidguard-squid3-amd64/local/lib/libldap-2.4.so.8 /usr/local/lib/libldap-2.4.so.8
                                            ln -s /usr/pbi/squidguard-squid3-amd64/local/lib/libldap-2.4.so.8 /lib/libldap-2.4.so.8
                                            ln -s /usr/pbi/squidguard-squid3-amd64/local/lib/libdb-4.6.so.0 /usr/local/lib/libdb-4.6.so.0
                                            ln -s /usr/pbi/squidguard-squid3l-amd64/local/lib/libdb-4.6.so.0 /usr/lib/libdb-4.6.so.0
                                            
                                            

                                            After you disable ramdisk, UN-install the packages. Reboot, install the packages.. Run the links for squidguard

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