Created
December 22, 2015 18:54
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.