[squid-users] DHCP proxy option

From: Daniel Teixeira <dteixeira@dont-contact.us>
Date: Wed, 6 Feb 2008 10:44:28 -0000

Sorry for the "semi" off topic, but i need to know how to send our squid
proxy address to our windows 2000, xp and vista clients, through dhcp
server.
I've made plenty off attempts but none of them seemed to work!

What I've tried:

option wpad-url code 252 = text;
option wpad-url "http://10.0.1.110/wpad.dat\n ";
option custom-proxy-server code 252 = text;
option wpad-url code 252 = text;
option auto-proxy-config "http://10.0.1.110/wpad.dat";
option custom-proxy-server "http://10.0.1.110/wpad.dat";

the wpad.dat file is on apache, at the proxy server, and contains:

function FindProxyForURL(url, host)
{

// variable strings to return
var proxy_yes = "PROXY 10.0.1.110:8080";
var proxy_no = "DIRECT";
if (shExpMatch(url, "http://intranet*")) { return proxy_no; }
if (shExpMatch(url, "http://localhost*")) { return proxy_no; }
if (shExpMatch(url, "http://10.0.0*")) { return proxy_no; }
return proxy_yes;
}

If I specify the proxy manually everything is fine.
I've been looking around for this for hours now!

Thank you very much
Daniel
Received on Wed Feb 06 2008 - 03:44:34 MST

This archive was generated by hypermail pre-2.1.9 : Sat Mar 01 2008 - 12:00:04 MST