Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mindevolution/d4ccd893e0ea3e64911431fee597eedb to your computer and use it in GitHub Desktop.
Save mindevolution/d4ccd893e0ea3e64911431fee597eedb 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
@mindevolution
Copy link
Author

Use this command to list the network interface
networksetup -listnetworkserviceorder

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