SSH to create custom Location and proxy

CheckMark
New Contributor

Is there a way to write a distributable script that creates a new network location setting and configure the necessary proxy .pac file and proxy bypasses without disrupting other users configurations.

4 REPLIES 4

calum_oac
New Contributor

the command networksetup would be your friend here, will allow you to create locations and set proxy servers etc etc however network locations are global to the system
EDIT - i screwed up VPN settings apply to the user domain thats what i was thinking of, proxy settings are global

bentoms
Release Candidate Programs Tester

@CheckMark, why worry about users current setup?

If the PAC file URL is specified via DNS & only internally accessible.. It won't affect them when offsite.

We run the following daily to push the right PAC URL to clients: external image link

CheckMark
New Contributor

bentoms, our parent company is switching proxy servers again, and it would be nice to be able to push out a change to their internal location settings, rather than visit machines

calum_oac
New Contributor

do they not simply want to keep the dns the same? isnt that one of the beautiful things about dns?

ie myproxyserver.com/proxy.pac
so you can change your proxy server to whatever the hell you want then just create a cname for it in dns to match what the clients are looking at?