$ssh -D 127.0.0.1:8080
$ssh -[N]D 5555
N Doesn't work in some servers, then remove it.
Firefox Setting
2. Select "Manual proxy configuration"
3. Enter localhost for the SOCKS host, 9999 for the port, and SOCKS v5 selected. Click "OK" to save it.
use http://www.whatismyip.org/ for verify new ip
References:
[1] https://gist.github.com/brentjanderson/6ed800376e53746d2d28ba7b6bdcdc12 (rev 2024)
[2] http://www.planetb.ca/2010/08/how-to-create-an-ssh-tunnel-with-putty-and-stay-anonymous-on-a-network/