Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PAC file

Status
Not open for further replies.

disturbedone

Vendor
Sep 28, 2006
781
AU
I couldn't find a forum specifically for this but would imagine those who know Apache would know this too (hopefully).

I have a PAC file that was working with our old proxy server but we have problems with the new proxy server. My understanding of it was that anyting on 10.0.0.0 and 172.0.0.0 would not go anywhere near the proxy server but it appears that's not the case (I believe the old proxy server didn't care/didn't know and let it work).

The file is as follows....

Code:
function FindProxyForURL(url, host)
{
if ( (isInNet(host, "10.0.0.0", "255.0.0.0")) || (isInNet(host, "172.0.0.0", "255.0.0.0")) || (host == "127.0.0.1" || host == "localhost"))
return "DIRECT";
else
return "PROXY 172.20.95.19:8080";
}

I modified it and accessing servers in our DMZ works with no problems but accessing is a problem because it's going through the proxy server.

Code:
function FindProxyForURL(url, host)
{
if ( (isInNet(host == "127.0.0.1" || host == "localhost"))
return "DIRECT";
else
return "PROXY 172.20.95.19:8080;DIRECT";
}

So the question is - what is the correct syntax to make 10.x.x.x and 172.x.x.x and localhost addresses bypass the proxy????

thx
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top