Right where to start..
We have an aruba wireless system, with guest provisioning, if a student brings a laptop in they can have an account created to access the wireless for a set amount of time, 99.99999% of the time this is to get access to he internet on their laptops.
The issue is they need to NOT have a proxy set to get to the aruba login page, as this is an open system with it's own authentication, then once they login they then need the proxy settings set in order to access the internet, i'm trying to setup WPAD to automatically set their proxy settings with exceptions for internal sites.
I've got the .pac file sorted here is the code:
Now im no coding wizz so this is just stuff i've cobbled together from what the internet has given me, so there are 4 exceptions which i don't want to use the proxy as one of them goes to the intranet and 2 of them go to the aruba authentication page, it looks at the IP address/subnet and sets a proxy server.Code:function FindProxyForURL(url, host) { if (shExpMatch(url, "http://webapps*")) { return DIRECT; } if (shExpMatch(url, "http://172.18.77.3*")) { return DIRECT; } if (shExpMatch(url, "http://172.18.66.3*")) { return DIRECT; } if (shExpMatch(url, "https://172.18.77.3*")) { return DIRECT; } if (isInNet(host, "172.18.77.0", "255.255.255.0")) { return "PROXY staffproxy.swgfl.org.uk:8080"; } else return "DIRECT"; }
Is the code correct first?
I have the proxy.pac file hosted on http://webapps/proxy.pac which is set in the exceptions list above and i've tested that i can access that file from a laptop which isn't authenticated and isn't on the domain, which it can.
I also have DHCP option 252 setup pointed to http://webapps/proxy.pac and have setup the MIME types on IIS for the site it is hosted under
Is there anything i've missed, looking at it now the code doesn't seem right.....so .... yea HELP![]()


LinkBack URL
About LinkBacks




