Skip to content

Instantly share code, notes, and snippets.

@greenkey
Created December 22, 2015 18:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save greenkey/df650cebd75cc0d6ecae to your computer and use it in GitHub Desktop.
Save greenkey/df650cebd75cc0d6ecae to your computer and use it in GitHub Desktop.
Use this as a launcher to have a chromium that uses a quick socks proxy via SSH
#!/bin/bash
PROXY_IP=192.168.1.100
PROXY_PORT=4444
ssh -N -D $PROXY_PORT $PROXY_IP &
ID=$!
chromium-browser --proxy-server="socks://127.0.0.1:$PROXY_PORT"
kill $ID
@greenkey
Copy link
Author

Note: you must have ssh access (with a key exchange) to the PROXY_IP.
Let's say: launching ssh $PROXY_IP shouldn't ask you for password.

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