How to anonymize the programs from your terminal (such as wget
, curl
, etc.)?
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:
-
3Yeah, 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. Aug 26, 2014 at 22:54