[squid-users] Squid + WPAD issues

From: Terry Dobbs <tdobbs@dont-contact.us>
Date: Tue, 5 Jun 2007 11:39:30 -0400

Hi All,

We have been using a proxy server with a WPAD.dat file for a year or
two. Now, we have setup another squid server in a remote site. I need to
configure the WPAD.dat file in a way where if you are on subnet A use
Proxy Server A and if you are on subnet B user proxy server B.

For the life of me, I cannot get this to work. For example, I am using
what is seen below, and it seems the only line that works is the "else"
statement so everyone is using the same server....?

function FindProxyForURL(url, host)
{
if (isPlainHostName(host))
return "DIRECT";
else if (isInNet(host,"192.168.0.0","255.255.0.0"))
return "PROXY 192.168.10.14:3128";
else if (isInNet(host,"192.150.170.0","255.255.255.0"))
return "PROXY 192.150.170.120:3128";
else
return "PROXY 192.150.170.120:3128";
}

Any help would be GREATLY appreciated!! All machines run IE 6 or 7 and
are on Win2K/WinXP.

Thanks
Received on Tue Jun 05 2007 - 09:41:41 MDT

This archive was generated by hypermail pre-2.1.9 : Sun Jul 01 2007 - 12:00:04 MDT