Skip to content

Instantly share code, notes, and snippets.

@maysam
Forked from weilu/proxy.sh
Created June 23, 2014 16:29
Show Gist options
  • Save maysam/bc7124b77421376c5036 to your computer and use it in GitHub Desktop.
Save maysam/bc7124b77421376c5036 to your computer and use it in GitHub Desktop.
# 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