———-Chrome Settings

//Reload the proxy.pac file in chrome

chrome://net-internals/#proxy

Force PAC Update

Key: HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings

Value: EnableAutoproxyResultCache (REG_DWORD)

1 (default) = enable caching and 0 = disable caching

—-Sample Proxy.pac file

function FindProxyForURL(url, host){

    //Define local subnets which should bypass the proxy and route directly using the isInNet expression

    if (isInNet(host, “172.16.0.0”, “255.240.0.0”)){

        return “DIRECT”;

    }

    //Define local URL wildcards which should bypass the proxy and route directly using the shExpMatch expression

    if(shExpMatch(host, “*.company.local”) ||

    shExpMatch(host, “*.au.comp.com”) ||

    shExpMatch(host, “*meraki.direct”)

){

        return “DIRECT”;

    }

    //Define local URLs individually which should bypass the proxy and route directly using dnsDomainIs

    if(dnsDomainIs(host, “kosi.company.com.au”) ||

    dnsDomainIs(host, “iforgot.company.com.au”) ||

    dnsDomainIs(host, “trackrsm.company.com.au”)

){

        return “DIRECT”;

    }

    //Define the remote addresses to route through the proxy – this is the default rule if all other rules do not match.

    return “PROXY server.company.local:8080”;

}

—————————————————————————

///Debug chrome

chrome://net-internals/#proxy

Leave a Reply