Skip to content

Instantly share code, notes, and snippets.

@weilu
Created September 12, 2013 16:04
Show Gist options
  • Save weilu/6539993 to your computer and use it in GitHub Desktop.
Save weilu/6539993 to your computer and use it in GitHub Desktop.
Proxy: Have you tried turning it off and on again on Mac OS X?
# on
sudo networksetup -setsocksfirewallproxy "Wi-Fi" localhost 1080
ssh -D 1080 -i ~/.ssh/proxy.pem [remote-user]@[remote-server]
# off
sudo networksetup -setsocksfirewallproxystate "Wi-Fi" off
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment