Proxy by dhcpd that don't work ?

Glenn Satchell Glenn.Satchell at uniq.com.au
Tue Feb 5 10:21:54 UTC 2008


If you load the proxy url in your browser do you get the file?

http://wpad.networka.int/proxy.dat

Some versions of operating systems have a bug where they drop the last
char of the url. So it tries to get http://wpad.networka.int/proxy.da
and gets an error which should be in your web server error logs if it
is a problem.

In a post the other day I showed a null on the end of the wpad-url, eg

option wpad-url "http://wpad.networka.int/proxy.dat\000";

which has worked well for me and gets around the truncation.

Does the proxy.dat file work if you specify that url as a manual proxy 
configuration in the browser config? If there is a syntax error, then the
browser may refuse to load it.

regards,
-glenn

>Date: Tue, 05 Feb 2008 10:26:12 +0100
>From: Phibee Network Operation Center <noc at phibee.net>
>To: dhcp-users at isc.org
>Subject: Proxy by dhcpd that don't work ?
>
>Hi
>
>i have put:
>
>authoritative;
>ddns-update-style none;
>default-lease-time 3600;
>max-lease-time 86400;
>option wpad-url code 252 = text;
>
>subnet 10.1.1.0 netmask 255.255.255.0 {
>       option domain-name "networka.int";
>       option domain-name-servers 10.1.1.254;
>       option subnet-mask 255.255.255.0;
>       option broadcast-address 10.1.1.255;
>       option routers 10.1.1.254;
>       option ntp-servers 10.1.1.254;
>       option wpad-url "http://wpad.networka.int/proxy.dat";
>
>       pool {
>               range 10.1.1.1 10.1.1.200;
>       }
>}
>
>
>and in proxy.dat:
>
>function FindProxyForURL(url, host)
>{
>   if( shExpMatch(url, "!https:*") || isPlainHostName(host) || \
>       dnsDomainIs(host, ".network1.int") || dnsDomainIs(host, 
>".networka.int") )
>   {
>       return "DIRECT";
>   } else {
>       return "PROXY 10.1.1.254:8080; DIRECT";
>   }
>}
>
>
>and i don't understand, that's don't work  ! the computer get the IP but
>the proxy don't change and  i don't see into logs a http access to wpad.neXX
>
>where is my error ?
>
>Thanks bye
>
>


More information about the dhcp-users mailing list