Created
December 3, 2013 15:31
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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