Skip to main content
Question

Automatic Proxy Configuration


Hello, does anyone know if I can set the location of a proxy .pac file in the Network Settings via Casper?

I checked out the networksetup command in Tiger and Leopard and it appears it can manipulate every single aspect of the network settings except for setting the Automatic Proxy Configuration! I checked out the Apple discussion boards, there were a few others asking the same question with no answers.

Thanks.

13 replies

  • 0 replies
  • July 21, 2008

Here's are some scripts I use with a policy.. This has been working for us!

Set the Proxy for http: Examples..
networksetup -setwebproxy "Ethernet" proxy.server.com 80
-or-
networksetup -setwebproxy "Ethernet" 192.168.1.5 80

And this sets the bypass info..

networksetup -setproxybypassdomains "Ethernet" 10.,.districtsite.com

Hope this helps..

-- Jason Weber
Technology Support Cluster Specialist
Independent School District 196


Forum|alt.badge.img+31
  • Honored Contributor
  • 2721 replies
  • July 21, 2008

here goes a script I was using in Tiger. You need to change it to /usr/sbin/networksetup but it should still work

#!/bin/sh

BYPASSPROXY='Insert your proxy server here'

/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Support/networksetup -setproxybypassdomains "AirPort" $BYPASSPROXY
/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Support/networksetup -setproxybypassdomains "Built-in Ethernet" $BYPASSPROXY

Thomas Larkin
TIS Department
KCKPS USD500
tlarki at kckps.org
cell: 913-449-7589
office: 913-627-0351


  • 0 replies
  • July 21, 2008

Hmmmm, that does not work. The script below just sets the proxy by pass domains. I want to set the location of the pac file and enable the "Automatic Proxy Configuration".

Thanks,

-Patrick Birke
Senior Systems Engineer
E.D.G.E.


Forum|alt.badge.img+31
  • Honored Contributor
  • 2721 replies
  • July 21, 2008

oops I thought you wanted the bypass. Sorry, its early and I am working 60 hour weeks right now mass imaging macbooks.....

If I get time I will see what I can find.

Thomas Larkin
TIS Department
KCKPS USD500
tlarki at kckps.org
cell: 913-449-7589
office: 913-627-0351


  • 0 replies
  • November 21, 2011

Hello Folks,

I'm looking for a way to change my users proxy information. They are currently set to use the web proxy server, I need a way to have that changed to the automatic proxy configuration file using a url. Any ideas out there?
--

</pre>

<P><hr size=1></P>
<P><STRONG><font color=green>Please consider the environment before printing this email.</font></STRONG></P>


Forum|alt.badge.img+24
  • Valued Contributor
  • 1892 replies
  • November 21, 2011

You're looking at a script that'll use the 'networksetup' command.

Have a search through the list for some scripts that Tom Larkin uses. If you run into trouble, just post. We'll gladly help.

j
---
Jared F. Nichols
Desktop Engineer, Client Services
Information Services Department
MIT Lincoln Laboratory
244 Wood Street
Lexington, Massachusetts 02420
781.981.5436


Forum|alt.badge.img+5
  • Contributor
  • 50 replies
  • November 21, 2011

Are these 10.6 machines (or higher)?

If so, you can create a script to either make a proxy value for a new
network location, or you can edit the current network settings they have.

You use the networksetup command. An example would be this:

networksetup -setautoproxyurl "Ethernet"
http://URL/to/your/proxy/here/proxy.pac

Definitely checkout the man page for networksetup to see all the other
options and stuff!

*ben** janowski*
Senior Macintosh Support Technician
*Kohl's Mac Support Team *| 262.703.1396


Forum|alt.badge.img+31
  • Honored Contributor
  • 2721 replies
  • November 21, 2011

Unless it is for Firefox. firefox uses it's own set of preferences that are usually written in Java Script, and the app itself is written in C++ (I think) that way it can run on all platforms (linux, mac, windows).

If you check out Greg Neagle's blog he has several articles on deploying Firefox with the CCK extension, which will allow you to set preferences.


Forum|alt.badge.img+19
  • Contributor
  • 437 replies
  • November 21, 2011

I may be wrong on this, but isn't the default proxy setting on firefox 6 and higher 'Use system proxy'?
nick
--
Nick Kalister
Desktop Engineering
Hitachi Data Systems
Office: 408.970.4316

750 Central Expressway
Building 32 : M/S 3240
Santa Clara, CA 95050


Forum|alt.badge.img+24
  • Valued Contributor
  • 1892 replies
  • November 21, 2011

Sure but I've seen it ignored plenty of times :)

j
---
Jared F. Nichols
Desktop Engineer, Client Services
Information Services Department
MIT Lincoln Laboratory
244 Wood Street
Lexington, Massachusetts 02420
781.981.5436


bentoms
Forum|alt.badge.img+35
  • Legendary Contributor
  • 4331 replies
  • November 21, 2011

Forum|alt.badge.img+19
  • Contributor
  • 437 replies
  • November 21, 2011

Oh, ok! Guess I've been lucky, haven't had to manipulate that setting at all.
nick
--
Nick Kalister
Desktop Engineering
Hitachi Data Systems
Office: 408.970.4316

750 Central Expressway
Building 32 : M/S 3240
Santa Clara, CA 95050


Forum|alt.badge.img+31
  • Honored Contributor
  • 2721 replies
  • November 21, 2011

I no longer manage Firefox. I just say if your firefox is busted run the firefox installer on self service, which wipes out everything the user did and reloads firefox clean. In the past I would spend days customizing a package only having to update it like 2 months later for some web based product. So this is what I do.

Create a manual trigger policy to install Firefox and point it to the newest build on the Casper Server.

Write a script that deletes all user files for Firefox, all app files and then installs new firefox from manual trigger policy.

Then all I ever have to do is drop the new firefox in Casper admin and point the manual trigger policy to it and replicate my shares.

done

-Tom


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings