How to anonymize the programs from the terminal?

How to anonymize the programs from your terminal (such as wget, curl, etc.)?

• curl /usr/bin/torify: torsocks not found in your PATH. Perhaps it isn't installed? (tsocks is no longer supported, for security reasons.) – user7521 May 28 '15 at 16:01

1 Answer

Torify is a simple wrapper that attempts to find the best underlying Tor wrapper available on a system. It calls torsocks or tsocks with a tor specific configuration file.

It'll take measures to ensure that an application, which has not been designed for use with Tor (such as TorChat), will use only Tor for internet connectivity. Also ensure that there are no leaks from DNS, UDP or the application protocol.

You should read the documentation at ​Tor Project before attempting to "torify" any applications your self.

Installation

Torify should be already installed with your Tor server.

If not, you've to install tor, which is usually found on all the repository so for Debian, Ubuntu and Mint you just have to type:

sudo apt-get install tor


On OSX with Homebrew: brew install tor torsocks

After installation and configuration, and starting the tor server, you can prefix torify before any command.

Example usages:

$torify curl ifconfig.me$ torify wget -r --mirror -S http://dppmfxaacucguzpc.onion
\$ torify links http://dppmfxaacucguzpc.onion/


Read more:

• Yeah, torify is fine with e.g. telnet, netcat. Don't attempt to use torify with something like p2p, e.g. bittorrent, it will either not work, or deanonymise you, or probably both. – Harry Seventyone Aug 26 '14 at 22:54