Results 1 to 11 of 11

Thread: Proxy Pac files no longer work in Mac OS X Lion

  1. #1
    Join Date
    Oct 2011
    Posts
    67

    Proxy Pac files no longer work in Mac OS X Lion

    I can make use of a. Pac to allow / immobilize my web proxy when browsing with Safari specific sites. It worked fine in Snow Leopard, although does not work in Lion.My pac looks like this:

    Code:
    function FindProxyForURL(url, host)
    {
    // variable strings to return
    var proxy_yes = "PROXY my proxy.com:7128";
    var proxy_no = "DIRECT";
    if (shExpMatch(url, "https://proxy site.")) { return proxy_yes; }
    if (shExpMatch(url, "http:// ipaddress ")) { return proxy_yes; }
    // Proxy anything else
    return proxy_no;
    }
    Any tips on how to get Pac working again?

  2. #2
    Join Date
    Nov 2010
    Posts
    363

    Re: Proxy Pac files no longer work in Mac OS X Lion

    Local PAC will not work because of the sandbox box mechanism in the Lion. Using a remote control (http://) should be fine.

  3. #3
    Join Date
    Nov 2010
    Posts
    442

    Re: Proxy Pac files no longer work in Mac OS X Lion

    My Pac proxy is also not working.
    Code:
    var tests = [
            '*.local',
            '*.local.nz',
            '*.local.au',
            '*.fws'
        ],
        direct = 'DIRECT',
        proxy = 'PROXY webserver:80';
    var FindProxyForURL = function (url, host) {
        var i = 0;
        for (i = 0; i < tests.length; i = i + 1) {
            if (shExpMatch(host, tests[i])) {
                return proxy;
            }
        }
        return direct;
    };

  4. #4
    Join Date
    Mar 2011
    Posts
    490

    Re: Proxy Pac files no longer work in Mac OS X Lion

    Glad to see not just me .since it is reproducible by multiple users, I imagine apple will release fix soon. I've informed them through their developer bug reporter, fingers crossed for 10.7.1.

  5. #5
    Join Date
    May 2011
    Posts
    398

    Re: Proxy Pac files no longer work in Mac OS X Lion

    Set the proxy in the remote cutting works, but that means that all my requests have to go to cut the first distance, and I only want a select few places to go that way instead. Temporarily, let me share on the Web, and placed the file. Http://localhost/proxy.pac Pac, which also works.

  6. #6
    Join Date
    May 2011
    Posts
    397

    Re: Proxy Pac files no longer work in Mac OS X Lion

    Also note that there is a discrepancy between the fact that the pac file is supposed to be in a place of http://, and yet remains the "Choose File", open the local disk.

  7. #7
    Join Date
    May 2011
    Posts
    434

    Re: Proxy Pac files no longer work in Mac OS X Lion

    I perceive we have a solution, although this is considered as bug and Apple is setting up to fix it? I ask since the wizards in my company make use of Juniper Networks applet to implement its RSA-based secure VPN. In his zeal for the security they thought they had to copy the PAC file locally in the VPN connection. I can only assume that is expected to increase the performance of browser connections.

    However, when going through the customary command to set proxy and forcing their alternative on the system, any browser that uses the system proxy settings are a hose - that means Safari. Yes, it was a well-intentioned although poorly thought out choice setting. The query now is - do I have to wait a period of months in anticipation of the wizards in my company to fix their error? Or is it a bug that Apple will be fixing a pair of weeks?

  8. #8
    Join Date
    Jun 2011
    Posts
    383

    Re: Proxy Pac files no longer work in Mac OS X Lion

    I'm pretty convinced that the. Pac is not downloaded to each request (which would be crazy). More than likely it is downloaded and cached occasionally (perhaps when the browser starts first). So a web server running on local host is supposed to not be essential.

    I agree that this seems an error, the least Apple warn you when it detects a local representative of Pac if it is not really "supposed" to work harder.

  9. #9
    Join Date
    Jul 2011
    Posts
    322

    Re: Proxy Pac files no longer work in Mac OS X Lion

    I also think its error. They do not have a "Choose file” dialog is accessible if local files were allowed.

  10. #10
    Join Date
    Aug 2011
    Posts
    418

    Re: Proxy Pac files no longer work in Mac OS X Lion

    After digging a bit, I realized that there sandbox definition / configuration files for different processes and applications in / usr / share / sandbox. These files end in. "Sb", and set all sorts of things - so the files can be read, written, etc. Unfortunately, the definition file WebProcess litter box does not live in / usr / share / sandbox. Looking for a little more revealing than the definition file sandbox is here: / System/Library/PrivateFrameworks/Webkit2.framework/WebProcess.app/Contents/Reso heather / com.apple.WebProcess.sb.At first I thought about editing the file to tell her she could read / Users / tfischer / Documents / scripts / proxy. pac (with a couple of lines like the following:

    (Allows interpretation data files (House-literal "/ Users / tfischer / Documents / scripts / proxy.pac"))

    But upon reflection, I decided it was not a good idea, although com.apple modified. WebProcess.sb file worked, my changes would be eliminated the next time Safari is updated. A more detailed examination of the records show that WebProcess has read access to the "/ Library / Internet Plug-Ins /" directory. So I copied my pac "/ Library / Internet Plug-Ins/proxy.pac" as amended by my network preferences to reflect the new home of the CAP, and restart Safari.

  11. #11
    Join Date
    Aug 2011
    Posts
    322

    Re: Proxy Pac files no longer work in Mac OS X Lion

    Quote Originally Posted by Sitia View Post
    After digging a bit, I realized that there sandbox definition / configuration files for different processes and applications in / usr / share / sandbox. These files end in. "Sb", and set all sorts of things - so the files can be read, written, etc. Unfortunately, the definition file WebProcess litter box does not live in / usr / share / sandbox. Looking for a little more revealing than the definition file sandbox is here: / System/Library/PrivateFrameworks/Webkit2.framework/WebProcess.app/Contents/Reso heather / com.apple.WebProcess.sb.At first I thought about editing the file to tell her she could read / Users / tfischer / Documents / scripts / proxy. pac (with a couple of lines like the following:

    (Allows interpretation data files (House-literal "/ Users / tfischer / Documents / scripts / proxy.pac"))

    But upon reflection, I decided it was not a good idea, although com.apple modified. WebProcess.sb file worked, my changes would be eliminated the next time Safari is updated. A more detailed examination of the records show that WebProcess has read access to the "/ Library / Internet Plug-Ins /" directory. So I copied my pac "/ Library / Internet Plug-Ins/proxy.pac" as amended by my network preferences to reflect the new home of the CAP, and restart Safari.
    Wow, excellent results! This solution is much improved to let the web server, will attempt later when I reach home.

Similar Threads

  1. Replies: 8
    Last Post: 16-04-2012, 04:33 PM
  2. Replies: 10
    Last Post: 03-11-2011, 10:50 PM
  3. Rvl 200 does not work beyond proxy
    By Sauk in forum Networking & Security
    Replies: 3
    Last Post: 03-12-2010, 09:07 PM
  4. uTorrent does not work with a proxy!
    By Jaabili in forum Technology & Internet
    Replies: 5
    Last Post: 29-06-2010, 06:51 AM
  5. AVG no longer work
    By Pcbruiser in forum Windows Software
    Replies: 3
    Last Post: 12-11-2008, 03:07 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,513,496.51650 seconds with 17 queries