+ Post New Thread
Results 1 to 8 of 8
Mac Thread, Proxy.Pac for Apple proxy exclusions in Technical; Hi guys, Looking to create a local proxy.pac file which adds proxy exclusions for apple devices so that they can ...
  1. #1
    Darylrese's Avatar
    Join Date
    Sep 2010
    Location
    Portsmouth
    Posts
    422
    Thank Post
    10
    Thanked 7 Times in 6 Posts
    Rep Power
    9

    Question Proxy.Pac for Apple proxy exclusions

    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

  2. #2

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    15,816
    Thank Post
    873
    Thanked 1,675 Times in 1,458 Posts
    Blog Entries
    12
    Rep Power
    444
    Have you added .pac as MIME Type in IIS

  3. #3
    Darylrese's Avatar
    Join Date
    Sep 2010
    Location
    Portsmouth
    Posts
    422
    Thank Post
    10
    Thanked 7 Times in 6 Posts
    Rep Power
    9
    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?

  4. #4

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    15,816
    Thank Post
    873
    Thanked 1,675 Times in 1,458 Posts
    Blog Entries
    12
    Rep Power
    444
    Thats right. Have you created an IIS website? What version of IIS?

  5. #5
    Darylrese's Avatar
    Join Date
    Sep 2010
    Location
    Portsmouth
    Posts
    422
    Thank Post
    10
    Thanked 7 Times in 6 Posts
    Rep Power
    9
    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
    Last edited by Darylrese; 8th February 2013 at 01:49 PM.

  6. #6

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    15,816
    Thank Post
    873
    Thanked 1,675 Times in 1,458 Posts
    Blog Entries
    12
    Rep Power
    444
    Looks all good to me. To make it so you dont need to specify a file you will need to make the .pac file the default document.

  7. #7
    WithoutMotive's Avatar
    Join Date
    Feb 2006
    Location
    Wigan, UK
    Posts
    625
    Thank Post
    41
    Thanked 46 Times in 40 Posts
    Rep Power
    27
    I just stuck ours on the root of the web server and put the internal URL in the Wifi settings: http://webserver/wlanproxy.pac.

    Works a treat.

  8. #8
    Darylrese's Avatar
    Join Date
    Sep 2010
    Location
    Portsmouth
    Posts
    422
    Thank Post
    10
    Thanked 7 Times in 6 Posts
    Rep Power
    9
    hmmmm

    does this look right for the proxy.pac?

    Code:
    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
    Last edited by Darylrese; 8th February 2013 at 02:35 PM.

SHARE:
+ Post New Thread

Similar Threads

  1. Proxy.pac for LGFL and preparing for LGFL2 next year.
    By TwoPlus1 in forum Internet Related/Filtering/Firewall
    Replies: 0
    Last Post: 19th October 2011, 01:11 PM
  2. Replies: 8
    Last Post: 18th July 2008, 02:34 PM
  3. Replies: 8
    Last Post: 21st November 2007, 03:02 PM
  4. Proxy site for blocking
    By PageZ in forum General Chat
    Replies: 36
    Last Post: 19th March 2007, 09:28 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •