Search squid archive

Re: DHCP proxy option

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Daniel Teixeira wrote:
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



Check the web server access log where you have the pac file. If you find a lot of requests for "wpad.da" then create a symlink for that to wpad.dat.

--
Andreas



[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux