Skip to content

Instantly share code, notes, and snippets.

@jordelver
Created July 8, 2012 22:06
Show Gist options
  • Save jordelver/3073101 to your computer and use it in GitHub Desktop.
Save jordelver/3073101 to your computer and use it in GitHub Desktop.
Set the Mac OS X SOCKS proxy on the command line

Set the Mac OS X SOCKS proxy on the command line

a.k.a. what to do when your ISP starts blocking sites :(

Set the SOCKS proxy to local SSH tunnel

networksetup -setsocksfirewallproxy "Ethernet" localhost 8080

To clear the domain and port

networksetup -setsocksfirewallproxy "Ethernet" "" ""

To turn the SOCKS proxy off

networksetup -setsocksfirewallproxystate "Ethernet" off
@finagin
Copy link

finagin commented Jul 23, 2019

Update this line, save as /usr/bin/socks and run:

$ socks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment