Skip to content

Instantly share code, notes, and snippets.

@jgrodziski
Created December 3, 2013 15:31
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jgrodziski/7771184 to your computer and use it in GitHub Desktop.
Save jgrodziski/7771184 to your computer and use it in GitHub Desktop.
open an ssh tunnel and automatically enable it on your Ethernet and Wifi connection
ssh -t -t -n -D 9999 YOUR_REMOTE_SERVER & >> /dev/null
sudo networksetup -setsocksfirewallproxy Ethernet localhost 9999
sudo networksetup -setsocksfirewallproxy Wi-Fi localhost 9999
sudo networksetup -setsocksfirewallproxystate Ethernet on
sudo networksetup -setsocksfirewallproxystate Wi-Fi on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment