Skip to content

Instantly share code, notes, and snippets.

@lamberta
Created October 25, 2010 19:47
Show Gist options
  • Save lamberta/645597 to your computer and use it in GitHub Desktop.
Save lamberta/645597 to your computer and use it in GitHub Desktop.
On the fly socks5 proxy with ssh
#dynamic port forwarding, binds a socket on the local machine
ssh -D 8080 user@host
#tunnel through proxy examples
chromium-browser --proxy-server="socks5://localhost:8080"
curl --socks5 localhost:8080 url
#most apps should recognize this
export HTTP_PROXY="socks5://localhost:8080"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment