Jump to content

Proxy.Pac for Apple proxy exclusions


Recommended Posts

Posted

Hi guys,

 

Looking to create a local proxy.pac file which adds proxy exclusions for apple devices so that they can access local resources such as internal mail when using our wifi.

 

What do i need to do? I have created a site in IIS on our exchange server called PAC and placed the proxy.pac file in there but having difficaulties figuring out ip address / host names etc

 

I just want them to be able to type in the server name and port or a simple address, say http://server:8081 into the proxy setting on the device

 

Has anyone created a PAC file for ipad / i phone before? If so how and was it successful?

 

Many thanks

Posted

indeed i have.

 

I just need to figure out a way of hosting it correctly (What to put in IP Address / port) so that it is discoverable- sorry i am a bit of a noob with IIS!

 

Also i just created the .pac file in a textfile and saved it as proxy.pac...is this right?

Posted (edited)

I click add site and put these details in:

 

1.jpg

 

I thought then you would type in the servername:8082 and it would work?

 

The Quaritine Digest site has servername:8081 and works just fine for Sophos PureMessage

 

The Proxy.pac is in the pac folder inside inetpub folder

Edited by Darylrese
Posted (edited)

hmmmm

 

does this look right for the proxy.pac?

 

function FindProxyForURL(url, host)
{
// variable strings to return
var proxy_yes = "PROXY 10.160.2.6:8080";
var proxy_no = "DIRECT";
if (shExpMatch(url, "https://mca-sr-ex1/exchange*")) { return proxy_no; }
if (shExpMatch(url, "http://www.myotherwebsite.com*")) { return proxy_no; }
if (shExpMatch(url, "http://www.my3rdlocalsite.com*")) { return proxy_no; }
// Proxy anything else
return proxy_yes;
}

 

Ive just placed it in inetpub > wwwroot

 

Browsing to http:/servername/proxy.pac in explorer just gives this error:

 

1.jpg

 

Connecting to the wifi and setting proxy to auto and typing path http://servername/proxy.pac doesnt display anything in safari or google chrome

Edited by Darylrese

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