Skip to content

Instantly share code, notes, and snippets.

@atr000
Created April 3, 2010 02:58
Show Gist options
  • Save atr000/354050 to your computer and use it in GitHub Desktop.
Save atr000/354050 to your computer and use it in GitHub Desktop.
ssh -D 8080 -f -C -q -N myuser@remote_ssh_server
-D 8080 : This does the dynamic stuff and makes it behave as a SOCKS server.
-f : This will fork the process into the background after you type your password.
-C : Turns on compression.
-q : Quiet mode. Since this is just a tunnel we can make it quiet.
-N : Tells it no commands will be sent. (the -f will complain if we don’t specify this)
In Firefox use about:config
network.proxy.no_proxies_on : localhost, 127.0.0.1, 192.168.0.0/24, .yourcompany.com
network.proxy.socks : 127.0.0.1
network.proxy.socks_port : 8080
network.proxy.socks.remote_dns : true
network.proxy.socks_version : 5
network.proxy.type : 1
using -v instead of -f is more suited for temp. didn't have to rewrite squid ot do much more than firefox settings.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment