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

How to configure HAVP

Scheduled Pinned Locked Moved pfSense Packages
66 Posts 10 Posters 63.1k 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.
  • L
    LiquiD_85
    last edited by Mar 4, 2009, 8:51 AM

    @adrianhensler:

    it's like asking why orange juice comes from oranges and not apples

    Hahaha … Very sympathetic, i understand perfectly, i'm a C++ and Deplhi programmer, not very expert, but i can understand this kind of situations!!

    Thanks a lot!

    1 Reply Last reply Reply Quote 0
    • D
      dvserg
      last edited by Mar 4, 2009, 9:16 AM Mar 4, 2009, 9:10 AM

      @LiquiD_85:

      Thanks to dvserg and adrianhensler, i've asked just to know, not for criticize! Dansguardian seems a very powerfull tool to block a lot of category of searches and urls (ex. violence hacking etc.)!

      Sorry.
      I just wanted to say that there are 2 ways - to do it himself or ask someone else.
      pfSense is not commercial project and the developers can not do everything at once.
      What you see in the packages do different people at different times for their own needs.
      And only then it is added to the packages.
      The support package is also being done by those who made their.
      Sorry my english  :-[

      SquidGuardDoc EN  RU Tutorial
      Localization ru_PFSense

      1 Reply Last reply Reply Quote 0
      • L
        LiquiD_85
        last edited by Mar 4, 2009, 9:41 AM

        @dvserg:

        @LiquiD_85:

        Thanks to dvserg and adrianhensler, i've asked just to know, not for criticize! Dansguardian seems a very powerfull tool to block a lot of category of searches and urls (ex. violence hacking etc.)!

        Sorry.
        I just wanted to say that there are 2 ways - to do it himself or ask someone else.
        pfSense is not commercial project and the developers can not do everything at once.
        What you see in the packages do different people at different times for their own needs.
        And only then it is added to the packages.
        The support package is also being done by those who made their.
        Sorry my english  :-[
        [/quote]

        Yes, yes of course!!!
        No, sorry for MY english i'm italian i kown english from school and not very well :D:D:D

        thanks a lot!

        1 Reply Last reply Reply Quote 0
        • A
          akintemel
          last edited by Apr 2, 2009, 9:13 AM

          Hello ,

          I installed 1.2.2 version and i want to use squid + squidguard + imspector+ havp ..squid and squidguard are working but havp i think is not running i am not sure . ( how to decide this dont know ) .I conf to squid port 8080 and havp port is the same squid port 8080.I read this form this port must diffrent.When i change the proxy port 3128 and havp port 8080 and set the client proxy port to 8080.this time client can't access web .What isthe mistake i did.

          Thank you very much.

          Ps: I am a new user .

          1 Reply Last reply Reply Quote 0
          • D
            dvserg
            last edited by Apr 2, 2009, 10:50 AM

            @akintemel:

            Hello ,

            I installed 1.2.2 version and i want to use squid + squidguard + imspector+ havp ..squid and squidguard are working but havp i think is not running i am not sure . ( how to decide this dont know ) .I conf to squid port 8080 and havp port is the same squid port 8080.I read this form this port must diffrent.When i change the proxy port 3128 and havp port 8080 and set the client proxy port to 8080.this time client can't access web .What isthe mistake i did.

            Thank you very much.

            Ps: I am a new user .

            You can use HAVP independently - define Interface & free port (different by squid). Configure you  clients browser to this interface ip/port
            Also for use HAVP with squid (INET -> HAVP -> SQUID -> Client) you must configure HAVP with internal client and configure squid : http://doc.pfsense.org/index.php/Squid_Package_Tuning - 'Parent proxy' part.

            SquidGuardDoc EN  RU Tutorial
            Localization ru_PFSense

            1 Reply Last reply Reply Quote 0
            • T
              trinli
              last edited by Apr 3, 2009, 6:59 PM

              Currently, I have a firewall that can use havp to AV scan things that squid is proxying.  It's configured in the way you describe: INET -> HAVP -> SQUID -> Client  And, I have squid set up to be a transparent proxy also.  Everything seems to be working.  Question is, squid can work as an FTP proxy also.  But, when I send the ftp request to squid, it gets the files, but it does not seem to be scanning the files.  Any ideas how I can make havp scan the files that squid gets through ftp?

              Also, is there a way to make squid and/or havp work as an ftp transparent proxy?  (I know the last question is a little off topic)

              Thanks

              1 Reply Last reply Reply Quote 0
              • D
                dvserg
                last edited by Apr 3, 2009, 7:32 PM

                Squid & HAVP is a http proxy. Maybe ftp over http only will filtered (via browser)?

                SquidGuardDoc EN  RU Tutorial
                Localization ru_PFSense

                1 Reply Last reply Reply Quote 0
                • L
                  LiquiD_85
                  last edited by Apr 6, 2009, 12:44 PM

                  I've another problem, HAVP block me if i want to download a big file for example ubuntu that is 700MB and say:"Not enough free space on server" i've set "Scan max file size" to 100, but it's the same!
                  Someone can help me to set HAVP block only files bigger then XX bytes?? Thanks a lot!!!

                  1 Reply Last reply Reply Quote 0
                  • D
                    dvserg
                    last edited by Apr 6, 2009, 12:52 PM

                    @LiquiD_85:

                    I've another problem, HAVP block me if i want to download a big file for example ubuntu that is 700MB and say:"Not enough free space on server" i've set "Scan max file size" to 100, but it's the same!
                    Someone can help me to set HAVP block only files bigger then XX bytes?? Thanks a lot!!!

                    Look this option
                    Max download size /*Enter value or leave empty. Value in bytes. Downloads larger than 'Max download size' will be blocked. Only if not Whitelisted! */

                    SquidGuardDoc EN  RU Tutorial
                    Localization ru_PFSense

                    1 Reply Last reply Reply Quote 0
                    • L
                      LiquiD_85
                      last edited by Apr 6, 2009, 12:59 PM

                      It's the same  :'( :'( :'(

                      Strongly i've notice that my Memory usage is 54%  ??? ??? ???

                      1 Reply Last reply Reply Quote 0
                      • L
                        LiquiD_85
                        last edited by Apr 6, 2009, 1:04 PM

                        Here my whole HAVP config. Thanks

                        1.JPG
                        1.JPG_thumb
                        Immagine.JPG
                        Immagine.JPG_thumb

                        1 Reply Last reply Reply Quote 0
                        • T
                          trinli
                          last edited by Apr 6, 2009, 1:28 PM Apr 6, 2009, 1:07 PM

                          According to the FAQ on HAVP's website…  HAVP can support ftp only if the parent proxy allows FTP.  Then, looking at the first line of the squid website, it says that squid is a "proxy for the Web supporting HTTP, HTTPS, FTP, and more.".  If my understanding of parent proxies is correct, then with this situation: squid -> HAVP -> inet, HAVP is the parent proxy for squid.  So, HAVP doesn't have a parent proxy.  Would there be any problem with switching the order of the proxies?  Specifically, if HAVP found a virus in something that squid already downloaded, would it be able to remove the file from the cache?

                          1 Reply Last reply Reply Quote 0
                          • T
                            trinli
                            last edited by Apr 6, 2009, 1:26 PM

                            This is just a first look at trying to help:

                            From what I can see of the config screens, the max download size is in bytes.  Can you set it to 1 000 000 000 (1Gb), and see what happens?

                            1 Reply Last reply Reply Quote 0
                            • L
                              LiquiD_85
                              last edited by Apr 6, 2009, 1:43 PM

                              It's the same  ??? ??? ???

                              1 Reply Last reply Reply Quote 0
                              • D
                                dvserg
                                last edited by Apr 6, 2009, 1:50 PM

                                If max download size set empty ??

                                SquidGuardDoc EN  RU Tutorial
                                Localization ru_PFSense

                                1 Reply Last reply Reply Quote 0
                                • L
                                  LiquiD_85
                                  last edited by Apr 6, 2009, 2:02 PM

                                  Max download size -> empty

                                  Selected only "Enable" and "Use external interface" (on LAN)

                                  Same problem :'(

                                  1 Reply Last reply Reply Quote 0
                                  • L
                                    LiquiD_85
                                    last edited by Apr 6, 2009, 2:07 PM

                                    HAVP give me same error also if i want to download a driver or a free anti-virus for example www.tgsoft.it, files of a little ammount of MB about 2-3MB!!! I can't think that pfsense don't have 2-3MB of free space!!!

                                    1 Reply Last reply Reply Quote 0
                                    • T
                                      trinli
                                      last edited by Apr 6, 2009, 4:33 PM

                                      I'm not sure if this will help or not, but some virus scanners have a max stream size.  Clamav is one of them.  I don't know if this applies to your situation, but you might want to look there just to be sure.

                                      1 Reply Last reply Reply Quote 0
                                      • D
                                        daniele_dll
                                        last edited by Apr 6, 2009, 5:05 PM

                                        you need to fix the memory device used for havp, if i'm not wrong it is actually 1mb

                                        Just open havp.inc into /usr/local/pkg and look for mdconfig

                                        Remember that this value is used to create a in-memory fs so don't set it too high or you will get problems :) (if your FW have 128mb of memory, a value of 32mb would be good)

                                        1 Reply Last reply Reply Quote 0
                                        • D
                                          dvserg
                                          last edited by Apr 6, 2009, 5:14 PM Apr 6, 2009, 5:12 PM

                                          Ram grid:

                                          # RAM disk
                                          #  Mem -  RAM
                                          # 128M -  16M
                                          # 256M -  32M
                                          # 512M -  64M
                                          #   1G - 128M
                                          #
                                          function mountRAMdisk()
                                          {
                                              # ! not use RAM disk with VM !
                                              if (!VMWare_detect()) {
                                                  # 2 Mb by default
                                                  $mem = 2;
                                          
                                                  # available system memory (Mb)
                                                  $av_mem = get_memory();
                                                  $av_mem = intval($a_mem[0]);
                                          
                                                  # use mem
                                                  if      ($av_mem >= 1024) $mem = 128;
                                                  else if ($av_mem >=  512) $mem = 64;
                                                  else if ($av_mem >=  256) $mem = 32;
                                                  else if ($av_mem >=  128) $mem = 16;
                                                  else if ($av_mem >=   64) $mem = 8;
                                          
                                                  # detach and free all resources used by /dev/md10:
                                                  mwexec("umount /var/tmp/havp");
                                                  mwexec("mdconfig -d -u 10");
                                          
                                                  # create and mount a swap backed file system on /var/tmp/havp by /dev/md10:
                                                  mwexec("mdconfig -a -t swap -s {$mem}M -u 10");
                                                  mwexec("newfs -U /dev/md10");
                                                  mwexec("mount /dev/md10 /var/tmp/havp");
                                                  mwexec("chmod 1777 /var/tmp/havp");
                                              }
                                          }
                                          
                                          function VMWare_detect()
                                          {
                                              global $g;
                                              $fc = '';
                                          
                                              if (file_exists("{$g['varlog_path']}/dmesg.boot") !== false)
                                                  $fc = file_get_contents("{$g['varlog_path']}/dmesg.boot");
                                          
                                              return (strpos($fc, "<vmware virtual")="" !="=" false);<br="">}</vmware> 
                                          

                                          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.
                                            This community forum collects and processes your personal information.
                                            consent.not_received