Created
February 22, 2016 02:59
-
-
Save matthijn/10d0ab46c1710b97f6ac to your computer and use it in GitHub Desktop.
Socks Proxy OSX easy terminal script
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
#!/bin/bash | |
#Change OSX Wifi settings to use socks proxy | |
sudo networksetup -setsocksfirewallproxy "Wi-Fi" localhost 2000 | |
#Setup a socks proxy over ssh to a server (will ask for password and block further execution untill connection is closed) | |
ssh -N -g -D 2000 [email protected] | |
#Stop using OSX Wifi proxy | |
sudo networksetup -setsocksfirewallproxystate "Wi-Fi" off |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For when you want some more privacy on a public wifi. Or when some pages are blocked on your current wifi