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

    How to configure the auto detect squid proxy?

    Scheduled Pinned Locked Moved pfSense Packages
    7 Posts 3 Posters 6.9k 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
      renzai
      last edited by

      Hi to all,

      please help me on How to configure the auto detect squid proxy?
      kindly give me the steps..

      i already configure my proxy with squid and squidGuard.. but the proxy will just be effective when i change the proxy setting of my browser. ip add:port.. i want this setting to be auto detect by the computers..please help.. thank alot!

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

        I can download the files wpad.dat. wpad.da and proxy.pac.. but still auto detect is not working.. what am i missing?? kindly help.. this is so much appreciated..  ;)

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

          Hello,

          Here you can find explanations on how to configure wpad : http://en.wikipedia.org/wiki/Web_Proxy_Autodiscovery_Protocol

          Basically you have to have a web server serving the wpad file (reachable without proxy) at the address : http://wpad.mydomain.tld and auto dectect network settings activated in internet options (if using ie or chrome) or in options - advanced - network (if using firefox). The wpad address could also be specified in the dhcp server (option 252).

          Regards,
          Stéphane.

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

            I tried to follow that instruction, but didn't work.. any documentation you can give? thanks

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

              I attach the screen shot of what i did..kindly help me out, if ever i missed something.. thanks everyone! ;)

              WPAD.png
              WPAD.png_thumb

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

                tcpdump packages on lan to see what dns info(port 53) your machine is looking for when you open the browser.

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

                Help a community developer! ;D

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

                  my wpad file looks like that as i don't want proxy for local and vpn servers

                  maybe this can help you

                  function FindProxyForURL(url, host) {
                  
                  // If IP address is internal or hostname resolves to internal IP, send direct.
                  
                          var resolved_ip = dnsResolve(host);
                  
                          if (isInNet(resolved_ip, "10.0.0.0", "255.0.0.0") ||
                                  isInNet(resolved_ip, "172.16.0.0",  "255.240.0.0") ||
                                  isInNet(resolved_ip, "192.168.0.0", "255.255.0.0") ||
                                  isInNet(resolved_ip, "127.0.0.0", "255.0.0.0"))
                  
                                  return "DIRECT";
                  
                          return "PROXY proxy.domain.lan:3128; DIRECT";
                  }
                  
                  

                  maybe you could also check the webserver logs to see if your hosts grab the wpad file

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