Jump to content

Recommended Posts

Posted (edited)

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:

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";
}

 

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.

 

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 :D

Edited by mrbios
Posted

Ah seems it was my code, this works:

function FindProxyForURL(url, host) {
   if (dnsDomainIs(host, "archway.local") ||
isInNet(host, "172.18.0.0", "255.255.255.0"))
return "DIRECT";
if (shExpMatch(url, "http://webapps:8026/*"))
return "DIRECT";
if (shExpMatch(url, "http://172.18.66.3*"))
return "DIRECT";
if (shExpMatch(url, "http://172.18.77.3*"))
return "DIRECT";
if (shExpMatch(url, "https://172.18.77.3*"))
return "DIRECT";
if (shExpMatch(url, "https://securelogin.arubanetworks.com/*"))
return "DIRECT";
   else
       return "PROXY staffproxy.swgfl.org.uk:8080; DIRECT";


}

 

Now i have another problem, I need a script that can run on a html webpage that will tick the "automatically detect settings" box on IE, anyone got anything like that?

  • Thanks 1
Posted
Now i have another problem, I need a script that can run on a html webpage that will tick the "automatically detect settings" box on IE, anyone got anything like that?

 

Even if something like that exists I'd imagine it would fireback all sorts of security warnings. Probably best to include instructions.

 

Another option might be to put the whole system behind a smoothwall express and use transparent proxying.

  • Thanks 1
Posted

This looks like it could hold your answer but would need to be a vbscript that the users would have to download.

IE - Automatically Detect Settings - SOLVED

Almost at the bottom of this page is a script that will turn off or on the checkbox.

I would guess you could incorporate this into activex maybe to make it more seamless with the page but as i've never done this so i would probably just make it something they have to run

  • Thanks 1

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...