Skip to content

Instantly share code, notes, and snippets.

@keyganker
Forked from jordelver/gist:3073101
Last active September 26, 2023 06:25
Show Gist options
  • Save keyganker/9a5621560677f67f804f3215d51b54f4 to your computer and use it in GitHub Desktop.
Save keyganker/9a5621560677f67f804f3215d51b54f4 to your computer and use it in GitHub Desktop.
Set the Mac OS X SOCKS proxy on the command line #shell

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment