Skip to content

Instantly share code, notes, and snippets.

@KavenTheriault
Last active May 29, 2024 16:08
Show Gist options
  • Save KavenTheriault/51059a9547e56bf683687d0caedf57b4 to your computer and use it in GitHub Desktop.
Save KavenTheriault/51059a9547e56bf683687d0caedf57b4 to your computer and use it in GitHub Desktop.
Use SSH to Create an HTTP Proxy

Use SSH to Create an HTTP Proxy

All you need is virtual private server (VPS). Use the following command to open up the port 1080 on your local machine as a SOCKS proxy so all your HTTP traffic can be specified to go through the SSH tunnel and out remote_ssh_server on the other end.

$ ssh -D 1080 -f -C -q -N -p 22 user@server-ip

Use the SOCKS proxy in chrome

The best is to use a chrome extention to manage your proxies. Personaly, i'm using Proxy SwitchySharp extention.

In the proxy profile you need to use the SOCKS Host setting and check the SOCKS v5 setting. Then provide localhost for the URL and 1080 for the port number.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment