Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > OS X > Mac OS X Server, Xserve, and Networking

Reply
 
Thread Tools Search this Thread Display Modes
Old May 2, 2013, 11:00 AM   #1
DJLC
macrumors 6502
 
Join Date: Jul 2005
Location: Mooresville, NC
Send a message via AIM to DJLC Send a message via MSN to DJLC Send a message via Yahoo to DJLC Send a message via Skype™ to DJLC
Big Issue: Safari 6.0.2 Ignores Proxy PAC File

So I was just alerted to a pretty big issue at work: it seems Safari is ignoring our zScaler-provided proxy auto configuration file. It is hosted on the zScaler cloud service, and is set properly in the Network prefpane for all network interfaces. Oddly, both Firefox and Chrome honor the system network settings and route traffic through the proxy when appropriate. Safari, on the other hand, ignores the proxy in all circumstances.

If I put the PAC file in /Library/Internet Plug-Ins/, Safari honors the PAC file as appropriate. But is there any way to get it to use a PAC file hosted on a remote web server? If not, can anyone point me in the right direction as far as updating the PAC file path in the Network prefpane via the command line? If I have to start using a locally hosted PAC file, I'm going to have to update that setting on our 200 student MacBooks.

Below is the PAC file. I had some trouble initially getting the if statements to work properly under OS X; the problem could lie there as well. When on the school network traffic is routed thru zScaler with a tunnel, thus making the proxy undesirable.

Code:
function FindProxyForURL(url, host) {
			var privateIP = /^(0|10|127|192\.168|172\.1[6789]|172\.2[0-9]|172\.3[01]|169\.254|192\.88\.99)\.[0-9.]+$/;

			/* Don't send non-FQDN or private IP auths to us */
			if (isPlainHostName(host) || shExpMatch(host, "192.0.2.*") || privateIP.test(host))
			return "DIRECT";

			/* FTP goes directly */
			if (url.substring(0,4) == "ftp:")
			return "DIRECT";

			/* If on local ARS network, don't do it. */
			if (dnsResolve("xserve.arsnc.private") == "192.168.2.200")
			return "DIRECT";

	/* Default Traffic Forwarding.
	 * Forwarding to Zen on port 80, but you can use port 9400 also */
	 return "PROXY 152.26.228.6:9443; PROXY 152.26.230.6:9443";
}
__________________
-John Mairs

Last edited by DJLC; May 2, 2013 at 11:08 AM.
DJLC is offline   0 Reply With Quote
Old May 3, 2013, 08:56 AM   #2
freejazz-man
macrumors regular
 
Join Date: May 2010
use the DHCP PAC option?
freejazz-man is offline   0 Reply With Quote
Old May 3, 2013, 09:43 AM   #3
DJLC
Thread Starter
macrumors 6502
 
Join Date: Jul 2005
Location: Mooresville, NC
Send a message via AIM to DJLC Send a message via MSN to DJLC Send a message via Yahoo to DJLC Send a message via Skype™ to DJLC
Doesn't really solve the problem... I need the PAC file to be implemented only when the client is not connected to my network. Thus, I have no control over DHCP in the locations where the proxy is necessary.

In any case, I later found that some of the Macs do work with the filter. They're all clones of one another, and thus have the exact same versions of everything. Yet Safari ignores the proxy on some and honors it on others.

I think I'll just let it sit for two more weeks until school is out. This summer I can do a local PAC file in my image before I re-image all of them.
__________________
-John Mairs
DJLC is offline   1 Reply With Quote
Old May 8, 2013, 03:46 PM   #4
freejazz-man
macrumors regular
 
Join Date: May 2010
yeah, I don't think you have any other options
freejazz-man is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > OS X > Mac OS X Server, Xserve, and Networking

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Proxy.app - Web Interception Proxy passfree Mac Applications and Mac App Store 1 May 24, 2014 10:21 AM
Merge 2 Handbrake created m4v file into 1 big m4v file mrjayviper Apple TV and Home Theater 12 Apr 23, 2014 11:09 PM
Zip file using terminal - Too big size Mattijah Mac Basics and Help 8 Apr 2, 2014 04:16 AM
Big disappoint in safari in 10.9? nbnbxdnb OS X Mavericks (10.9) 0 Oct 5, 2013 04:49 AM
How big can an iOS text message file get? kds1 iOS 6 10 Jun 9, 2013 11:47 AM

Forum Jump

All times are GMT -5. The time now is 09:06 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC