The program tsocks shows promise as a wrapper script for making individual client applications work with Tor. Already, tsocks intercepts system calls that use the TCP stack and encapsulates them using SOCKS. However, there are a number of problems with tsocks. For example, tsocks does not intercept gethostbyname() system calls, leaking DNS requests in a manner that compromises the anonymity of Tor users. Additionally, tsocks contains a number of serious bugs, and it does not currently build on Mac OS X. For these reasons, we do not currently recommend that Tor users use tsocks. Nonetheless, we believe that it may be sufficient to create a new version of tsocks that carefully integrates all of the following patches:
2. Patch from Marc Abramowitz to allow tsocks to compile on Mac OS X.
4. Patch from weasel to intercept getpeername().
5. Patch from Roderick Schertler to fix a minor bug in the documentation.
6. Some patches offered by the FreeBSD ports maintainers.
Patches 1, 3, 4, 5, 6 and 7 have been integrated into https://giig.ugr.es/~rgarcia/tsocks/tsocks-1.8.4.tar.bz2 . The current version of tsocks by Ruben Garcia is hosted in https://giig.ugr.es/~rgarcia/tsocks/
There is now a fork of tsocks specifically for use with Tor, provisionally called torsocks. For the moment, it is available as a CVS repository only. Tarball releases will follow soon.
cvs -z3 -d:pserver:anonymous@tork.cvs.sourceforge.net:/cvsroot/tork co -P torsocks
Torsocks contains patches 1, 3, 4, 5, 6 and 7 above. It also contains a number of enhancements.