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

    Help on wpad

    Scheduled Pinned Locked Moved Cache/Proxy
    7 Posts 4 Posters 1.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.
    • G
      genesislubrigas
      last edited by

      Right now i am using http proxy only. Now i wanted to employ https filtering too.  So i followed pfsense doc on wpad configuraton also some youtube. I manage to follow some of the step but at the end it failed to work.

      If it not too much to ask, for the benefit of all too, can some create a step by step procedure to configure wpad.

      1 Reply Last reply Reply Quote 0
      • KOMK
        KOM
        last edited by

        Nobody has time for that.  How about you show what you've done and then someone can help you?  I have WPAD working perfectly in my environment.  It works for everything except Android phones.

        1 Reply Last reply Reply Quote 0
        • G
          genesislubrigas
          last edited by

          I configured wpad and have dns entry for wpad.localdomain pointing to 10.0.8.1 using bind but it doesnt word, no internet.

          1 Reply Last reply Reply Quote 0
          • KOMK
            KOM
            last edited by

            1. Does squid work when you manually configure the client?

            2. Can you resolve wpad by itself to an IP address?

            3. Can you fetch http://wpad_server/wpad.dat?

            4. Is your client set to auto-discover the proxy?

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

              Quite often, one may think that in order to deploy WPAD from scratch, starting point is… WPAD.
              This is, to me, an obvious misconception.

              In order to smoothly deploy WPAD, start with proxy.
              Once your proxy work in explicit mode, next step is to deploy proxy.dat (meaning web server being) and ensure it behaves as expected.
              Once this works, deploying WPAD is only matter of DNS/DCHP (and I would suggest here ot not stick with one single method only.

              I wrote something some years ago, not related to pfSense but which may help you to understand better how this works:
              https://wiki.zentyal.org/wiki/Select_Right_HTTP_Proxy_Design

              Jah Olela Wembo: Les mots se muent en maux quand ils indisposent, agressent ou blessent.

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

                @genesislubrigas:

                Right now i am using http proxy only. Now i wanted to employ https filtering too.  So i followed pfsense doc on wpad configuraton also some youtube. I manage to follow some of the step but at the end it failed to work.

                If it not too much to ask, for the benefit of all too, can some create a step by step procedure to configure wpad.

                Here you go:

                function FindProxyForURL(url, host)
                {
                   if (isInNet(host, "10.10.0.0", "255.255.0.0")) {
                      return "DIRECT";
                   } else {
                      if (shExpMatch(url, "http:*")) 
                         return "PROXY 192.168.1.1:3128" ;
                      if (shExpMatch(url, "https:*"))
                         return "PROXY 192.168.1.1:3128" ;
                      if (shExpMatch(url, "ftp:*"))
                         return "PROXY 192.168.1.1:3128" ;
                      return "DIRECT";
                   }
                }
                

                Goes in usr/local/www directory.

                Also, save same as three separate files.
                wpad.dat
                wpad.da
                proxy.pac

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

                  @securityconscious:

                  Also, save same as three separate files.
                  wpad.dat
                  wpad.da
                  proxy.pac

                  May I suggest not to save this as 3 different files but to save one single file and create symbolic links: doing so, when you modify your file, you modify it only once and you ensure everything is consistent  :P

                  Jah Olela Wembo: Les mots se muent en maux quand ils indisposent, agressent ou blessent.

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