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

    HAVP proxy issue

    Scheduled Pinned Locked Moved pfSense Packages
    23 Posts 2 Posters 8.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.
    • R
      rajbps
      last edited by

      I believe this should be the rule "always_direct allow .get.adobe.com .youtube.com;never_direct allow all;cache_peer 127.0.0.1 parent 3125 0 name=havp no-query no-digest no-netdb-exchange default;"

      According to the http://www.squid-cache.org/Doc/config/always_direct/

      "For example, to always directly forward requests for
      local servers ignoring any parents or siblings you may have use
      something like:

      acl local-servers dstdomain my.domain.net
      always_direct allow local-servers"

      What am I missing pls

      Sorry to be a bit stupid but this is my first attempt with squid.  :-(

      Cheers,

      Raj

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

        @rajbps:

        What am I missing pls
        Sorry to be a bit stupid but this is my first attempt with squid.   :-(

        change

        always_direct .get.adobe.com .youtube.com

        to

        acl skip_havp dstdomain .get.adobe.com .youtube.com; always_direct allow skip_havp;

        Take a good look on squid wiki web site to learn how it works  ;)

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

        Help a community developer! ;D

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

          Its still not working "acl skip_havp dstdomain .get.adobe.com .youtube.com; always_direct allow skip_havp;never_direct allow all;cache_peer 127.0.0.1 parent 3125 0 name=havp no-query no-digest no-netdb-exchange default;"

          But i read a bit more, most likely I still have some questions  ;-(

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

            Though any more help always welcome :-)

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

              Got it sorted spaces in the argument was the issue, here is the right formula for anyone out there "acl skip_havp dstdomain .adobe.com .youtube.com;always_direct allow skip_havp;never_direct allow all;cache_peer 127.0.0.1 parent 3125 0 name=havp no-query no-digest no-netdb-exchange default;"

              A great thanks to marcello for all the help.

              By the way marcello is there a better way to add sites as this might get pretty ugly pretty quickly something like allowed websites list.

              Cheers,

              Raj

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

                @rajbps:

                By the way marcello is there a better way to add sites as this might get pretty ugly pretty quickly something like allowed websites list.

                As squid3 package is beta, I can include an always_direct field on it's gui when I have time.  ;)

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

                Help a community developer! ;D

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

                  quote:

                  Hi Team,

                  I have installed squid then sarg and the HAVP on a pfsense system 2.0

                  That site (A) is connected via vpn to another site (B).

                  There is a intranet server that runs at site B and all the pcs at A goes to it by just typing the word "intranet" in the browser but now after installing HAVP, the are getting an error msg instead of the site.

                  If they type the ip they can open it in the web browser.

                  Here is the error attached.

                  Could someone assist pls.

                  Cheers,

                  Raj

                  • havp error.png (35.18 KB, 1022x730 - viewed 13 times.)
                    Report to moderator  82.7.158.122
                    marcelloc
                    Hero Member

                  Offline Offline

                  Posts: 6853

                  View Profile Personal Message (Offline)

                  Re: HAVP proxy issue
                  « Reply #1 on: October 11, 2012, 09:39:23 am »
                  Reply with quoteQuote
                  try to include intranet and it's ip on /etc/hosts pfsense file.

                  restart havp/save config to be sure it will reload config.
                  « Last Edit: October 11, 2012, 10:21:39 am by marcelloc » Report to moderator  Logged
                  Did I helped you? Donations are always welcome! Grin

                  Te ajudei? Doações são sempre bem vindas! Grin

                  When I reboot the firewall, I loose the entry in the /etc/hosts file and need to add it again.

                  Is there a way to make it become permanent pls?

                  Cheers,

                  Raj

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

                    try to use always_direct directive on squid or add it to client browser exception.

                    I'm not sure if there is /etc/hosts.local on pfsense to keep changes after reboot.

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

                    Help a community developer! ;D

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

                      Hi Marcello,

                      Now that i removed the entry from the host fill and added the entry where you asked this is what I get:

                      error.png
                      error.png_thumb

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

                        Ok added an entry in the dns forwarder and that seems to done the trick :-)

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