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

    HAVP broken in 2.0?

    Scheduled Pinned Locked Moved pfSense Packages
    28 Posts 3 Posters 11.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
      danswartz
      last edited by

      I had been using fine with 1.2.3.  I upgraded to 2.0 using snapshot from yesterday.  Has been working fine, including squid/lightsquid.  So I went to add havp putting it upstream from squid like before.  Won't start and won't initialize clamav.  Looking at /var/log/system, I see things like this:

      
      Apr 22 07:04:48 gateway php: /pkg_edit.php: The command 'chgrp -R -v havp /usr/local/share/examples/havp/templates_ex' returned exit code '1', the output was 'chgrp: /usr/local/share/examples/havp/templates_ex: No such file or directory'
      Apr 22 07:04:48 gateway php: /pkg_edit.php: The command 'chown -R -v havp /usr/local/share/examples/havp/templates_ex' returned exit code '1', the output was 'chown: /usr/local/share/examples/havp/templates_ex: No such file or directory'
      
      

      Any ideas?

      1 Reply Last reply Reply Quote 0
      • D
        dvserg
        last edited by

        Wait while will updated. Nearest time..

        SquidGuardDoc EN  RU Tutorial
        Localization ru_PFSense

        1 Reply Last reply Reply Quote 0
        • D
          danswartz
          last edited by

          Thanks!

          1 Reply Last reply Reply Quote 0
          • D
            dvserg
            last edited by

            Try new install/reinstall havp package.

            SquidGuardDoc EN  RU Tutorial
            Localization ru_PFSense

            1 Reply Last reply Reply Quote 0
            • D
              danswartz
              last edited by

              Same problem.  And now, also seeing this:

              
              Apr 22 10:25:43 gateway clamd[22347]: Can't open file or directory
              Apr 22 10:25:45 gateway php: : The command '/sbin/pfctl -nf /tmp/rules.packages' returned exit code '1', the output was '/tmp/rules.packages:2: syntax error'
              Apr 22 10:25:45 gateway php: : There was an error while parsing the package filter rules for /usr/local/pkg/havp.inc.
              
              
              1 Reply Last reply Reply Quote 0
              • D
                danswartz
                last edited by

                The rules message seems to be because /tmp/rules.packages is empty (zero length).

                1 Reply Last reply Reply Quote 0
                • D
                  dvserg
                  last edited by

                  @danswartz:

                  The rules message seems to be because /tmp/rules.packages is empty (zero length).

                  Thx for diagnostic msg. I now test this package too.

                  SquidGuardDoc EN  RU Tutorial
                  Localization ru_PFSense

                  1 Reply Last reply Reply Quote 0
                  • D
                    dvserg
                    last edited by

                    Now HAVP in 2.0 not worked.  :-[

                    SquidGuardDoc EN  RU Tutorial
                    Localization ru_PFSense

                    1 Reply Last reply Reply Quote 0
                    • D
                      danswartz
                      last edited by

                      While I am disappointed it is broken in 2.0, I am also relieved, since I now know I am not crazy :)  e.g. this all worked fine on my previous 1.2.3 install.  I will be more than happy to test any proposed fixes to the package.

                      1 Reply Last reply Reply Quote 0
                      • D
                        dvserg
                        last edited by

                        I found problem - it's socket settiings. No i must solve this
                        But 1.2.3 worked - i tested too

                        SquidGuardDoc EN  RU Tutorial
                        Localization ru_PFSense

                        1 Reply Last reply Reply Quote 0
                        • D
                          dvserg
                          last edited by

                          On clean 2.0 installed from Live CD worked.

                          SquidGuardDoc EN  RU Tutorial
                          Localization ru_PFSense

                          1 Reply Last reply Reply Quote 0
                          • D
                            danswartz
                            last edited by

                            Okay, I reinstalled havp and it didn't work, but then I disabled and re-enabled it and now it seems to be okay.

                            1 Reply Last reply Reply Quote 0
                            • D
                              danswartz
                              last edited by

                              Well, I spoke too soon :(  Althought everything seemed up and running, an eicar test failed.  I could see squid was not actually talking to havp, so I tried removing havp and giving up.  Net result: no squid either.  Then I tried uninstalling squid and that left things totally borked.  I ended up having to reinstall from scratch and reload the config file.  I've not had good results with packages that depend on other packages, so I think I'm going to look for another solution (maybe run squid/lightsquid/havp on my main freebsd server and set up an rdr to that - dunno…)

                              1 Reply Last reply Reply Quote 0
                              • D
                                dvserg
                                last edited by

                                After instalaltion HAVP need update AV bases (last tab GUI). This is process take 10-15 min for the new installation. Now i change this for automatic update on installation. Also need modify package for full compability with 2.0

                                ps
                                I have had several unsuccessful attempts to upgrade from 1.2.3 to 2.0. So now all I do on a fresh 2.0

                                SquidGuardDoc EN  RU Tutorial
                                Localization ru_PFSense

                                1 Reply Last reply Reply Quote 0
                                • D
                                  danswartz
                                  last edited by

                                  Let me clarify: this might or might not have worked, if I had waited as you say (I wasn't aware of that.)  What got me to give up on this was the apparent fragility of some packages that are linked to others.  I have never had very good luck when it comes to restoring a config, where it has to reinstall the packages.  In this case, uninstalling got things totally borked, so I gave up.  It may not even have been havp, but maybe squid or lightsquid, I don't know.

                                  1 Reply Last reply Reply Quote 0
                                  • D
                                    dvserg
                                    last edited by

                                    Syslog; /var/log/clamd/clamd.log; /var/log/clamd/freshclam.log; /var/log/havp/havp.log; exists?
                                    Please email me.

                                    SquidGuardDoc EN  RU Tutorial
                                    Localization ru_PFSense

                                    1 Reply Last reply Reply Quote 0
                                    • D
                                      danswartz
                                      last edited by

                                      Sorry, I appreciate the help, but it is off the firewall now, as is squid and lightsquid.  After having to spend an hour re-installing from scratch, I don't want to bork this again :(

                                      1 Reply Last reply Reply Quote 0
                                      • D
                                        danswartz
                                        last edited by

                                        Okay, I think I found out one of the issues.  Squid uses the ldap client, but even after deleting squid, something still had a reference to it (a php file somewhere).  I had squid/lightsquid working fine, so I am re-installing those.  I already have a full clamav install on my main freebsd mail/file/web server, and it always seemed silly to be doing this twice, so I got the havp port working there too.  My atom mini has two spare gigabit ports, and the main server has a spare gigabit port, so I am going to connect those using a dedicated subnet and have pfsense/squid talk to havp running on the main server over that link.

                                        1 Reply Last reply Reply Quote 0
                                        • K
                                          killervette
                                          last edited by

                                          I tried installing havp on nanobsd 2 beta.  I get a bunch of warnings and errors when trying to save settings.  Basically saying the it cannot open stream for writing.  It was the first package i installed on 2.0 beta.  Any ideas?

                                          1 Reply Last reply Reply Quote 0
                                          • D
                                            dvserg
                                            last edited by

                                            Post error message text pls.

                                            SquidGuardDoc EN  RU Tutorial
                                            Localization ru_PFSense

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