Skip to content

Instantly share code, notes, and snippets.

View universeroc's full-sized avatar

universeroc universeroc

  • freelance
  • Beijing China
View GitHub Profile
@universeroc
universeroc / gist:7feb3f82997c374d905f0517bb920211
Created April 20, 2023 01:32 — forked from jordelver/gist:3073101
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