http://digitalsr.i2p/computing/proxychains.html
Proxychains is
a tool that lets you route a TCP (only) connection from an
application that normally can't handle proxies out through a
proxy (or proxies) of your choice. For example, you could use telnet to connect to an .onion or .i2p server to login. It does
this by hooking calls to networking C library functions. Your
system must support LDPRELOAD or likewise (Linux, BSD, Mac).