The basic syntax for setting up an ssh socks proxy is:
Code:
ssh -ND<port> user@IP
Replacing <port> with the local port you want to use, and replacing user and IP with the IP of the server you want to tunnel traffic through and your username on that server.
So in your case, you should be able to run, for example:
Code:
ssh -ND11111 marloncos@172.0.0.2
and then configure your web browser/wget/etc to use localhost:11111 for the proxy. All web traffic will be redirected through 172.0.0.2, which means if you want to access 172.0.0.2 itself, you would use a web address of 127.0.0.1/localhost.
This should work fine through a browser, but configuring command line tools to use this socks proxy may be a little more complicated. I found this promising page while searching for it:
http://www.dslreports.com/forum/remark,13563828