Need a proxy? Want to hide your IP? This is a sneaky and easy trick. Just use the following:

ssh -f -N -D localhost

Thats it! All there is to it. Doesn’t even need root access. Now Open-SSH doesn’t do any sort of authentication so suggestion is to use iptables or ufw to close those open ports to the IP’s that you actually want to have access. But you should be doing that anyway right.

Turn a Linux Machine into a SOCKS Proxy in a Single Command
Tagged on:             

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.