Posted on 07-21-2008 07:31 AM
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.
Posted on 07-21-2008 07:50 AM
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
Posted on 07-21-2008 07:54 AM
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
Posted on 07-21-2008 08:13 AM
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.
Posted on 07-21-2008 08:17 AM
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
Posted on 11-21-2011 08:13 AM
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>
Posted on 11-21-2011 08:24 AM
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
Posted on 11-21-2011 08:24 AM
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
Posted on 11-21-2011 08:58 AM
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.
Posted on 11-21-2011 09:07 AM
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
Posted on 11-21-2011 09:16 AM
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
Posted on 11-21-2011 09:29 AM
Posted on 11-21-2011 10:02 AM
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
Posted on 11-21-2011 11:20 AM
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