Created
May 2, 2015 18:12
-
-
Save cristianobecker/0c8a271a66b495631821 to your computer and use it in GitHub Desktop.
Use SSH Tunnel as a SOCKS proxy on MacOS
This file contains hidden or 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
my-proxy() { | |
sudo networksetup -setsocksfirewallproxystate Wi-Fi on | |
sudo networksetup -setsocksfirewallproxy Wi-Fi localhost 8001 | |
ssh cbecker -C -N -D 8001 # change your ssh info here | |
sudo networksetup -setsocksfirewallproxystate Wi-Fi off | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment