1

I am running some programs in Bash in Ubuntu.

The programs download something using network sockets. Their README file says they can be used with tor, and I hope to change the external IP address by using tor with the programs.

I have tried to look up how to use tor with a program in shell on the Internet including tor's official website, but I haven't found a step-by-step explanation. Could you show me how to use a program with tor in Bash, and maybe also point to some resources for learning? (I have some but not much knowledge about networks and network programming)

closed as off-topic by Jeff Schaller, MelBurslan, Scott, Anthon, slm Apr 10 '16 at 5:39

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Requests for learning materials (tutorials, how-tos etc.) are off topic. The only exception is questions about where to find official documentation (e.g. POSIX specifications). See the Help Center and our Community Meta for more information." – Jeff Schaller, MelBurslan, Scott, Anthon, slm
If this question can be reworded to fit the rules in the help center, please edit the question.

1

Use torsocks.

Tor presents itself to other programs as a SOCKS proxy, so any program that has built-in support for SOCKS can use Tor directly. For everything else, there are numerous wrappers that force network traffic to go to Tor rather than out the normal path.

The only thing that makes torsocks special is its focus on the nature of Tor, where you're concerned with privacy and such. Other SOCKS wrappers might let DNS requests bypass the proxy, for example, which leaks information about places you're visiting on the Internet.

  • Thanks. How is torsocks compared to torify? – Tim Apr 10 '16 at 1:20
  • 1
    @Tim: I haven't the slightest idea. I don't use Tor. I only answered because my Google-Fu is strong, I knew that Tor presented itself as a SOCKS proxy, and I knew what SOCKS is because I've been a network programmer for nearly a quarter century. :) – Warren Young Apr 10 '16 at 1:20
  • @Tim: I get a lot of useful-looking links in a web search for torsocks vs torify. – Warren Young Apr 10 '16 at 1:23

Not the answer you're looking for? Browse other questions tagged or ask your own question.