Question : WPAD setting for local webcams

Hi all,
I want to edit my WPAD auto proxy config file to ensure that some connections that we have to local IP enabled webcams don't go via the proxy.

This is the current verion (edited for security)

1:
2:
3:
4:
5:
6:
7:
function FindProxyForURL(url, host)
    {
        if (isPlainHostName(host)) return "DIRECT";
	else if (dnsDomainIs(host, ".ourdomain.int")) return "DIRECT";
	else if (dnsDomainIs(host, ".int")) return "DIRECT";
        else return "PROXY 1 address; PROXY 2 address; DIRECT";
    }


The webcams have static IP addresses and I just want to ensure that connections to them go direct..

Will I be able to use isInNet on it's own such as in the example..
1:
if (isInNet(host, "172.16.0.0", "255.240.0.0")) return "DIRECT";


or will I need to resolve 'host' first as in this example...

1:
2:
3:
4:
5:
6:
7:
var resolved_ip = dnsResolve(host);

if (isInNet(resolved_ip, "10.0.0.0", "255.0.0.0") ||
	isInNet(resolved_ip, "172.16.0.0",  "255.240.0.0") ||
	isInNet(resolved_ip, "192.168.0.0", "255.255.0.0") ||
	isInNet(resolved_ip, "127.0.0.0", "255.255.255.0"))
	return "DIRECT";


Many thanks.

Answer : WPAD setting for local webcams

Thanks cgaliher!  I didn't know about this.

In the end I rebooted trhe server from a workstation using the shutdown command.  The took a while but did log in.  I then restored a backup of the GPO and restarted again.   Server running happy again.  I'm being more careful with my GPO settings now.   I also created an admin user outside the SBS GPO's.
Random Solutions  
 
programming4us programming4us