-
1 Attachment(s)
.pac problem
Hi,
This is a copy of our pac file. We host it on an IIS 7.5 server and the path name is http://autocfg/autocfg.pac - autocfg in DNS points to the server it lives.
It works fine for most but a few glitches.
The style sheet (i think) doesnt load properly on the BBC site. Screenshot attached.
When you go to AQA website and click More Courses and Events in the bottom left you get page cannot be displayed.
All works ok when going to the proxy direct.
Any thoughts please?
Thanks
Code:
function FindProxyForURL(url, host)
{
//Variable strings to return
var proxy_no = "DIRECT";
//If specific URL needs to bypass proxy, send traffic direct
if (shExpMatch(url, "*172.*")) { return proxy_no; }
if (shExpMatch(url, "*10.*")) { return proxy_no; }
if (shExpMatch(url, "*192.*")) { return proxy_no; }
if (shExpMatch(url, "*127.0.0.1*")) { return proxy_no; }
if (shExpMatch(url, "https://mail.school.com*")) { return proxy_no; }
if (shExpMatch(url, "https://vle.school.com*")) { return proxy_no; }
if (shExpMatch(url, "https://gateway.school.com*")) { return proxy_no; }
if (shExpMatch(url, "https://*authorityweb*")) { return proxy_no; }
if (shExpMatch(url, "http://vle.school.com*")) { return proxy_no; }
if (shExpMatch(url, "http://www.school.com*")) { return proxy_no; }
if (shExpMatch(url, "http://library.fphs.intra*")) { return proxy_no; }
if (shExpMatch(url, "http://helpdesk.fphs.intra*")) { return proxy_no; }
if (shExpMatch(url, "http://fp-oliver*")) { return proxy_no; }
if (shExpMatch(url, "http://clipbank*")) { return proxy_no; }
if (shExpMatch(url, "http://*snrmbc-rsi/*")) { return proxy_no; }
if (shExpMatch(url, "http://*.falinge.int*")) { return proxy_no; }
if (shExpMatch(url, "http://*.fphs.intra*")) { return proxy_no; }
if (shExpMatch(url, "http://*fp-print*")) { return proxy_no; }
// If at school, use proxy
if (isInNet(myIpAddress(), "172.16.4.0", "255.255.252.0")) { return "PROXY 10.112.5.193:80"; }
if (isInNet(myIpAddress(), "172.16.128.0", "255.255.252.0")) { return "PROXY 10.112.5.193:80"; }
if (isInNet(myIpAddress(), "172.16.132.0", "255.255.252.0")) { return "PROXY 10.112.5.193:80"; }
if (isInNet(myIpAddress(), "172.16.140.0", "255.255.252.0")) { return "PROXY 10.112.5.193:80"; }
if (isInNet(myIpAddress(), "172.16.141.0", "255.255.252.0")) { return "PROXY 10.112.5.193:80"; }
else
return "DIRECT";
}
-
I don't see why this is a problem with the pac file - since the pac file just sends the request to the proxy server.
IMO the issue is with the proxies, not the pac file.
-
It works fine without the .pac file...
-
Your private ranges are wrong. 192.32.*.* is a valid public IP range for example.
I'd be changing these bits...
if (shExpMatch(url, "*172.*")) { return proxy_no; }
if (shExpMatch(url, "*10.*")) { return proxy_no; }
if (shExpMatch(url, "*192.*")) { return proxy_no; }
if (shExpMatch(url, "*127.0.0.1*")) { return proxy_no; }
To something like this...
if (isInNet(host, "10.0.0.0", "255.0.0.0")) { return proxy_no; }
if (isInNet(host, "172.16.0.0", "255.240.0.0")) { return proxy_no; }
if (isInNet(host, "192.168.0.0", "255.255.0.0")) { return proxy_no; }
-
Any luck @FN-GM ?
I did guess at that code a bit.
-
I thought it worked then it broke again. Just looking into something else, will try soon.