This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Accessing Astaro using Auto Pac / WPAD

I have just implemented WPAD into our network, browsers are now being assigned the proxy details and can access web pages however im unable to access the astaro admin. When manually configuring the browsers i could add the ip address as an exception and it worked great however it no longer does. Obviously the PAC file is configured incorrectly so i was hoping someone could give me some insight into this. Pac file below:

function FindProxyForURL(url, host) {


// If URL has no dots in host name, send traffic direct.
if (isPlainHostName(host))
return "DIRECT";

// If IP address is internal or hostname resolves to internal IP, send direct.

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";

// All other traffic uses below proxies, in fail-over order.
return "PROXY 192.168.y.z:8080; DIRECT";

}


Thanks
Chris


This thread was automatically locked due to age.
Parents
  • I have redcued the information in the file and it seems to be working ok now, should have done that before posting. Here is the final one, very simple:


    function FindProxyForURL(url, host) {

    if (isPlainHostName(host))
    return "DIRECT";

    var resolved_ip = dnsResolve(host);

    if (isInNet(resolved_ip, "192.168.z.y", "255.255.255.0"))
    return "DIRECT";

    return "PROXY 192.168.z.y:8080; DIRECT";
    }
Reply
  • I have redcued the information in the file and it seems to be working ok now, should have done that before posting. Here is the final one, very simple:


    function FindProxyForURL(url, host) {

    if (isPlainHostName(host))
    return "DIRECT";

    var resolved_ip = dnsResolve(host);

    if (isInNet(resolved_ip, "192.168.z.y", "255.255.255.0"))
    return "DIRECT";

    return "PROXY 192.168.z.y:8080; DIRECT";
    }
Children
No Data