Need a proxy? Want to hide your IP? This is a sneaky and easy trick. Just use the following:
ssh -f -N -D 0.0.0.0:1080 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.