Skip to main content
Question

SSH to create custom Location and proxy


Forum|alt.badge.img+3

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

Forum|alt.badge.img+1
  • New Contributor
  • 7 replies
  • March 3, 2014

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
Forum|alt.badge.img+35
  • Legendary Contributor
  • 4331 replies
  • March 5, 2014

@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


Forum|alt.badge.img+3
  • Author
  • New Contributor
  • 6 replies
  • March 6, 2014

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


Forum|alt.badge.img+1
  • New Contributor
  • 7 replies
  • March 7, 2014

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?


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