Fast way to change proxy setting

applescriptNetworksystem-prefs

On my laptop I usually have a ssh connection open and use the remote machine as a proxy server just so that all my network traffic is over ssh. I know that it's hopeless and we're all doomed, but it makes me feel a little better.

Problem is sometimes I need to set and unset it for some reason and then I have to dig through millions of dialogs to get to here…

enter image description here

…so that I can uncheck that option.

Is there a faster way to do that or a way I can set up a script to turn "SOCKS Proxy" on and off? Probably something with Applescript, right?

Is there a way to do this without learning Applescript?

Best Answer

Set up two locations - one with proxy one - one off - you are an Apple menu item away from the switch.

Apple Menu

Just select network, then edit the locations.

networklocation