Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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