Torsocks: use socks-friendly applications with Tor. http://code.google.com/p/torsocks
What is torsocks? This is a fork of the tsocks project (http://sourceforge.net/project/ showfiles.php?group_id=17338). The purpose of this fork is to maintain a working implementation of tsocks that is primarily useful for Tor. The project homepage is: http://code.google.com/p/torsocks Using torsocks. Torsocks allows you to use most socks-friendly applications in a safe way with Tor. Once you have installed torsocks, just launch it like so: usewithtor [application] So, for example you can use ssh to a some.ssh.com by doing: usewithtor ssh username@some.ssh.com or launch pidgin by doing: usewithtor pidgin The following applications are known to be compatible with usewithtor: Type Application Comments COMM ssh COMM telnet (plaintext passwords are not recommended with Tor) IM pidgin IM kopete IRC konversation MAIL claws-mail DEV svn IRC xchat IRC irssi IRC silc Differences between torsocks and tsocks: A complete history of changes is maintained in the Changelog. The initial working copy of torsocks was obtained through the following steps in June 2008: - Tsocks was downloaded from the project's sourceforge repository. (http://sourceforge.net/project/showfiles.php?group_id=17338) - All patches listed at http://wiki.noreply.org/noreply/TheOnionRouter/ TSocksPatches in March 2008 were applied. In particular, the patch from Total Information Security that hooks DNS requests and passes them to Tor. The original link for this patch is now dead and the authors are no longer available at the email addresses supplied in the patch's source. - Weasel's getpeername() patch and some build-related patches from https://giig.ugr.es/~rgarcia/tsocks/ were applied. - All references to tsocks in the project source files were renamed to torsocks. - The project was then migrated to an automake/autoconf build system. To help with reconstructing the above steps a list of applied patches is available in the patches/ subdirectory of the torsocks source tree. Enhancements unique to torsocks: The first release of torsocks contained the following enhancements: - Torifying reverse dns requests through gethostbyaddr() - Blocking of UDP traffic from sendto() and its variants. - Use of Tor-friendly defaults if no configuration file available. - The addition of all RFC defined private address ranges to the default configuration. Maintainers of Torsocks: Torsocks is maintained by: Robert Hogan (robert at roberthogan.net) Ruben Garcia (ruben at ugr.es) Links: Original tsocks project (apparently abandoned): http://sourceforge.net/project/showfiles.php?group_id=17338 Ruben's fork of tsocks on which this is based: https://giig.ugr.es/~rgarcia/tsocks/ The Tor project's list of tsocks patches: http://wiki.noreply.org/noreply/TheOnionRouter/TSocksPatches The Tor project: https://www.torproject.org
frm https://github.com/mwenge/torsocks
----------------------------------------
Library to torify application - NOTE: upstream has been moved to https://gitweb.torproject.org/torsocks.git https://www.torproject.org
What is torsocks?
Torsocks allows you to use most applications in a safe way with Tor. It ensures that DNS requests are handled safely and explicitly rejects any traffic other than TCP from the application you're using.Torsocks is an ELF shared library that is loaded before all others. The library overrides every needed Internet communication libc function calls such as connect(2) or gethostbyname(3).BE ADVISE: It uses the LD_PRELOAD mechanism (man ld.so.8) which means that if the application is not using the libc or for instance uses raw syscalls, torsocks will be useless and the traffic will not go through Tor.This process is transparent to the user and if torsocks detects any communication that can't go through the Tor network such as UDP traffic, for instance, the connection is denied. If, for any reason, there is no way for torsocks to provide the Tor anonymity guarantee to your application, torsocks will force the application to quit and stop everything.Requirements
- autoconf - automake - libtool - gcc
Installation
$ ./autogen.sh $ ./configure $ make $ sudo make install
If you are compiling it from the git repository, run ./autogen.sh before the configure script.Using torsocks
Once you have installed torsocks, just launch it like so:$ torsocks [application]
So, for example you can use ssh to a some.ssh.com by doing:$ torsocks ssh username@some.ssh.com
You can use the torsocks library without the script provided:$ LD_PRELOAD=/full/path/to/libtorsocks.so your_app
For more details, please see the torsocks.1, torsocks.8 and torsocks.conf.5 man pages. Also, you can use -h, --help for all the possible options of the torsocks script.A configuration file named torsocks.conf is also provided for the user to control some parameters.More informations
torsocks is distributed under the GNU General Public License version 2.Mailing list for help is tor-talk@lists.torproject.org and for development use tor-dev@lists.torproject.org. You can find the project also on IRC server irc.oftc.net (OFTC) in #tor and #tor-dev.See more information about the Tor project at https://www.torproject.org.(https://github.com/mwenge/torsocks)-----------------------------------
https://github.com/Intika-Linux-Proxy/Proxybound
https://github.com/zyxar/tsocks
https://github.com/pc/tsocks