Jump to content
EduGeek EdSec 2026 is Go! 27th Oct in Derby! Join us for a day of EdTech security focused talks, networking, and an evening social ×

Recommended Posts

Posted (edited)

Hello!

 

Following is our PAC file:

 

if (/MSIE(\d+\.\d+);.test(navigator.userAgent))

{

// test for MSIE x.x;

var ieversion=new Number(RegExp.$1)

if (ieversion >= 8)

{

// ie 8 proxy auto config bit

function FindProxyForURL (url, host)

{

if (shExpMatch(url, "))

{

return "DIRECT";

}

// required for Internet Explorer 8

if (isInNet(dnsResolve(host), "10.2.0.0", "255.255.0.0"))

{

return "PROXY [proxy_server]:8080";

}

else // user is outside of the school network

{

return "DIRECT";

}

}

}

if (ieversion <= 7)

{

function FindProxyForURL (url, host)

{

if (shExpMatch(url, "))

{

return "DIRECT";

}

if (isInNet(myIpAddress(), "10.2.0.0", "255.255.0.0"))

{

return "PROXY ICT0IWF:8080";

}

else

{

return "DIRECT";

}

}

}

else

{

// so something, perhaps for the future. Not IE

}

}

 

We are currently upgrading from Internet Explorer 7 to version 8 and as per this [thewaystation] posting, IE8 requires new syntax for the proxy

files where you must use DNS to resolve a host name to use in the function isInNet hence:

 

if (isInNet(dnsResolve(host), "10.2.0.0", "255.255.0.0"))

 

...which is documented [here_url].

 

And whilst this is all good, it doesn't work! :( I have debugged thus far:

 

1 Direct connection using IE8

2 Proxy and direct connection using older versions of IE

 

When using IE8 this bit of logic in the code does not work as expected (IE8 attempts a direct connection):

 

if (isInNet(dnsResolve(host), "10.2.0.0", "255.255.0.0"))

{

return "PROXY [proxy_server]:8080";

}

 

Further help to get this to work would be greatly appreciated!

 

Regards, Matt

Edited by mpepprell

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...