setting up multiple web proxies

In order for my powerbook G4 (Mac OSX.5) to connect to the internet at work it has to connect through a web proxy. This is very easy to set up. the problem is that there are 3 web proxy servers and they cycle every 24 hrs. Is it possible to set something up so that if the first proxy isn't available it immediately looks for the next one and so on. At the moment I have to go in and change it every day. I'm happy to use a unix shell and modify the system files I just need someone to tell me what to do.


thanks

Anna

PowerBook, Mac OS X (10.5.8)

Posted on Jan 23, 2012 1:35 PM

Reply
3 replies

Jan 23, 2012 7:10 PM in response to annib70

You could create local PAC file <http://findproxyforurl.com/pac_file_examples.html> where you can return multiple PROXY servers. You would create text file with your PAC script in it. Then specify System Preferences -> Network -> Advanced -> Proxy -> Automatic Proxy Configuration, and click "Choose File".


If you choose to take BDAqua's advice and create multiple Network Locations, you can then use either


/usr/sbin/networksetup -switchtolocation "MyCompanysProxy1"
/usr/sbin/networksetup -switchtolocation "MyCompanysProxy2"
/usr/sbin/networksetup -switchtolocation "MyCompanysProxy3"


or


/usr/sbin/scselect "MyCompanysProxy1"
/usr/sbin/scselect "MyCompanysProxy2"
/usr/sbin/scselect "MyCompanysProxy3"


you can put them into a script of your choosing. Shell script, or Automator Run Shell Scirpt, or Applescirpt do shell script (or Perl, Python, Ruby, etc...)

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

setting up multiple web proxies

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.