Using ssh as a SOCKS proxy
For years I’ve used ssh port forwarding to access my home server. It works, but has it’s issues. I hated having to setup another forward for each service I wanted to use. Turns out, there was a better way. I kick off ssh to start a proxy server to my home box:
ssh -qT -f -ND 7070 user@homedomain
-q quiet, -T no pseudo tty allocated, -f go into the background after we enter the password, -N no remote command required and -D set SOCKS port.
and then configure the applications to use localhost and port 7070 for a proxy.
To make this really usable, I installed foxyproxy into Firefox and now only requests to homedomain are routed through the proxy server. All others are handled normally by the local network.
Neat.





