[squid-users] wpad & windows updates

From: Patrick Ahler <[email protected]>
Date: Wed, 14 May 2003 11:50:19 -0400

I've been using autodetect proxy settings in our companies IE browsers to
detect wpad.domainname.net and use the wpad.dat config file there. Works
fine for me... except one problem. Windows updates won't work if I have used
the wpad.dat file to set the browsers proxy settings. At first I thought
this was a problem with the squid.conf file... but windows updates work fine
through squidip:squidport when set manually in the browser.

-Patrick

here is my wpad.dat file:

    function FindProxyForURL(url, host)
        {
            //If they have only specified a hostname, go directly.
            if (isPlainHostName(host))
                    return "DIRECT";

            //These connect directly if the machine they are trying to
            //connect to starts with "intranet" - ie http://intranet
            //Connect directly if it is intranet.*
            //If you have another machine that you want them to
            //access directly, replace "internal*" with that
            //machine's name
            if (shExpMatch( host, "intranet*")||
                            shExpMatch(host, "internal*"))
                return "DIRECT";

            //Connect directly to our domains (NB for Important News)
            if (dnsDomainIs( host,"xxxxx.com")||
            //If you have another domain that you wish to connect to
            //directly, put it in here
                            dnsDomainIs(host,"xxxxx.net"))
                return "DIRECT";

            //So the error message "no such host" will appear through the
            //normal Netscape box - less support queries :)
            if (!isResolvable(host))
                    return "DIRECT";

            //We only cache http, ftp and gopher
            if (url.substring(0, 5) == "http:" ||
                            url.substring(0, 4) == "ftp:"||
                            url.substring(0, 7) == "gopher:")

            //Change the ":8080" to the port that your cache
            //runs on, and "cache.company.com" to the machine that
            //you run the cache on
                    return "PROXY yyyy.xxxxx.net:3128; DIRECT";
            //We don't cache WAIS
            if (url.substring(0, 5) == "wais:")
                    return "DIRECT";

            else
                    return "DIRECT";
        }
"
Received on Wed May 14 2003 - 09:50:21 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:16:40 MST