Proxy by dhcpd that don't work ?

Phibee Network Operation Center noc at phibee.net
Mon Feb 4 19:20:27 UTC 2008


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